Return to Snippet

Revision: 18744
at October 7, 2009 09:02 by almazom


Initial Code
Jquery:

var json_obj = {
  "variable":anystring
}

$.ajax({
  type: "GET",
  url: 'ajax/action',
  data: json_obj,
  success: function(msg){
    alert(msg)
  }
})


result = params[:variable]

Initial URL
http://almazom.livejournal.com/

Initial Description

                                

Initial Title
ajax json params 4 rails

Initial Tags

                                

Initial Language
Rails