Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Cannot update the frame

Reply
Thread Tools

Cannot update the frame

 
 
vizlab
Guest
Posts: n/a
 
      03-20-2005
Hi,
I used javascript to generate the HTML file and tried to update a
frame using this HTML file.


function handleButton1()
{
parent.location="http://localhost:8080/myservlet/testservlet";
// testservlet generate the HTML file.
parent.frame1.window.location.reload(true); // update frame1
}

But I have to press the button twice to see the update. I tried to add
a sufficient long delay between these two statements but no luck.

Can anybody tell me how to see the update by pressing the button ONLY
ONCE.

Best Regards

Lian
 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java EE 6 Update Tool cannot do update narke Java 1 10-21-2010 12:39 PM
pop up menu at header frame cannot overlap to bottom frame pasupathy HTML 5 09-12-2006 08:24 AM
popup menu at header frame cannot overlap to bottom frame help pasupathy Javascript 0 03-30-2006 07:11 AM
How to update other frame when new document loaded into a frame Jim Cobban Javascript 0 07-31-2005 05:47 PM
Framesets - Event in frame 'A' triggering update of frame 'B' -How ? JAW ASP .Net 2 11-09-2004 07:54 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57