473,387 Members | 1,703 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,387 software developers and data experts.

Passing hidden field value in hyperlinks

I currently us JavaScript to populate a hidden field with my scroll
location in order to retain the page location when I post the page back
to itself. However, I don't know how to pass that hidden field value
in a hyperlink as the value is always changing. Anyone have any
suggestions?

Jul 22 '05 #1
2 3500
you'll have to use some more fancy javascript.
Instead of a standard HREF use the onClick to jump to a script function that
reads the hidden field value then redirects the location appropriately

--
Curt Christianson
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Patrick" <hs*******@hotmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
I currently us JavaScript to populate a hidden field with my scroll
location in order to retain the page location when I post the page back
to itself. However, I don't know how to pass that hidden field value
in a hyperlink as the value is always changing. Anyone have any
suggestions?

Jul 22 '05 #2
thanks I'll try that

Jul 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Paul | last post by:
I want to use sessions to cover myself in case the user switches off cookies so I am passing the session ID manually through a hidden input field. This is what I have so far. index.php page...
1
by: Paul | last post by:
Hmmm, didn't seem to work. I have set session.use_cookies = 1 and session.use_trans_sid = 1 in my php.ini file. Index.php contains:...
10
by: Randell D. | last post by:
Folks, Perhaps someone can figure this out - this is 'the process of my script' I have a form whereby I can add multiple contacts to a single address. There is only one...
3
by: Lukelrc | last post by:
Hi all, I have an asp page with a delete button which has an OnClick Ok/Cancel msgbox event. My problem is that in order to run the Onclick event i've chaged the buttons type from "Submit" to...
12
by: Kevin Lyons | last post by:
Hello, I am trying to get my select options (courses) passed correctly from the following URL: http://www.dslextreme.com/users/kevinlyons/selectBoxes.html I am having difficulty getting the...
1
by: Kevin Lyons | last post by:
Hello, I am trying to get all of my form elements passed correctly from the following URL: http://www.dslextreme.com/users/kevinlyons/selectBoxes.html to the following URL:...
1
by: Xerxes | last post by:
Hi, I am trying to pass the value of a field to a PHP file like this: <input type="hidden" name="field1" id="field1" value="123"> <input type="hidden" name="field2" id="field2" value="456"> ...
4
by: Xerxes | last post by:
Hi all, I am trying to pass a value of a field as an argument to href but I am not doing it right: <select name="sel_name" id="sel_id"><option>....</option>.... <a...
4
by: zion | last post by:
Hello, In my Aspx.cs page in Page_load event I have for example: String x; x = "10"; How can I use the x value in a javascript function in the Aspx page? thanks
0
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,...
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:
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
Oralloy
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,...
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.