Page 1 of 1
External Javascript!
Posted: Mon Mar 13, 2006 3:25 am
by tedx
Hello Guys,
I try to added Javascript to the page.. but didn't work..
below is the Javascript try I was try to added in the page or template.
Please, can someone help me..
Thanks.
Re: External Javascript!
Posted: Mon Mar 13, 2006 6:06 am
by cyberman
The forum search is your friend

- please try this
Code: Select all
{literal}<__script__ language=JavaScript src=http://act.udn.com/ACT/U2U/u2uh.jsp?cid=503></__script>{/literal}
Re: External Javascript!
Posted: Mon Mar 13, 2006 8:37 am
by tedx
I tried
{literal}{/literal}
don't work for me........
Re: External Javascript!
Posted: Mon Mar 13, 2006 11:05 am
by Ted
Try: (notice the quotes and proper type)
Re: External Javascript!
Posted: Mon Mar 13, 2006 5:39 pm
by tedx
I try it...
don't work....................

Re: External Javascript!
Posted: Mon Mar 13, 2006 6:48 pm
by cyberman
Have you also tried this ?
Code: Select all
{literal}<__script__ type="text/javascript" src="http://act.udn.com/ACT/U2U/u2uh.jsp?cid=503"></__script>{/literal}
Re: External Javascript!
Posted: Mon Mar 13, 2006 11:06 pm
by Ted
The only reason you should need the {literal} tags is because the text has a { or } in it. Since it's just a script tag, it shouldn't be necessary. Doesn't mean much, though.
Does this thing work in a regular html page without CMSMS? Something tells me it's not related.
Re: External Javascript!
Posted: Tue Mar 14, 2006 12:11 am
by Dr.CSS
Hey tedx
One thing is I'm not sure you can call a script from another site, but if it is uploaded to your server thru file manager you should be able to call it like so,
{stylesheet}
in your template
sorta like regular hand coding, notice the single ./ before the / if you put too many, hand code uses more than 1, it won't work.
Greg told me about the IE one.

HTH
mark
Re: External Javascript!
Posted: Tue Mar 14, 2006 3:30 am
by tedx
I have try the script in HTML, other portals or CMS...It work..
But I can't get script to work with CMSMS...
