|
Re: QF hierselect: quotes and javascript?: msg#00396php.pear.general
<ignatius.reilly@xxxxxxx> wrote : > I do not know whether this is a bug or a feature. > > Say I want to create a hierselect. One of the selects is passed a value pair > ( "1" => "O'Reilly" ) > The javascript will squeak because it fails to escape the quote: > media_categ_8[1] = new Array('29', 'O'Reilly'); // produces a js error > > Of course I can not escape the string before passing the value to the select > element the quote because the "O'Reilly" string will appear as the content > node of an <option> tag: > <option value="1">O\'Reilly</option> will not do. > > Tweaking the hierselect code is simple; I wonder, however, if I did not miss > something more important. Hi Ignatius, Can you please file a bug for that one, I'll have a look at it more closely when I'll have time. Thanks, Bertrand Mansion Mamasam -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | QF hierselect: quotes and javascript?: 00396, Ignatius Reilly |
|---|---|
| Next by Date: | DataObject: upgrade from 1.2 to 1.3 problems: 00396, Jeroen Houben |
| Previous by Thread: | QF hierselect: quotes and javascript?i: 00396, Ignatius Reilly |
| Next by Thread: | DataObject: upgrade from 1.2 to 1.3 problems: 00396, Jeroen Houben |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |