He'd only be using a media placeholder if he was uploading the JS file  
as a media asset. As he's created it as a content class he will need  
to use an anchor

Paul


On 2 Mar 2009, at 16:01, 沈晓亮 wrote:

> it's not "anchor placeholder" for js file.
> You'd create a "media" for it.
>
> 2009/3/2 fred2028 <[email protected]>
>
> In plain HTML:
>
> <script src="file.js" type="text/javascript"></script>
>
> In RedDot, I made a template of type JS and file extension JS, then
> copied everything between <script type="text/javascript"> and </
> script> into the content class template (much like how a traditional
> JS file is made). In my foundation page that uses the JS, I made an
> anchor placeholder and put it in place of file.js in the above
> example. I made an instance of the JS content class and put the page
> in clipboard, then referenced my anchor placeholder to this file.
> However, this does not work, gives me JS errors when I SmartEdit, and
> the page renders as if no JS is present.
>
> What is the proper way to reference an external JS file without using
> media placeholders?
>
>
>
>
> -- 
> Best Regards
> William Shen
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/RedDot-CMS-Users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to