Hi everyone...
I have a Javascript Ajax question that I know someone knows a little about, though it's not PHP..
I'm showing a list of artists with ajax shown in <div id=showartist><div>
This is the main page:
<input type="button" onClick="UpdateArtist('', '<?echo $id;?>', '', 'showartist', 'wait till the list is loaded');">
</div>
<div id="showartist"></div>
The UpdateArtist javascripts opens a file where a list is generated.
In this list is do this:
onclick="UpdateArtist('<?echo $artistid;?>', '<?echo $id;?>', 'showartist', 'wait while the system works');"
when you click the artist name.
So it just updates the same file when you click an artist. And the artist is moved to another database and so on...
This works fine, but in the list I would like a search field. I have done it like this:
<input type="text" id="artistsearch" name="artistsearch" size="20" onkeyup="FilterSearch(this.value, '<?echo $id;?>', 'showsearch', 'wait while the systems searches');">
<div id="showsearch"></div>
But this doesn't work...
If I put the search field in the main page it works fine, and if I put it in the list file and open the list file directly in my browser, I can see the list and a seach field that also works fine...
But when I put it in the list file and run it from the main page it doesn't work.. It simply don't activate the ajax script at all...
Isn't possible to put an ajax script inside another ajax script ? Or is there something special I have to do,to do so.. ?
Please come back to me if there was something in my question that couldn't be understood... It was a little hard to discripe :o)
Hope someone can help...
all the ebst
Michael