Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-22-2012, 12:30 PM   PM User | #1
docco
New Coder

 
Join Date: Aug 2012
Posts: 67
Thanks: 18
Thanked 0 Times in 0 Posts
docco is an unknown quantity at this point
Simple but ugly!

I display a window by using all javascript

myWindow = window.open();
myWindow.document.write();
........................................
.......................................
myWindow.focus();

I want after the window load, it will be updated in oder to add some children in it.
Then I add
...............................
myWindow.document.write("<body onload=\"updateValue()\">");
.................................

This does not work, I understand.

Then I change to
...................................................
myWindow.document.write("<body onresize=\"updateValue()\">");
...............................................

and add
............................................
myWindow.resizeTo(500,400);
myWindow.focus();

This works but sometimes value updated sometimes value not updated!
I add more resize.
...................................
myWindow.resizeTo(50,40);
myWindow.resizeTo(40,50);
myWindow.resizeTo(500,400);
myWindow.focus();

The result is that the update not 100% done.

Can anyone help for a solution?

Last edited by docco; 09-22-2012 at 12:35 PM..
docco is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:43 PM.


Advertisement
Log in to turn off these ads.