Ask questions and get good answers on mb.jQuery.components

I noticed that you can send JSON data to mbExtruder via the 'data' variable. How do I access in the panel?

asked Feb 22 '11 at 18:22

foofoobar's gravatar image

foofoobar
11

closed Apr 06 '11 at 15:58

Matteo%20Bicocchi's gravatar image

Matteo Bicocchi ♦♦
1776129

The question has been closed for the following reason "The question is answered, right answer was accepted" by Matteo Bicocchi Apr 06 '11 at 15:58


You can send a map containing data needed to customize contents of the called fragment page as you pass those directly in the querystring.

For example as you pass data in a querystring ("http://myURL.php?data1=bar&data2=foo"), you can pass data to an ajax call as follow:

var dataToPass={data1:bar, data2:foo, ...}
$.ajax({
  url:"http://myURL.php",
  data:dataToPass,
  type:"html",
  success:function(){}
})

Than, it's part of the logic of your page how to get this parameters from the other side...

answered Mar 31 '11 at 16:02

Matteo%20Bicocchi's gravatar image

Matteo Bicocchi ♦♦
1776129

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×11
×1

Asked: Feb 22 '11 at 18:22

Seen: 363 times

Last updated: Apr 06 '11 at 15:58

jQuery main site - Matteo Bicocchi