473,398 Members | 2,525 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,398 software developers and data experts.

Simple but I can't figure it out

<input type="text" value="1234" onblur="<% some_asp(value) %>" >

How do I pass the changed value of this input text box to the asp function?
Nov 19 '05 #1
1 735
"myleslawrence" <my***********@msn.com> confessed in news:u76cYyd$EHA.3592
@TK2MSFTNGP09.phx.gbl:
<input type="text" value="1234" onblur="<% some_asp(value) %>" >

How do I pass the changed value of this input text box to the asp function?


There's only 2 ways with HTTP:

1. In the URL
2. In the Headers

You control this with the method property of the Form tag.

-- method="post" passes your control values in the html headers
-- method="get" passes your control values in the URI query string.

<form method='post' action='processForm.asp'>

<input type='text' name='UserID'>

<input type='Submit' VALUE='Submit'>
</form>
In processForm.asp, you get the value like this:

<% theValue = Request("UserID") %>
If you use a method=get, then you get it in the query string:

<% theValue = Request.QueryString("UserID") %>
But first I must ask: Do you understand HTTP and the concept of round
trips? It is essential.

Also, I see you are trying to set the onblur method of the control. Looks
like you want to write a clientside script that does something when the
user moves his mouse? Then you need to write either client-side function in
vbscript (works only with IE) or javascript.

Perhaps it's time to get a Beginning Web Programming with ASP book? Try
reading Wrox's "Professional ASP 2.0" for starters.

-- ipgrunt

Nov 19 '05 #2

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

Similar topics

13
by: Noah Spitzer-Williams | last post by:
Hello guys, I would like to do something seemingly simple: find out if an element in an array that is passed to my function exists. I used to think I could just do: if (arr) ... However, if...
0
by: Harley | last post by:
Hello, I am just learning the tcp/ip functions etc under vb.net so please look over me if this is obviouse. I have been all over looking into any functions that I didn't totaly understand and...
2
by: Michael7 | last post by:
Hi everyone, I'm new to CSS of course, and have been trying to learn it. However, when I try to pull off something as simple as positioning of text . . . nothing works in my index page. So in...
3
maxx233
by: maxx233 | last post by:
Hello, I'm developing a simple program to control a video switcher we have via RS232. All the backend control stuff is figured out just fine, the interface is what's giving me problems! I'm...
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
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?
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
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...
0
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...
0
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...

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.