but page gives javascript synax error. Isn't it true to referance a
"js container" in page
On May 25, 5:36 pm, "halil oyri" <hoyr...@gmail.com> wrote:
> thanks so much ,
> changing it like
> <script language="javascript" src="<%main_js%>&Script=1"></script>
> solved my problem
>
> Cheers,
>
> 2007/5/24, Gavin Cope <gavin.c...@gmail.com>:
>
>
>
> > Change it to read:
> > <script language="javascript" src="<%main_js%>&Script=1"></script>
> > and see how you go.
> > Also, make sure you are selecting insert path and file name only on the
> > list placeholder. And also make sure you've wrapped the entire block in list
> > block marks.
>
> > Cheers,
>
> > Gavin
>
Why append the "Script=1" parameter to the URL?
Richard.
On May 25, 6:33 am, "Gavin Cope" <gavin.c...@gmail.com> wrote:
> Change it to read:
> <script language="javascript" src="<%main_js%>&Script=1"></script>
> and see how you go.
> Also, make sure you are selecting insert path and file name only on the list
> placeholder. And also make sure you've wrapped the entire block in list
> block marks.
>
> Cheers,
>
> Gavin
>
> On 25/05/07, halil <hoyr...@gmail.com> wrote:
>
>
>
>
>
> > i create my main.js as a template then i referance it as a list item
> > and use in my page like this
> > <script language="javascript" src="<%main_js%>"></script>
>
> > but page gives javascript synax error. Isn't it true to referance a
> > "js container" in page- Hide quoted text -
>
> - Show quoted text -
On May 28, 9:37 am, "Richard Hauer (5 Limes)"
Then just make sure that you Create and Connect the JS template to a
container and not an anchor or list.
The result is that you will get a temporary file.JS and not ioRD.asp?
A=very&very=long&query=string
This also allows for viewing CSS in FF and other browsers that rely on
the extension and not the mime type which IE uses......as ioRD.asp
does not render CSS in FF.......
The problem with firefox not correctly interpreting the css (and other
file types) hase to do with the mime type not being correctly set
under normal circumstances within RedDot CMS.
With respect to your javascripts not working, there are several steps
you can take in an attempt to resolve the issue.
As a couple of others have said, the first thing to try is add:
<!IoRangeRedDotModet>&Script=1<!/IoRangeRedDotMode>
A couple of important things to remember here.
1. place the above block WITHIN the quotation marks so the line reads
<script language="javascript" src="<%anc_Javascript <!
IoRangeRedDotModet>&Script=1<!/IoRangeRedDotMode>"></script>
This should include the content class and basically include the
javascript as normal within a standard html page.
2. You can use a container in place of an anchor and embed the code
from another content class
3. If you are just passing the file through with no modifications,
instead of an anchor element, use a media element and import the file
into the asset manager. No additional code should be required to make
this work
4. Use a container and check the "Insert placeholder for page in
container" in the template properties dialog. Note that YOU MUST enter
the correct file extension in the "Standard extension of published
files" and have no other boxes checked in this dialog.
This basically allows CMS to output the file with the correct file
extension and mime type when working in CMS and has little effect on
publication (as near as I can tell, I have never actually tested this
though)
This will allow firefox to correctly interpret stylesheets and allows
you to edit XML files (within SmartEdit) that are being used by Flash.
If none of those options work, I have, depending on the js files
needed, simple written two lines within the html and set one to be
used in CMS and the other to be published. The code should look
something like this:
<!IoRangeRedDotMode><script language="javascript"
src="javascriptfile.js"</script><!IoRangeRedDotMode>
<!IoRangeNoRedDotMode><script language="javascript" src="<
%anc_Javascript%>"</script><!IoRangeNoRedDotMode>
You'll need to put the original js file in the asp directory of CMS,
but this is a last resort but should work without problem
I hope this information is helpful.
Andrew Salik, Project Manager
RedDot Solution, NA
2.
On May 30, 3:20 am, "halil oyri" <hoyr...@gmail.com> wrote:
> !!!!
> i use Version 7.1 Build 7.1.1.40
>
> i count have edit properties on right menu. what is my mistake???
>
> -->There is also the special setting in Administer Content Classes --->
> Templates ---> {template e.g. HTML} ---> Edit Properties ---> Check
> the checkbox that states "Insert Placeholder for page in container".
> Do this for the Content Class that contains the JS.
>
> 2007/5/30, Gavin Cope <gavin.c...@gmail.com>:
>
>
>
>
>
> > Ah cool, I've often lamented about the css not working in Firefox. Thanks
> > for that tip :)
>
> > > > > > > - Show quoted text -- Hide quoted text -
Do you have a solution to the MIME type and CSS problem?
Thanks-
Bill
On May 31, 3:28 pm, Bill Dennen <dennen_b...@wheatoncollege.edu>
wrote: