The only visible differences are that with jQuery you are using POST
instead of GET, and sending some data to the server, what you don't
seem to be doing on your 'base' approach. Anyway response times should
be the same, the function running time is negligible, it only depends
on the server.

- ricardo

On Oct 18, 4:27 am, bookme <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Jquery is gr8 I agreed.
>
> But when I am working on a registration page then this jquery is not
> providing me seamless effect.
>
> There is two select box - drop down
> 1 State
> 2 City
> when ever a user select a state correspondingly city comes in city
> drop down.
>
> I used two apprach for this
>
> 1 Ajax- Jquery
> $.ajax({
>   type: "POST",
>   url: "<?php //echo $html->url('/users/city') ?>",
>   data: "state_id=" + escape(state_value),
>   success: function(html){
>     $("#id_city").html(html);
>   }
>
> 2 Base Ajax approach
>
> Create a HTTP object : httpObject
> Open http connection
> httpObject.open("GET", url,  true);
> httpObject.send(null);
> httpObject.onreadystatechange = setOutput;
> getting response on httpObject.readyState == 4
>
> Base Ajax approach  return me better results then jquery.
>
> But I need seemless - more better results...
>
> Can somebody tell me how should I get more better results for this?
>
> Should I follow jquery instead of Base AJAX approach?
>
> Thanks

Reply via email to