 |
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0 |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|

March 5th, 2007, 03:17 AM
|
Authorized User
|
|
Join Date: Jan 2007
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
how to pass data from Client to server script
Hi all,
Plz let me know how to pass the client side script data to the server side script.
here i want to pass the username (which is a <input type="text">)
to find out it's emailid from the Exchange server on the "onfocus" event of the textbox (name= "emailaddress") .
All the script here i have used is ASP,JAvaScript and VBScript.
But still I have not get the proper solution.
thank you.
|

March 7th, 2007, 11:51 AM
|
Friend of Wrox
|
|
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Client side data is passed to the server side script via the querystring or form varibles.
A browser communicates with the sever by making requests. Along with the request, the browser packages up and sends the querystring and/or form variables.
When you want communicate with the server in an event handler in the browser there are several choices, but essentially it comes down to either doing a post or a get, or else doing an Ajax style operation.
So... what is it that you are trying to do?
Woody Z
http://www.learntoprogramnow.com
How to use a forum to help solve problems
|

March 8th, 2007, 05:35 AM
|
Authorized User
|
|
Join Date: Jan 2007
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi,
Here i want to pass the value of one form element(username) to the function (function runat server side which is written in VBScript) and where i want to open database where that username is search in the exchange server for getting the emailaddress of that username. this is i want to do in on "onfocus" event of "emailaddress" textbox.So sequense is that,
I put the username in the 'username' text box.
and on 'onFocus' event of 'emailaddress' textbox ,i pass that username to the function which returns the emailaddress of username to the emailaddress text box.
So how i can achive this in ASP and vbscript.
|

March 8th, 2007, 11:46 AM
|
Friend of Wrox
|
|
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
If you actually want to do this in the onfocus of a field in a page, you merely have to write some code in the onfocus event handler of the emailaddress textbox to make an Ajax call to get the data you want to display. This will require that you search the web for some examples of using Ajax, but it is quite simple. Of course, Ajax depends on the client browser to have javascript enabled, but almost any dynamic client side scripting requires this.
Woody Z
http://www.learntoprogramnow.com
How to use a forum to help solve problems
|

March 9th, 2007, 07:01 AM
|
Authorized User
|
|
Join Date: Jan 2007
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Use Ajax...
|

March 9th, 2007, 07:47 AM
|
Authorized User
|
|
Join Date: Jan 2007
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
i am new to Ajex
|

March 9th, 2007, 11:12 AM
|
Friend of Wrox
|
|
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
quote:Originally posted by pushpa
i am new to Ajex
|
There are going to be thousands of things you will be "new to" as you work in the programming world. We have given you a direction, now it is time for you to do some research, study, and practice to learn what you need to do to make your application work.
Woody Z
http://www.learntoprogramnow.com
How to use a forum to help solve problems
|

March 11th, 2007, 04:30 AM
|
Authorized User
|
|
Join Date: Jan 2007
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thank you sir,
Here on internet i have found lots of study material for AJAX .
Using that now i am trying to slove my problem.
Thank you for ur helpful guidline.
|
|
 |