set_uk has asked for the wisdom of the Perl Monks concerning the following question:
Although the CGI::Formbuilder doc states :-
When I attempt to pass in the anchor definition including some java script ala:-[htmlattr] => $value, [htmlattr] => $value In addition to the above tags, the field() function can take any other + valid HTML attribute
I end up with the following output :-my $lot =<<EOF; href="javascript:void(0)" onclick="gfPop.fPopCalendar(document.demofor +m.dc);return false;" HIDEFOCUS><img name="popcal" align="absmiddle" s +rc="calbtn.gif" width="34" height="22" border="0" alt=""> EOF $form->field(name => 'go_live_date', a => $lot);
I have a feeling that i'm not quoting the string correctly - or passing it in incorrectly. Either way I'd appreciate some advice on what is the correct way to pass in random html markup of this nature from CGI::Formbuilder into Template Toolkit.<td width="100"><input a="href="javascript:void(0)" onclick +="gfPop.fPopCalendar(document.demoform.dc);return false;" H +IDEFOCUS><img name="popcal" align="absmiddle&quo +t; src="calbtn.gif" width="34" height="22&qu +ot; border="0" alt=""> " class="FormField" cols="20" name="go_live_date" type="text" /></td>
Thanks Simon
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Javascript with CGI::FormBuilder and Template Toolkit
by Aristotle (Chancellor) on Nov 11, 2003 at 02:08 UTC | |
by set_uk (Pilgrim) on Nov 11, 2003 at 13:18 UTC | |
by jeffa (Bishop) on Nov 11, 2003 at 14:57 UTC | |
by set_uk (Pilgrim) on Nov 11, 2003 at 15:13 UTC | |
|
Re: Javascript with CGI::FormBuilder and Template Toolkit
by jeffa (Bishop) on Nov 11, 2003 at 14:45 UTC | |
|
Re: Javascript with CGI::FormBuilder and Template Toolkit
by Roger (Parson) on Nov 11, 2003 at 01:53 UTC |