aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes dynamic select box - with ajax Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "dynamic select box - with ajax" Watch "dynamic select box - with ajax" New topic
Author

dynamic select box - with ajax

indu yeturu
Ranch Hand

Joined: Aug 27, 2008
Posts: 123
Hi all, am trying to get the values for dropdown box from database and this box has to be added dynamically and should load with values.
--- connecting to servlet , fetching values from database and retrieving in javascript --- up to this part is working fine.

But, when I try to append these in callback() it is not recognizing the variables used in add function. In add() am adding some more textboxes dynamically ...


please help me ...


thanks,
indu
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Put the callback function inside the add function so if has reference to the local variables.

Eric
indu yeturu
Ranch Hand

Joined: Aug 27, 2008
Posts: 123
when i put callback() inside add() it simply shows the req.readyState = 1;
and doesn't do anything
indu yeturu
Ranch Hand

Joined: Aug 27, 2008
Posts: 123
and when I try like this..

it is not going inside the callback function.. and pop up the alert box as "Not implemented ".
indu yeturu
Ranch Hand

Joined: Aug 27, 2008
Posts: 123
oh!... I got it..... please close this thread..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: dynamic select box - with ajax