473,830 Members | 2,034 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="javas cript" event="onload" for="window">
if (inhA.value == "0")
{Form1.dr_tx_na mes.focus();}
if (inhA.value == "1")
{Form1.dr_lst_s ystem.focus();}
</script>
thanks.
--
Paul G
Software engineer.
Nov 19 '05 #1
2 925
Try using document.getEle mentById("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="javas cript" event="onload" for="window">
if (inhA.value == "0")
{Form1.dr_tx_na mes.focus();}
if (inhA.value == "1")
{Form1.dr_lst_s ystem.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.getEle mentById("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="javas cript" event="onload" for="window">
if (inhA.value == "0")
{Form1.dr_tx_na mes.focus();}
if (inhA.value == "1")
{Form1.dr_lst_s ystem.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
2686
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 the JavaScript function. The function copies the data into a server textbox control. Step 2: The user presses the VS generated "Step 2" button, which calls the
3
1893
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 a html hidden field that is set to run as server control. Please can someone point me in the right direction here? /Henke
8
3688
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 case) how can i pass the data from one side to the other, or retrieve it from the webform on the client side? i hope ive explained this properly
3
1638
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> function getpic() { string s; s = document.getElementById("File1").getAttribute("value"); <% run(s); %> }
10
1948
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"> <input type="hidden" name="thisPage" value="pispCheckDomain"> <input type="hidden" name="username" value="test"> <input type="hidden" name="password" value="test"> domain_name: <input type="text" name="domain_name"><br>
5
1298
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
2707
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. | 3rd Floor | New York, NY 10004 Tel 212.480.8166 | Fax 212.480.8167 | Personal Fax 786.513.0295 www.comtekcadd.com *** Sent via Developersdex http://www.developersdex.com ***
1
3444
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 User Control. Hidden Field Control as it apears in the HTML of the User Control: <INPUT id="txtU" type="hidden" runat="server"> Trace Output (partial) from the browser:
1
4934
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 order, Input field and a submit button. The Category name is being fetched from the oracle db along with the corresponding Category order. In the corresponding input field (text box) the user enters a new category order which gets stored in...
0
9790
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, 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...
0
10770
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, 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...
1
10524
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10199
tracyyun
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...
0
9312
agi2029
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...
1
7741
isladogs
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...
0
5779
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4409
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
3
3074
bsmnconsultancy
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...

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.