Development

#2576 ([sfJqueryPlugin] not json capable)

You must first sign up to be able to contribute.

Ticket #2576 (new defect)

Opened 11 months ago

Last modified 10 months ago

[sfJqueryPlugin] not json capable

Reported by: amadeus Assigned to: francois
Priority: major Milestone:
Component: sfJqueryPlugin Version: 1.0.8
Keywords: jquery json Cc:
Qualification: Unreviewed

Description

it's not possible to do a JSON callback with the jquery plugin. It appears that the callback function is missing the return parameters.

Current:

<form onsubmit="jQuery.ajax({type:'POST',dataType:'html',data:jQuery(this).serialize(),beforeSend:function(){$('#go').addClass('loading')},complete:function(){updateJSON(request, json)},url:'/public_dev.php/member/login'}); return false;" action="/public_dev.php/member/login" method="post"

but should be:

<form onsubmit="jQuery.ajax({type:'POST',dataType:'html',data:jQuery(this).serialize(),beforeSend:function(){$('#go').addClass('loading')},complete:function(request, json){updateJSON(request, json)},url:'/public_dev.php/member/login'}); return false;" action="/public_dev.php/member/login" method="post"

Change History

12/20/07 16:10:28 changed by lking

  • owner changed from fabien to francois.
  • component changed from plugins to sfJqueryPlugin.
  • summary changed from sfJqueryPlugin not json capable to [sfJqueryPlugin] not json capable.