Author |
Topic  |
|
kolucoms6
Average Member
  
845 Posts |
Posted - 02 June 2007 : 16:36:43
|
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
|
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 |
 |
|
kolucoms6
Average Member
  
845 Posts |
Posted - 04 June 2007 : 11:54:50
|
I am new to this
So, any help will really appreciated. |
 |
|
ILLHILL
Junior Member
 
Netherlands
341 Posts |
|
kolucoms6
Average Member
  
845 Posts |
Posted - 04 June 2007 : 16:49:20
|
Let me check.. |
 |
|
|
Topic  |
|