Hi,

The examples in w3 page don't work. I do copy and paste and create exactly same database but nothing changes. It returns "Error on Page" error.

http://www.w3schools.com/php/php_ajax_database.asp
http://www.w3schools.com/php/php_ajax_responsexml.asp
http://www.w3schools.com/php/php_ajax_livesearch.asp

Recommended Answers

All 5 Replies

I tried all the scripts and they work (on both IE and mozilla) ! What error are you getting exactly ?

On the status bar of explorer it says "Error on Page".

That's all.

Try it in Firefox, open Error console and see whats going wrong.

Aaa. They all work now. Thanks to you and Error console.

Do you have any working example for auto completing for php&mysql ? I have tried a lot of web examples but none worked.

I'll mark this as Solved after your answer.

Thanks

Well, I don't have an example with me. But, Instead of having an xml, you can query the table, then have a select element where you can show all the matching values. Also have an onchange event for select so that when the user clicks an option, it is inserted to the textbox.

<select name='selecttag' multiple='10' onchange='document.getElementById('txt1').value=this.value;'>

You also need to hide the border of select element.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.