Yeah i nipped it ARG it was a template if statement that got me :(
thx for quick response :) love the plugin
Jason Y
www.purepressure.com
Mike Alsup wrote:
>> I am having an issue with the form plug in i cant access my ajax json
>> response data.
>>
>> $(function(){
>> $('#ticket-form').ajaxForm({
>> dataType: "json",
>> success: function(data){
>> alert(data.event);
>> }
>> });
>> });
>>
>> my responce"
>>
>> {"event":"editSuccess","msg":"w00t refresh"}
>>
>
> Hi Jason,
>
> I suspect you have a javascript error on your page somewhere and so
> submitting the form is causing a page navigation instead of an
> ajaxSubmit. The code you posted works fine for me. Did you
> streamline your test to include only this code? Can you post your
> page somewhere?
>
> Here's the test page I used:
>
> <html>
> <head>
> <script type="text/javascript" src="jquery-1.0.4.js"></script>
> <script type="text/javascript" src="form.js"></script>
> <script type="text/javascript">
> $(function(){
> $('form').ajaxForm({
> dataType: "json",
> success: function(data){
> alert(data.event);
> }
> });
> });
> </script>
> </head>
> <body id="body">
> <form method="get" action="json2.txt">
> <input type="submit" />
> </form>
> </body>
> </html>
>
>
> Mike
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>
>
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/