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

getting nothing returned to client for inhA hidden input control

Hi I am setting the value of inhA.Value on the server and have the code below
to run on the client. Does not seem to be working, value set on server side
and checked by the client.
<input type="hidden" runat="server" id="inhA" NAME="inhA">
<script language="javascript" event="onload" for="window">
if (inhA.value == "0")
{Form1.dr_tx_names.focus();}
if (inhA.value == "1")
{Form1.dr_lst_system.focus();}
</script>
thanks.
--
Paul G
Software engineer.
Nov 19 '05 #1
2 904
Try using document.getElementById("inhA").value

HTH
----
http://www.davefancher.com
"Paul" wrote:
Hi I am setting the value of inhA.Value on the server and have the code below
to run on the client. Does not seem to be working, value set on server side
and checked by the client.
<input type="hidden" runat="server" id="inhA" NAME="inhA">
<script language="javascript" event="onload" for="window">
if (inhA.value == "0")
{Form1.dr_tx_names.focus();}
if (inhA.value == "1")
{Form1.dr_lst_system.focus();}
</script>
thanks.
--
Paul G
Software engineer.

Nov 19 '05 #2
Hi thanks it works!.
--
Paul G
Software engineer.
"Dave Fancher" wrote:
Try using document.getElementById("inhA").value

HTH
----
http://www.davefancher.com
"Paul" wrote:
Hi I am setting the value of inhA.Value on the server and have the code below
to run on the client. Does not seem to be working, value set on server side
and checked by the client.
<input type="hidden" runat="server" id="inhA" NAME="inhA">
<script language="javascript" event="onload" for="window">
if (inhA.value == "0")
{Form1.dr_tx_names.focus();}
if (inhA.value == "1")
{Form1.dr_lst_system.focus();}
</script>
thanks.
--
Paul G
Software engineer.

Nov 19 '05 #3

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

Similar topics

1
by: Jim Hammond | last post by:
I can get data from a client-side assembly to the server in two manual steps, but I need to be able to do it in one step. Step 1: The user presses the manually coded "Step 1" button, which calls...
3
by: Henke | last post by:
How can data be passed to the server when an event is fired in client-side jscript, ie on a drop event? I have tried using hidden fields and submitting the page, but for some reason I can't access...
8
by: Mike Fellows | last post by:
Ok, im not sure if this is at all possible and if it is how i go about it is beyond me i have a piece of client side code that requires a piece of data from the server side (an ID number in this...
3
by: Magnus Blomberg | last post by:
Hello! I have a client javascript that generates a string (like below). This string should then be used by server code (in this case a function called run). <script language=javascript>...
10
by: Peter Afonin | last post by:
Hello, I have a simple client-side form that is checking the domain availability on the domain registrar's server: <FORM action="https://www.webnames.ru/scripts/RegTimeSRS.pl" method="post">...
5
by: Chris Ashley | last post by:
Is there any way to access hidden literal controls using client side script? Can't seem to see them at all in the HTML output.
1
by: Evan Kontos | last post by:
I have the need to test for the value of a client variable from a server control in a VB Web form. How can I do this in VB. Net? Evan Kontos | EKontos@comtekcadd.com 27 Whitehall St. | ...
1
by: RSH | last post by:
I have a situation where I have a user control (Called TopOrangeMenu) that has an Hidden HTML Field called "txtU" I am trying to get at the value of that hidden field control from within the...
1
by: raghuvendra | last post by:
Hi I have a jsp page with 4 columns: namely Category name , Category order, Input field and a submit button. All these are aligned in a row. And Each Category Name has its corresponding Category...
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:
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
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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,...

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.