can't get returns from ajax success callback function
Object: Create dropdown list for general use by only sending one parameter.
I am trying to call 1. Ajax with a parameter then 2. process that Ajax data to select an option from a database and 3. return that option selected to the calling function - in order to populate an input tag. I am running into trouble in returning my selection to the calling function. I know this is tied into the asynchronous nature of Ajax but I don't know how to fix this. Here is the code I'm using: Code:
<!-- ====== HTML =========== --> |
Define getDr inside callAjaxDr, and have it modify a variable that's in callAjaxDr's scope.
|
3 Attachment(s)
Thanks for your reply Dugan,
Quote:
Start program: click on Doctor input -> select box appears -> alert appears "in drop9999 line 40 return is and type is string" - in focus click ok -> clears alert, select box stays click on option -> select box clears click on Doctor -> Doctor input populated -> alert appears "in drop9999 line 40 return is Allen, Peter W OD and type is string" - in focus click ok -> alert clears -> Doctor populated input still shows -> select box still shows click on option -> select box clears -> Doctor populated input still shows click done -> Start Over Sooooooo .. This partially works in that I can get a return value back but with the penalty of bizarre behavior. Do you have suggestion as to how to fix this? I Hope!!! Because of Linux Questions File restrictions dropdown9999.txt is dropdown9999.php listArrayTest.txt is listArrayTest.php testnew.txt is testnew.js R |
All times are GMT -5. The time now is 06:54 AM. |