Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Ajax help
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

kolucoms6
Average Member

845 Posts

Posted - 02 June 2007 :  16:36:43  Show Profile

Plz Vist http://www.ulcindia.com/LT/ajax_populate_form.asp

Once you enter phone Number, it shld display Name and Other details.

But its Not happening.

Kindly help.

Once I enter phone Number, entire form goes blank and I can only see "Add Data" Button"


Here are the 2 files I used :

www.ucsreports.com/ajax_populate_form_getDetails.txt
www.ucsreports.com/ajax_populate_form.txt

It alse uses a single table db

DB Name: CustLeads
Table Name:CustLeads
Fields:
CustLeads.FName,
CustLeads.LName,
CustLeads.Address,
CustLeads.City,
CustLeads.State,
CustLeads.Zipcode,
CustLeads.Phone

kolucoms6
Average Member

845 Posts

Posted - 02 June 2007 :  18:58:21  Show Profile
Ajax works like this ??:

File1.asp:
******************

There are 2 fields ... F1 and F2
On typing something on F1(call AJAX F2.asp), F2 will fill up.
Both F1 and F2 are inside a Span

File2.asp:
******************
Query Database
Get data
Stores DATA LIKE
F1 = getDetails("F1")
F2 = getDetails("F2")

But does File2.asp needs to have F1 and F2 code also to display F1 and F2 fields ??

I have gone through the tutorial of W3 school also.

What i understood is simple terms is that :

There are 2 pages.



Primary page calls Ajax secondary page which calls for DB action and get the data form DB and stores in a variable.These fields need to be displayed in Primary Page.But Secondary page also need to have code like this as Primary page ??:



Primary page :

*************

<input type=text name=txt1>



Secondary page :

*************

<input type=text name=txt1 value=<%=txt %>>




Edited by - kolucoms6 on 03 June 2007 03:45:51
Go to Top of Page

kolucoms6
Average Member

845 Posts

Posted - 04 June 2007 :  11:54:50  Show Profile

I am new to this

So, any help will really appreciated.
Go to Top of Page

ILLHILL
Junior Member

Netherlands
341 Posts

Posted - 04 June 2007 :  15:00:07  Show Profile
This might help. I have been working with Ajax recently too and maybe there's a bit of help in here: http://forum.snitz.com/forum/topic.asp?TOPIC_ID=64112

Greets, Dominic

CLPPR.com - All The News Only Seconds Away
Go to Top of Page

kolucoms6
Average Member

845 Posts

Posted - 04 June 2007 :  16:49:20  Show Profile
Let me check..
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.22 seconds. Powered By: Snitz Forums 2000 Version 3.4.07