External Javascript!

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
tedx

External Javascript!

Post 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.
cyberman

Re: External Javascript!

Post by cyberman »

The forum search is your friend  ;D - please try this

Code: Select all

{literal}<__script__ language=JavaScript src=http://act.udn.com/ACT/U2U/u2uh.jsp?cid=503></__script>{/literal}
tedx

Re: External Javascript!

Post by tedx »

I tried

{literal}{/literal}

don't work for me........
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: External Javascript!

Post by Ted »

Try: (notice the quotes and proper type)
tedx

Re: External Javascript!

Post by tedx »

I try it...
don't work.................... :-\
cyberman

Re: External Javascript!

Post 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}
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: External Javascript!

Post 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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: External Javascript!

Post 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
tedx

Re: External Javascript!

Post 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... ???
Locked

Return to “CMSMS Core”