call {FormBuilder} inside a javascript code
Posted: Wed Jun 01, 2011 6:16 pm
Hi,
i try to call a form from the FormBuilder mod. inside a javascript code like this just after the body tag :
The write function doesn't go to the ending "div" apparently because a </__script> is generated by the form, but i don't know where this javascript tag is written (i looked in the template of my form but nothing...).
Any idea? Thx.
i try to call a form from the FormBuilder mod. inside a javascript code like this just after the body tag :
Code: Select all
{literal}
<__script__ type="text/javascript">
if((navigator.userAgent.match(/iPhone/i))||(navigator.userAgent.match(/iPod/i))||(navigator.userAgent.match(/iPad/i))) {
alert ("ipad/iphone");
} else {
document.write('<div id="form_contact" class="standard"><img src="images/design/btn_contact.png" id="btn_contact" />{/literal}{FormBuilder form='contact'}{literal}</div>');
}
</__script>
{/literal}
Any idea? Thx.