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! 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!
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!
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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)
|
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...
|
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:
...
|
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...
|
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...
|
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...
|
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"...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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...
|
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...
|
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...
|
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...
|
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,...
|
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...
|
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...
| | |