Ask questions and get good answers on jQuery

Hi

I am a beginner with mb.containerPlus and I would like some pointers how to use mb.containerPlus such that I can send variables ($_GET) within the url so that the variables are processed and displayed in the page within the container?

Thanks

asked Jun 04 '10 at 10:06

Stanley%20Ngumo's gravatar image

Stanley Ngumo
111

edited Jun 04 '10 at 17:42

Matteo%20Bicocchi's gravatar image

Matteo Bicocchi ♦♦
1776129


Hi, As you can get the container content via ajax, you can of course pass parameters to the call; just add as value of the "data" into the metadata string your parameters.

For example:

<div class="containerPlus draggable resizable {buttons:'m,i,c', icon:'browser.png', skin:'white', width:'500', dock:'dock', data:'yourContentPage.ext', data:'foo=1&bar=2&...'}" style="position:fixed;top:100px;left:400px">

As you can see above you can specify the url of the page to call via ajax (data:'yourContentPage.ext') and the params to pass to the call (data:'yourContentPage.ext', data:'foo=1&bar=2&...'). Bye, Matteo

answered Jun 04 '10 at 17:41

Matteo%20Bicocchi's gravatar image

Matteo Bicocchi ♦♦
1776129

Thanks for your responses

But I am asking whether there's a way in which I can put the variables within a link, then the page loaded within the container can get the variables using $_GET and process them.

If this isnt possible please suggest any other way the above issue can be solved.

Thanks again

(Jun 07 '10 at 09:02) Stanley Ngumo

You can also use the ajax version of building containers to send data. The insert function has a data variable that accepts name=value&name=value&etc...

answered Jun 08 '10 at 10:11

Cory%20Cullers's gravatar image

Cory Cullers
6116

Look who I am talking to, hehehe, the man who wrote the script. Gee, I think he knows that already, what do you think. And yes, I talk to my self all the time just like this.

(Jun 08 '10 at 10:13) Cory Cullers
Your answer
toggle preview

jQuery main site - Matteo Bicocchi