Cannot update the frame

V

vizlab

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top