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

Hello! Love the MB plug-ins, great stuff.

My problem/question is with passing data to panels in MB.Extuder.

Although I know my server supports POST, I changed the posts to gets in your code already for my own reasons.

I have: var selectedPropertyId = 0, a javascript global variable, by default set to 0

I invoke the panel here:

<div id="extruderBottom" class="{title:'Property Info'}">
  <div class="voice {panel:'panels/propertyimages.panel.php', data:{id: selectedPropertyId}}"><span class="label">Property Images</span></div>
</div>

And I have "panels/propertyimages.panel.php":

<div id="propertyimages" style="background-color:#FFF"><? var_dump($_GET); ?></div>

I should get something like: array(1) { ["id"]=> string(1) "0" } but I just get array(0) { }

So how do I pass data to my panels? Thanks in advance.

E: Tested in FF 3.6.12 and Chrome 7.0.517.44

asked Nov 13 '10 at 15:06

John%20Snook's gravatar image

John Snook
11

edited Nov 13 '10 at 15:15

bumpity: bump

(Nov 17 '10 at 10:08) John Snook

Try this way:

<div id="extruderBottom" class="{title:'Property Info'}">
  <div class="voice {panel:'panels/propertyimages.panel.php', data:'id=selectedPropertyId'}"><span class="label">Property Images</span></div>
</div>

Bye, Matteo

answered Nov 19 '10 at 16:20

Matteo%20Bicocchi's gravatar image

Matteo Bicocchi ♦♦
1776129

Your answer
toggle preview

jQuery main site - Matteo Bicocchi