This content has been marked as final.
Show 4 replies
-
1. Re: How can i popup a browser window?
chicochen Mar 6, 2007 12:05 AM (in response to chicochen)anybody can help me?
-
2. Re: How can i popup a browser window?
fhh Mar 6, 2007 7:09 AM (in response to chicochen)I do it in a project but I'm not sure if it is the best way to do it. Here it goes:
You have a event-scoped Seam component:@Name("jspopup") public class JsPopup { private String name; private String url; private int height; private int width; // etc. /* Getters and Setters */ }
In your action method you create the popup component and outject it. Now
add some javascript at he beginning of the page:<c:if test"! empty popup"> <script language="javascsript> var vWinUsers = window.open(' #{jspopup.url}', #{jspopup.name},'width=#{jspopup.width},width=#{jspopup.height}); vWinUsers.opener = self; vWinUsers.focus() </script> </c:if>
If you find a better way to do it please let me know.
Regards
Felix -
3. Re: How can i popup a browser window?
chicochen Mar 6, 2007 11:02 AM (in response to chicochen)i am not very clear, could you paste all codes here, or send them to chicochen@hotmail.com, thanks a lot!
-
4. Re: How can i popup a browser window?
fhh Mar 6, 2007 8:25 PM (in response to chicochen)I'm sorry but that is all there is to it. There is no more code to send.
If you post what part of my example you don't understand, then I'll try to explain.
Regards
Felix