javascript [Resolved]
Posted: Fri Jun 08, 2007 5:40 pm
Ok.. I wonder if anyone can shed some light on this.
I have the following code i need to use
document.write('');
document.write('email enquiry');
I understood that if i want to include this directly in the content i should wrap it in {literal} {/literal} - which i did.. but it just displayed the javascript code as content..
I then did the same with global content and user generated tags.. it did the same..
Finally I made it call the code from a .js file i created and all it did was display the code telling it to read the .js file.
Any idea's ?
I have the following code i need to use
document.write('');
document.write('email enquiry');
I understood that if i want to include this directly in the content i should wrap it in {literal} {/literal} - which i did.. but it just displayed the javascript code as content..
I then did the same with global content and user generated tags.. it did the same..
Finally I made it call the code from a .js file i created and all it did was display the code telling it to read the .js file.
Any idea's ?