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
In reply to Javascript with CGI::FormBuilder and Template Toolkit by set_uk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |