QCubed - A PHP5 rapid development MVC framework.
Home  |  Updates

qcubed 2.0.2

Create a control with expandable subcontrol

Hello all,

I am trying to develop a small app for a shop which lists down products. It is needed to list down each product in its own box (visible). This box is to show the basic specifications of a product but must contain another box with detailed specs, availability, price, offers, etc.

If would look like this when not expanded:

----------------------------------
| SOME BASIC INFO |
| |
| [Details button] |
----------------------------------

and when expanded:

----------------------------------
| SOME BASIC INFO |
| |
| [Hide Details button] |
+---------------------------------+
| |
| SOME DETAILED INFO (QTabs) |
| |
| |
----------------------------------

So I created a custom control for the box with a div to show the upper part and the lower part was a QTabs.

Now, it is needed that when the [Details] button is clicked, an Ajax call is made to server, and the QTabs be generated and presented on client screen. And here is the list of problems I am facing:

1. Ajax calls are not working (blank window popup after a "AJAX parse error" dialog box popup).
2. I tried to use ToggleDisplay but it does not seem to work when the QTabs is initially hidden!

3. I tried to create a subcontrol but no use. The problem persists.

Kindly suggest what can be done here? I do not think a QPanel can be used there either because that, too is failing!

Regards.

Release of v2.0.2

Hi everyone!

I looked around the forum and found an answer (when will be QTabs available - in v2.0.2), but I'm also interested will be the QTabPanel plugin rewritten for v2. When will be qCubed v2.0.2 released?

Thank You for answering.