468,140 Members | 1,165 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,140 developers. It's quick & easy.

about frame reload (cc John Sivilla, Ken Cox)

Hi, all,

I read one thread here, about Refresh page, now my question is,
default.aspx which include login pane and one frame,
<iframe name=main></iframe>

after login succeeds, I add
RegisterStartupScript("Reload", "<SCRIPT
Language='Javascript'>main.location.reload()</" & "Script>")

it does work, but how if I want to change the frame to a different location
? I try main.location.href='somepage.aspx' before "main.location.reload(),
it failed.

It's a simple question , but maybe more javascript knowledge will help me ?

does anybody know some website that can give result like "frame" manual ?

Thanks!

Nov 18 '05 #1
2 1327
Hi Edward,

You could try:
parent.document.getElementById("main").src = "somepage.aspx";

Good luck! Ken.

"Edward" <zi***@citiz.net> wrote in message
news:e5*************@TK2MSFTNGP12.phx.gbl...
Hi, all,

I read one thread here, about Refresh page, now my question is,
default.aspx which include login pane and one frame,
<iframe name=main></iframe>

after login succeeds, I add
RegisterStartupScript("Reload", "<SCRIPT
Language='Javascript'>main.location.reload()</" & "Script>")

it does work, but how if I want to change the frame to a different location ? I try main.location.href='somepage.aspx' before "main.location.reload(), it failed.

It's a simple question , but maybe more javascript knowledge will help me ?
does anybody know some website that can give result like "frame" manual ?

Thanks!

Nov 18 '05 #2

Thanks, Ken.

It's ok.
Hi Edward,

You could try:
parent.document.getElementById("main").src = "somepage.aspx";

Good luck! Ken.

"Edward" <zi***@citiz.net> wrote in message
news:e5*************@TK2MSFTNGP12.phx.gbl...
Hi, all,

I read one thread here, about Refresh page, now my question is,
default.aspx which include login pane and one frame,
<iframe name=main></iframe>

after login succeeds, I add
RegisterStartupScript("Reload", "<SCRIPT
Language='Javascript'>main.location.reload()</" & "Script>")

it does work, but how if I want to change the frame to a different location
? I try main.location.href='somepage.aspx' before

"main.location.reload(),
it failed.

It's a simple question , but maybe more javascript knowledge will help me ?

does anybody know some website that can give result like "frame" manual

?
Thanks!


Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by yang | last post: by
1 post views Thread by Dave Blair | last post: by
5 posts views Thread by Chris Kennedy | last post: by
3 posts views Thread by Vinutha | last post: by
reply views Thread by damod.php | last post: by
27 posts views Thread by didacticone | last post: by
1 post views Thread by gcdp | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.