Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[JS] strange problem of array

 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Following code is with reference to actb:



'a' is textbox which displays suggestions from an array ('customarray' or 'matchingNames'), this script code is written in actb() function (no issue here).

The strange part is, it gives suggestions from 'customarray' but doesn't gives suggestions from 'matchingNames' array which I am building run time through Ajax...

Please help.
Thanks.
[ November 24, 2006: Message edited by: Bear Bibeault ]
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe it does not work because you hacked Ajax into code that does not have Ajax in it?

Look at the Yahoo Autocomplete API

Eric
 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Eric Pascarello:
Maybe it does not work because you hacked Ajax into code that does not have Ajax in it?

Eric


... but before this line 'var obj = actb(document.getElementById('a'), customarray);' ajax is finished, now it's just javascript...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic