473,385 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 1461
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: yang | last post by:
I just a newbie of python Now I found that almost every program use Tkinter have this line class xxx(xxx): """xxxxx""" def __init__(self): """xxxxx""" Frame.__init__(self)
1
by: Dave Blair | last post by:
Hi, Hi, In firefox I can't get a page (which queries an SQL database and shows all the available records) to re-fresh with new updated data after a 'javascript:history.go(-4)' is used to return...
5
by: QA | last post by:
http://www.quirksmode.org/js/iframe.html says document.getElementById('testiframe').src and frames.location.href work for all The exper is WRONG. here is my test: ...
5
by: Chris Kennedy | last post by:
I have a button on a webform in frame 1 which causes a frame to loaded into frame 2 in my frame set. I need, however, for some server side code in the button's onclick event to execute before the...
5
by: Kevin | last post by:
I have a Windows form with several Frame controls containing Textboxes, Comboboxes, Buttons, etc. The Enabled property on the Frames are set to False and the user can't edit any of the Textboxes...
3
by: Vinutha | last post by:
I have designed one login page which has 2 textbox & one command button, after giving valid username & password & then after clicking command button, the page will navigate to welcome page. This...
1
by: dingshuai1985 | last post by:
I have two frames in Folderstructure.jsp <HTML> <FRAMESET COLS="30%,*"> <FRAME name="frame1" src="/AnADD-WebModule/StrategyReference1.do" /> <FRAME name="frame2"...
0
by: damod.php | last post by:
hai , friends, am new one to this group, I want to know About frame works in php Which one is best i want learn any one frame work can you help me Am workin in PHP MY SQL i want to learn frame...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.