function openWin() { var myWindow=window.open('','','width='+screen.width+',height='+screen.height+',left='+screen.width); myWindow.document.write("<p>This is 'myWindow'</p>"); myWindow.document.write("<span id='span'></span>"); myWindow.document.close(); myWindow.document.getElementById('span').innerText = 'something'; } How can I achieve this in gwt, when i try this javascript code itself, inside my gwt project, left='+screen.widthis not seems to be working in FF and myWindow.document.getElementById('span').innerText = 'something'; is not seems to be working in chrome. correcting them in javascript is also fine for me, as long as it works perfect for both FF and chrome.
Regarding using the PopupPanel of gwt, that also wouldnt help me. As far as I know, PopupPanel can't be poped out of the page. In my scenario, the new window should be opened in my secondory display (which can be achieved with current js code. using code'width='+screen.width+',height='+screen.height+',left='+screen.width. (If I am wrong please guide me to know about such property of PopupPanel.
--
Sarjith
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment