Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.4.1

Bug #13519 Javascript Errors
Submitted: 2008-03-27 22:58 UTC
From: chrisatsmartt Assigned: thesee
Status: Closed Package: HTML_QuickForm_Livesearch (version 0.4.0)
PHP Version: 5.2.5 OS: FreeBSD 7.0
Roadmaps: (Not assigned)    
Subscription  


 [2008-03-27 22:58 UTC] chrisatsmartt (Chris St Denis)
Description: ------------ Error: syntax error Source Code: callback. = function(result) { I think the . should be removed. Typo? Also, Error: livesearch is not defined Warning: Selector expected. Ruleset ignored due to bad selector. Warning: Unexpected end of file while searching for closing } of invalid rule set. Test script: --------------- <html> <body> <?php include_once('HTML/QuickForm.php'); include_once('HTML/QuickForm/livesearch_select.php'); $form = new HTML_QuickForm('admins', 'POST'); $form->addElement('livesearch_select', 'domain', 'Add Domain:', array('domain.com', 'domain2.com')); $form->display(); ?> </body> </html> Expected result: ---------------- Should work Actual result: -------------- Doesn't

Comments

 [2008-03-28 09:53 UTC] thesee (Giuseppe Dessi)
Hello chris, Thank you for taking the time to write to us, but this is not a bug. did you read and did you try the example in the docs directory? The element you write does not contain some mandatory options as the elementId!! Please, take a look to HTML_AJAX documentation or examples too. For a list of more appropriate places to ask for help using PEAR, please visit http://pear.php.net/support/ as this bug system is not the appropriate forum for asking support questions. Thank you
 [2008-03-28 15:52 UTC] chrisatsmartt (Chris St Denis)
I did not see the documentation since I installed it through a package management system rather than downloading the tarball. The documentation tab saying "No end-user documentation is available for this package." suggested to me none had been written. The docs should also be available online on the pear site. Thanks for replying.
 [2008-03-28 18:01 UTC] thesee (Giuseppe Dessi)
You'r right, but if something goes wrong on my application first of all i'll check if some example exists. If I dont have luck finding examples.... then I'll ask to the mailing list. if nobody can answer to your doubts, then it can be a bug! Thank you for using this package :)