On Fri, Jan 4, 2013 at 3:11 AM, Zagfai Kwong <[email protected]> wrote:
> No matter GET or POST, you could use web.input()
>
> Brendan Sleight於 2012年12月26日星期三UTC+8下午7時43分41秒寫道:
>>
>>
>>
>> On Friday, 14 December 2012 16:14:06 UTC, NSC wrote:
>>>
>>> Hi everyone...
>>>
>>> Check it out at: https://github.com/shannoncruey/webpy-jquery-sampleapp
>>>
>>> Hope it helps someone!
>>
>>
>> Very helpful to me. As a beginner in wep.py (<4 days) it also shows some
>> good practice with include js and css files.
>>
>> IMHO - Good addition to the cookbook examples.
>>
>> Thanks,
>> Brendan
>
> --
> You received this message because you are subscribed to the Google Groups
> "web.py" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/webpy/-/Q5sZlYyaJDUJ.
>
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/webpy?hl=en.

Thanks, this sample app is helping me a lot!!! :-)

Re: "jquery ajax args must be a JSON string" [0]

As far as I can tell, the data setting of jQuery's .ajax doesn't need
to necessarily be a string. For instance the docs [1] say: "Object
must be Key/Value pairs."

For what I'm doing, it makes more sense to write some json and send it
like this...

var my_data = { id: "12345", tags: "tag1,tag2,tag3" }
$.ajax({
  type : "POST",
  url : "/my_url/",
  data : my_data,
  contentType : "application/json; charset=utf-8",
  dataType : "json",
});

However, this is not working...
Is there something that needs to be changed in the getAjaxArg function
[2] for this to work???

Hope this makes some sense :-)

[0]
https://github.com/shannoncruey/webpy-jquery-sampleapp/blob/master/static/script/ajaxdropdowns.js#L14
[1]
http://api.jquery.com/jQuery.ajax/
[2]
https://github.com/shannoncruey/webpy-jquery-sampleapp/blob/master/main.py#L77

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to