Could I use Ajax to preload a dropbox?
I have got a html form to input books' information. When I run my PHP script in localhost, everthing is good. The problem is when I upload it to my shared hosting, the hosting provider tells me that my script consumes a lot of server's resources.
My friend told me that I should use Ajax to pre-load dropbox(es). I don't know how to do that.
I want to "Choose a language" (1) it will have an influence on "Choose an author" (2) and "Choose a publisher" (3). That means "When I choose French, American authors and publishers will not to be listed".
I am using an "onchange" event in HTML to refresh / reload. It makes a slow flicker, a long delayed time, a lot of hosting resource,...
Some queries with Google and Altavista I cannot solve the problem. Will everybody here tell me what Ajax tool(s) I should use?
Thanks in advance.
It's easy with jquery! I'll make an example for you:
some place in your form
And the "ajax.publisher.php"
Oh, thank martins256 very much. I would like to say "You are a star" :)
|All times are GMT. The time now is 09:07 PM.|
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0