Suppose I have a frame like 123bottom.html and within it, I want to promt
the user for a response (in the <HEAD>) like
var ans = prompt("What is your name?");
and then reload the page (via, say window.location.reload() ?)
using the argument of the value of ans appended onto the url so that, in
effect, say, I am calling the new frame as
123bottom.html?ans=Ike
Can someone show me how I need to call the page again, itself, like this
once I have the value for ans? Thanks, Ike (himself) 3 2348
In article <Yq******************@newsread1.news.atl.earthlink .net>, rx*@hotmail.com enlightened us with... Suppose I have a frame like 123bottom.html and within it, I want to promt the user for a response (in the <HEAD>) like
var ans = prompt("What is your name?");
and then reload the page (via, say window.location.reload() ?)
using the argument of the value of ans appended onto the url so that, in effect, say, I am calling the new frame as
123bottom.html?ans=Ike
Can someone show me how I need to call the page again, itself, like this once I have the value for ans? Thanks, Ike (himself)
in BODY, not head
<form name="f1">
<input type="hidden" name="ans">
</form>
<script type="text/javascript">
var a = prompt("What is your name?");
document.forms["f1"].elements["ans"].value=a;
document.forms["f1"].elements["ans"].submit();
</script>
Default action of a form is to submit with GET (url) to same page,
resulting in a "reload" with the url appended with ans=whatever
--
--
~kaeli~
Murphy's Law #3020: Quality assurance doesn't. http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace
Ike said: Suppose I have a frame like 123bottom.html and within it, I want to promt the user for a response (in the <HEAD>) like
var ans = prompt("What is your name?");
and then reload the page (via, say window.location.reload() ?)
using the argument of the value of ans appended onto the url so that, in effect, say, I am calling the new frame as
123bottom.html?ans=Ike
Can someone show me how I need to call the page again, itself, like this once I have the value for ans? Thanks, Ike (himself)
If you're changing anything, you're not actually a reloading it,
you're changing the location:
window.location="123bottom.html?ans=Ike".
Yes! This is it perfectly. Thank you! Ike
"kaeli" <ti******@NOSPAM.comcast.net> wrote in message
news:MP***********************@nntp.lucent.com... In article <Yq******************@newsread1.news.atl.earthlink .net>, rx*@hotmail.com enlightened us with... Suppose I have a frame like 123bottom.html and within it, I want to
promt the user for a response (in the <HEAD>) like
var ans = prompt("What is your name?");
and then reload the page (via, say window.location.reload() ?)
using the argument of the value of ans appended onto the url so that, in effect, say, I am calling the new frame as
123bottom.html?ans=Ike
Can someone show me how I need to call the page again, itself, like this once I have the value for ans? Thanks, Ike (himself)
in BODY, not head
<form name="f1"> <input type="hidden" name="ans"> </form>
<script type="text/javascript"> var a = prompt("What is your name?"); document.forms["f1"].elements["ans"].value=a; document.forms["f1"].elements["ans"].submit(); </script>
Default action of a form is to submit with GET (url) to same page, resulting in a "reload" with the url appended with ans=whatever
-- -- ~kaeli~ Murphy's Law #3020: Quality assurance doesn't. http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Ellinghaus, Lance |
last post by:
> > Other surprises: Deprecating reload()
>Reload doesn't work the way most people think
>it does: if you've got any references to the old module,
>they stay around. They aren't replaced.
...
|
by: sentinel |
last post by:
Hi all,
I'm trying to reload a frame from a pop-up, but really cannot figure
this out.
Within my index.htm file, I make a link to call a pop-up frame with a
javascript function that calls the...
|
by: Darren |
last post by:
I have a page that opens a popup window and within the window, some databse
info is submitted and the window closes. It then refreshes the original
window using window.opener.location.reload(). ...
|
by: N. Demos |
last post by:
Hello,
I'm learning ASP.NET, and am having a strange problem with some example
code from the book I'm using. The code increments and displays the value
stored in a session variable when the "Add"...
|
by: John Salerno |
last post by:
I understand that after you import something once, you can reload it to
pick up new changes. But does reload work with from statements? I tried
this:
from X import *
and then did my testing....
|
by: Josh Nikle |
last post by:
I have a webform containing a GridView control "GridView1" and
usercontrol which is also a GridView "GridView2." I have a button
column in the usercontrol. The code behind that button adds an...
|
by: Max |
last post by:
Is it possible to reload a web page on user browser when an event occurs at
server side?
For example when user A places an order, user B should be notified of that
and should see that order on his...
|
by: ericisjusteric |
last post by:
I have a page with multiple iframes and need to have the user (ie6) be able to click a button to refresh any one of the iframes - but also to click another button at the top of the page to refresh...
|
by: =?Utf-8?B?UGF1bA==?= |
last post by:
Hi I tried a google search but could not find anything. I am trying to cause
one webpage to reload when a second web page is closed. The second webpage
loads data into a session variable and when...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
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: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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: 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: 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...
| |