I have a form that contains many fields for the user to enter. After
entering the data the user can click a link to open a new window, the
new window contains six columns (pull down menu) and 30 rows to allow
user choose their options.
<SCRIPT LANGUAGE="JavaS cript">
function win(QID) {
msg=window.open ("QuotationPE.a sp?QID=" + QID
,"","height=600 ,width=800,left =80,top=80, scrollbars=yes" );
}
</script>
........
QID = "200510001"
<a href="javascrip t:win(<%=QID%>) ">
After finished, the new window saves the data to a txt file, closes
itself and return to the main page.
Response.Write( "<script language='javas cript'>")
Response.Write( "parent.window. close();")
Response.Write( "</script>")
Then the user click the submit button in the main page, all the values
in the main page will post to a print preview and save to a database,
everything ok, but before save, I allow user to go back and make
changes from the previous main page. However, when "history.back() " to
the previous main page, all the submitted values lost.
How can my "onclick = history.back()" button tell the browser to retain
the previously submitted values so the user doesn't have to re-enter
everything?
Thanks 3 6777
Alan wrote on 29 dec 2005 in microsoft.publi c.inetserver.as p.general: <SCRIPT LANGUAGE="JavaS cript"> function win(QID) { msg=window.open ("QuotationPE.a sp?QID=" + QID ,"","height=600 ,width=800,left =80,top=80, scrollbars=yes" ); } </script> ....... QID = "200510001" <a href="javascrip t:win(<%=QID%>) ">
After finished, the new window saves the data to a txt file, closes itself and return to the main page.
Response.Write( "<script language='javas cript'>") Response.Write( "parent.window. close();") Response.Write( "</script>")
1 Your question is only clientside javascript related.
The fact that it is packed in a bit of ASP code does not warant an
answer in this NG.
2 The little ASP in it is incorrect:
QID = "200510001" <a href="javascrip t:win(<%=QID%>) ">
should be:
<%
QID = "200510001"
%>
after all QID is a serverside variable, and
<a href="javascrip t:win('<%=QID%> ')">
if you don't want to risk the error prone
string to number to string conversion.
3 I surmize you ment:
"20051001" ?
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Dear Evertjan
Thanks for yr help.
In fact, the QID is
QID = request("QID")
Alan, just put a Response.Expire s=100 (or something different from 0)
at the beginning of the code of the page) and u will not more loose the
value when u call the history.back.
Bye
Goose
Alan ha scritto: Dear Evertjan
Thanks for yr help.
In fact, the QID is QID = request("QID") This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Peter Bremer |
last post by:
Hi all,
I've written this little piece of code, which doesn't seem to work in
Mozilla 1.5. I haven't tried it on other Gecko browsers, but I've found
some indication that Netscape 6+ has the same problem. Internet Explorer 6
and Opera 7 have no problems with it.
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1//EN'
'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd'>
<script>document.write (window.history.length);</script>
|
by: Justin |
last post by:
Hi,
I have a simple frameset defined:
---------------- index.html ----------------
<FRAMESET COLS = "225,*">
<FRAME NAME = "a" SRC = "one.html">
<FRAME NAME = "b" SRC = "one.html">
</FRAMESET>
|
by: Ike |
last post by:
Can someone show me how I can have:
<a href="javascript:history.back()" name="Back" value="Back"
style=width:40px;float:right;margin-left:0px class="button" >Back</a>
but since this href exists in a frame, it only pertains to this frame?
Thanks, Ike
|
by: pmelanso |
last post by:
Hello,
How can I tell if there is a page to go back to in the history or
not??? Same with forward??? say something like///
if (there is a page to go back to ) {
// DO something
}else {
}
|
by: Tim Marsden |
last post by:
Hi,
If I navigate from Page1 to Page2 then to Page3, using the
response.redirect.
When the user press the Back button, I what then to go to Page 1 and start
again, not Page2. I dont want the to navigate to Page2 using the Back and
Forward buttons.
How do I do this.
| |
by: Dan |
last post by:
Is there a way to obtain the last page visited? I don't want to go to
that page, I just want to be able find out what page they came from,
the url of that page. Is this possible?
|
by: pentisia |
last post by:
Hi there,
We are using history.go(integer) to go back to the certain page
directly. Because there are some pages interaction in between. For
example, starting from page 1 to page 2. From page 2, it will reload
sometime, or go to page 3 and then go back to page 2 again. If we use
history.back, it will only go back to the previous page. So, we have
to use history.go in order to go back to page 1 correctly.
But there is some problem...
|
by: Ajm113 |
last post by:
Making a History Page for BIG Sites
Intro:
Ok, let's say after a while your website has grown massive. We're talking search engine, forum and video hosting -- you've got a LOT of content. And you are wondering, "Why do I need yet another feature for my big site?"
Well, some people can become forgetful every time they see content on your site, and let's suppose that one day they needed to work on a good php script for their class and they...
|
by: jim.richardson |
last post by:
Hi all,
I'd like a page to be excluded from the back button history, that is,
when a user hits their browser's back button, it never backs into this
particular page.
Can anybody please tell me how to do this?
I thought perhaps there would be some kind of special meta tag that
says something like "exclude me from browser's history", but have been
|
by: Max |
last post by:
I recently moved to ASPnet Ext 3.5
What I can't get with Ajax and History browser managemet is this:
User fills some fields (dropdown and textbox) on page 1 (all are in an
update panel)
User clicks Submit Button
I write the data into a DB
I add a history point with ScriptManager to be able to get back to this
point with browser back button
Page 2 is loaded with a response.redirect() command
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |