Wrox Programmer Forums
|
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
 
Old March 5th, 2007, 03:17 AM
Authorized User
 
Join Date: Jan 2007
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to pushpa
Default 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.


 
Old March 7th, 2007, 11:51 AM
Friend of Wrox
 
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
 
Old March 8th, 2007, 05:35 AM
Authorized User
 
Join Date: Jan 2007
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to pushpa
Default

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.



 
Old March 8th, 2007, 11:46 AM
Friend of Wrox
 
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
 
Old March 9th, 2007, 07:01 AM
Authorized User
 
Join Date: Jan 2007
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to saurabhj Send a message via Yahoo to saurabhj
Default

Use Ajax...

 
Old March 9th, 2007, 07:47 AM
Authorized User
 
Join Date: Jan 2007
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to pushpa
Default

i am new to Ajex

 
Old March 9th, 2007, 08:19 AM
Authorized User
 
Join Date: Jan 2007
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to saurabhj Send a message via Yahoo to saurabhj
Default

http://www.w3schools.com/ajax/default.asp
This will help you to learn Ajax

-Saurabh
 
Old March 9th, 2007, 11:12 AM
Friend of Wrox
 
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
 
Old March 11th, 2007, 04:30 AM
Authorized User
 
Join Date: Jan 2007
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to pushpa
Default

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.







Similar Threads
Thread Thread Starter Forum Replies Last Post
How to pass credential from dot Net client to Java mohitjaitly .NET Web Services 1 January 29th, 2007 07:20 AM
Pass an array between client and server pigtail Javascript 3 April 14th, 2004 12:42 PM
Postback from client script gp_mk HTML Code Clinic 2 April 14th, 2004 02:48 AM
vb application client server data access louisantony Access VBA 0 December 30th, 2003 08:22 AM
manipulate data returned using client script alyeng2000 Classic ASP Databases 5 December 9th, 2003 01:39 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.