[TYPO3-dev] lib /div and a jquery ajax call
Franz Koch
typo.removeformessage at fx-graefix.de
Sat Aug 15 10:47:35 CEST 2009
Hi,
> I need to call the following action from a controller:
>
> test[action][write]
>
> with a Form I do following to call this function:
> <input class="send" value="senden" type="submit" name="test[action][write]"/>
>
> Now I want to call this function with jQuery. The call looks like at the moment, but does not work:
>
> $.ajax({
> type: "POST",
> url: "some.php",
> data: "test[action][write]",
> success: function(msg){
> alert( "Data Saved: " + msg );
> }
> });
isn't that more related to jQuery and would thus belong to their
forums/newsgroups? And I think google would have also helped as well as
the jQuery manual.
Anyway, you're defining the "key" of your parameter, but not any value -
it might be related to that.
data: 'test[action][write]=senden',
if that doesn't help, simply write the parameter directly in the url and
don't use "data":
url: 'some.php?test[action][write]=senden',
--
kind regards,
Franz Koch
---------------------------------------------------
PayPal-Account: 'paypal _at_ elements-net _dot_ de'
---------------------------------------------------
More information about the TYPO3-dev
mailing list