Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
passing CF value to a javascript
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
jarthel  
View profile  
 More options Nov 7, 6:07 am
From: jarthel <jart...@gmail.com>
Date: Sat, 7 Nov 2009 03:07:42 -0800 (PST)
Local: Sat, Nov 7 2009 6:07 am
Subject: passing CF value to a javascript
I have a .js file which I load using AddJavascript mach-ii function.
The problem I have found is that there is no way to control where the
script line will be added in the head section.

so how did you overcome this (still using AddJavascript function AND
having all js code in the js file)?

Thank you


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter J. Farrell  
View profile  
 More options Nov 7, 1:15 pm
From: "Peter J. Farrell" <pe...@mach-ii.com>
Date: Sat, 7 Nov 2009 18:15:44 +0000
Local: Sat, Nov 7 2009 1:15 pm
Subject: Re: [Mach-II] passing CF value to a javascript
We can't control where in the head it is appended. We use cfhtmlhead tag in the background which appends items right before the closing head tag in the order they are put in via cfhtmlhead. Sounds like you have dependent js files (like needing prototype.js and effects.js before other files). Look into asset packages - a group of assets to be appended. The helper keeps track of files already appended so if you have two asset packages that both depend on a few common assets, the helper won't append duplicates.

Also you might be using addJavascript in a view (which by defaults to appended to head) and later on using addJavascript inside your layout view which has the head section. Look into using the outputType="inline" for the addJavascript calls that are inside your head section.

.Pjf


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google