Hi Tania,
For 1, you should just be able to render the Wicket Link with the target="_blank" attribute in the html? This will open a new window.
<a href="#" wicket:id="myLink" target="_blank" />
For 2, You'll need to use an AjaxButton so you have access to Wicket's AjaxRequestTarget, then just do this:
target.appendJavascript("setMainFrameHeight(window.name);");
This method comes from Sakai's header scripts, so assuming you've included them, you should be right. If not, have a look here for a BasePage I use in Profile2 which all subpages extend:
cheers,
Steve
On Wed, Nov 4, 2009 at 2:37 AM, Tania Tritean
<ttritean@...> wrote:
Hi,
I have 2 questions, if you can help me:
- From a sakai
page, from inside of a iframe, when I click a link I want to open a page
with a given url in a new browser window, so not inside sakai. How can I do this?(I’m
using wicket)
- How can I modify the height of
an iframe from sakai,
after the page was rendered.(eq. I have the frame with size x, and when I click
a button I want to make the frame bigger)
Thanks a lot
_______________________________________________
sakai-dev mailing list
sakai-dev@...
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe@... with a subject of "unsubscribe"
_______________________________________________
sakai-dev mailing list
sakai-dev@...
http://collab.sakaiproject.org/mailman/listinfo/sakai-devTO UNSUBSCRIBE: send email to
sakai-dev-unsubscribe@... with a subject of "unsubscribe"