views:

21

answers:

0

hello, I try to use php-form-builder-class with jquery.layout. But unfortuneatly the form-builder adds jquery second time even when I put attribute prevent:preventJQueryLoad

include("libs/php-form-builder-class/class.form.php");
$form = new form("HelloWorld");
$form->setAttributes(array(
    "width" => 400,
    "includesPath" => "libs/php-form-builder-class/includes",
    "preventJQueryLoad" => 1
));

$form->addTextbox("My Textbox:", "MyTextbox", "Hello World");
$form->addButton();
$form->render();

What is the correct way of including php-form-builder in to existing page? thanks Arman.

EDIT

Some brute-force solution is found: Simply the preventJQueryLoad does not work, simply comment the lines 1690-1698 in class-form.php then it works like a charm.:)