Thanks, thats what I'll do. The documentation does not explicitly guide
you to use .ajax in preference to the other functions, but a second read
(plus your email) made it clear thats the way to go.

--Jacob

> [EMAIL PROTECTED] schrieb:
>> OK so thats a shame :). I'd have hoped that get would work, since I need
>> to do a get (I want to keep the flexibility of applying a function to
>> the
>> returned data and updating more than one element) and also having the
>> embedded javascript inside HTML being executed.... Is this a feature
>> that
>> get doesn't do that, or is it a bug?
>>
>> --Jacob
>
> I don't think that's a bug. To me $.post and $.get are somewhat
> deprecated. You should use the more powerful $.ajax function to have
> better error and success handling, you can define timeouts etc. Of
> course you can define which http method to use:
>
> $.ajax({
>      type: 'GET',
>      url: ...,
>      timeout: 5000,
>      dataType: 'html', // have scripts evaluated
>      success: function() {
>          // do something
>      },
>      error: function() {
>          // do something other useful in case of an error/timeout
>      }
> });
>
>
> -- Klaus
>
>
>
>>
>>> [EMAIL PROTECTED] schrieb:
>>>> Hi Everyone
>>>>
>>>> http://fjsoftllc.com/page.html
>>>>
>>>> Is my lame attempt to invoke a PHP via jQuery, and it works, except
>>>> that
>>>> the embedded <script>...</script> element seems to have no effect,
>>>> isnt
>>>> executed.
>>>>
>>>> Any ideas?
>>>>
>>>> Thanks!
>>>>
>>>> --Jacob
>>> Hi Jacob, automatic evaluation should work with
>>>
>>> $(...).load();
>>>
>>> and
>>>
>>> $.ajax({
>>>      dataType: 'html'
>>>      ...
>>> });
>>>
>>>
>>> -- Klaus
>>>
>>>
>>> _______________________________________________
>>> jQuery mailing list
>>> [email protected]
>>> http://jquery.com/discuss/
>>>
>>
>>
>>
>> _______________________________________________
>> jQuery mailing list
>> [email protected]
>> http://jquery.com/discuss/
>>
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>



_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to