27;ll need a function and you'll need to write a javascript
> browser diction script and have separate clauses in the function for each
> browser.
>
> Mainly you'll use document.all and document.getElementById()
>
> > -Original Message-
> > From: Doug
No it won't.
For that you'll need a function and you'll need to write a javascript
browser diction script and have separate clauses in the function for each
browser.
Mainly you'll use document.all and document.getElementById()
> -Original Message-
> From:
tags, and singles in JS, it's a bit more difficult
when you're creating dynamic SQL as you have to use the single quote.
Anyway, hope it helps.
> -Original Message-
> From: Doug Brown [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 21, 2006 3:34 PM
> To: CF-Talk
&g
This seems to work, but will it work in all browser?
onFocus="document.updClassified.asking1.value =
'',document.updClassified.asking2.value = ''"
Doug B.
~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfu
age-
From: Doug Brown [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 21, 2006 3:34 PM
To: CF-Talk
Subject: Javascript help
I have a form with 2 text fields and some radio button, and what I would
like to do is clear any text in the text fields if any of the radio buttons
are selected. I can do
I have a form with 2 text fields and some radio button, and what I would like
to do is clear any text in the text fields if any of the radio buttons are
selected. I can do this with one text field, but not sure how to work it with
two
This will work with one text field...
value="#ClassAdDetai
Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 20, 2006 3:47 PM
To: CF-Talk
Subject: RE: SOT: JavaScript question.
I don't know how getElementsByTag() differs from getElementsByTagName, but
you can call the later on a node.
nodes = getElemen
I don't know how getElementsByTag() differs from getElementsByTagName,
but you can call the later on a node.
nodes = getElementById('yourdiv').getElementsByTagName('p');
Thanks, I thought I tried something like this, but I will give it another go.
getElementsByTag() differs from getElementsByTa
Ian Skinner wrote:
> Is there any way to restrict a getElementByTag() function to a subsection of
> the DOM?
>
> I.E. Only return div tags that are children of the "contacts" fiedset node?
>
> I've tried a couple of nebulous attempts at this with no success.
>
I don't know how getElementsByTag
Prototype (JS) library has a built in function named $$() for this purpose.
You can also use this implementation
http://simon.incutio.com/archive/2003/03/25/getElementsBySelector
HTH
On 12/20/06, Ian Skinner <[EMAIL PROTECTED]> wrote:
>
> Is there any way to restrict a getElementByTag() functio
Using jQuery this would be a snap:
$('fieldsent#contacts div');
Assuming that the fieldset tag had an ID of contacts.
-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 20, 2006 2:33 PM
To: CF-Talk
Subject: SOT: JavaScript question.
Is
Is there any way to restrict a getElementByTag() function to a subsection of
the DOM?
I.E. Only return div tags that are children of the "contacts" fiedset node?
I've tried a couple of nebulous attempts at this with no success.
--
Ian Skinner
Web Programmer
BloodSource
www.BloodSou
PROTECTED]
Sent: Tuesday, December 19, 2006 2:00 PM
To: CF-Talk
Subject: RE: OT: javascript to prevent a normal link from working
Ah, but these are links I have no control over from other pages. The trick
is that they are just normal pages that are pulled in to the tab.
Joshua Cyr
Savv
, December 19, 2006 1:48 PM
To: CF-Talk
Subject: Re: OT: javascript to prevent a normal link from working
return false in your tag.
foo
On 12/19/06, Joshua Cyr <[EMAIL PROTECTED]> wrote:
> I am playing with YUI and spry and have a fun task of having content
> from other pages load into a t
return false in your tag.
foo
On 12/19/06, Joshua Cyr <[EMAIL PROTECTED]> wrote:
> I am playing with YUI and spry and have a fun task of having content from
> other pages load into a tab system in spry. All is working well so far.
> Next I have event listener code to check for the click of any
I am playing with YUI and spry and have a fun task of having content from
other pages load into a tab system in spry. All is working well so far.
Next I have event listener code to check for the click of any link in that
tab content area (which is a separate file). Those links are just normal
lin
On Wednesday 22 November 2006 14:51, Dan Vega wrote:
> Yes indeed, I had a very long day yesterday and I was losing my mind. Sorry
> for the dumb question!!
Heh, we've all done it, no worries :-)
--
Tom Chiverton
Helping to administratively monetize eligible web-readiness
**
Yes indeed, I had a very long day yesterday and I was losing my mind. Sorry
for the dumb question!!
On 11/22/06, Tom Chiverton <[EMAIL PROTECTED]> wrote:
>
> On Tuesday 21 November 2006 20:55, Charlie Griefer wrote:
> > CF is server side. JS is client side.
>
> It never ceases to make me scratch
On Tuesday 21 November 2006 20:55, Charlie Griefer wrote:
> CF is server side. JS is client side.
It never ceases to make me scratch my head that people can start using the one
or the other without coming across this fundamental difference.
--
Tom Chiverton
Helping to augmentatively expedite
t; On 11/14/06, Dan Plesse <[EMAIL PROTECTED]> wrote:
> > I reviewed every one's response so far and I did like a single one. I
> would
> > use a bakery analogy. For example CF is like a cake it gets baked first
> then
> > the sweet buttery javascript icing goes las
>
>> On 11/14/06, Dan Plesse <[EMAIL PROTECTED]> wrote:
>>> I reviewed every one's response so far and I did like a single
>>> one. I
>> would
>>> use a bakery analogy. For example CF is like a cake it gets baked
>>> first
>>
rote:
> > I reviewed every one's response so far and I did like a single one. I
> would
> > use a bakery analogy. For example CF is like a cake it gets baked first
> then
> > the sweet buttery javascript icing goes last. The two don't mix well. To
> cut
> &g
mple CF is like a cake it gets baked first then
> the sweet buttery javascript icing goes last. The two don't mix well. To cut
> the layers you need a fork called AJAX bla bla bla. What you need to do is
> change things around and make Javascript into a cake too and CF the cake
>
I reviewed every one's response so far and I did like a single one. I would
use a bakery analogy. For example CF is like a cake it gets baked first then
the sweet buttery javascript icing goes last. The two don't mix well. To cut
the layers you need a fork called AJAX bla bla bla. Wha
> You can do exactly what he wants by loading the data into a JS array.
> Then his function would simply look in the array rather than trying to
> do a query.
>
> the cfquery in his function is querying for a specific record based on
> a value passed to the function.
>
> if he does a query withou
BTW, just to clarify...I wasn't trying to debate over which was "easier" (the
JS array vs AJAX), since "easy" is a relative term. My point was that it's
possible to do without AJAX.
And my "easy" was referring to the creation of the JS array, again not JS array
VS AJAX. But I concur that jump
On 11/14/06, Ian Skinner <[EMAIL PROTECTED]> wrote:
> if he does a query without the WHERE and loops over that query, he can create
> a JS array easily.
>
> Even easier if he uses the tag, which will take
> a CF variable, simple or complex, and turn it into a corresponding JS
> variable.
Yes,
bit daunting if you're still learning the "little things" that make
CF, well, CF.
> -Original Message-
> From: Munson, Jacob [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 14, 2006 1:58 PM
> To: CF-Talk
> Subject: RE: Mixing CF and JavaScript.
> Importan
if he does a query without the WHERE and loops over that query, he can create a
JS array easily.
Even easier if he uses the tag, which will take a
CF variable, simple or complex, and turn it into a corresponding JS variable.
--
Ian Skinner
Web Programmer
BloodSource
www.BloodSou
Jake Churchill wrote:
> Look into CFAjax.
Don't look into CFAJAX unless you like outdated code with known security
vulnerabilities that isn't being updated/maintained anymore.
ajaxCFC or mxajax or any variety of others, but absolutely not cfajax.
Rick
~
loops over that query, he can
create a JS array easily.
On 11/14/06, Munson, Jacob <[EMAIL PROTECTED]> wrote:
> Charlie and Ray,
>
> You can't do what he wants without something like Ajax. He is passing
> the UPC to a query and then doing something with the results in
>
Charlie and Ray,
You can't do what he wants without something like Ajax. He is passing
the UPC to a query and then doing something with the results in
JavaScript. Yes, you can create JS vars with CF, but if you want to hit
your DB like he's attempting, you'd use ajax or flash r
on that.
>
> > -Original Message-
> > From: Munson, Jacob [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, November 14, 2006 1:17 PM
> > To: CF-Talk
> > Subject: RE: Mixing CF and JavaScript.
> >
> > > You need to use AJAX.
> >
> > I
o the lookup on that.
> -Original Message-
> From: Munson, Jacob [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 14, 2006 1:17 PM
> To: CF-Talk
> Subject: RE: Mixing CF and JavaScript.
>
> > You need to use AJAX.
>
> I agree, but I wouldn't recommend CFAjax. It&
Jason,
ColdFusion cannot be directly invoked from JavaScript without a interface to
call a service.
ColdFusion is processed and then the end result is passed through the web
server to your browser. At that point essentially, the page is static.
If you want interactivity, you have to call
our
onclick would use that array.
On 11/14/06, Jason T. Slack <[EMAIL PROTECTED]> wrote:
> I am on Day 5 with CF and Coming along nicely.
>
> I have a question on mixing CF and Javascript.
>
> Say I have the following with an onBlur event:
>
> onblur="lookUpUPC
> You need to use AJAX.
I agree, but I wouldn't recommend CFAjax. It's outdated, and the guy
that wrote it has moved on to MXAjax:
http://www.indiankey.com/mxajax/
Personally I prefer ajaxCFC:
http://ajaxcfc.riaforge.org/
---
So I must be doing something wrong but I am not sure what.
Can anybody shed some light?
-Jason
ColdFusion runs on the server and Javascript runs on the client and the two
don't mix.
Ok, they can be made to look like they mix with Ajax and other techniques, but
this isn't begi
On 11/14/06, Jason T. Slack <[EMAIL PROTECTED]> wrote:
> I am on Day 5 with CF and Coming along nicely.
>
> I have a question on mixing CF and Javascript.
>
> Say I have the following with an onBlur event:
>
> onblur="lookUpUPC(this.value);" />
>
&g
You need to use AJAX. Basically, inside your lookUpUPC() function you
will make a call to a CFC that does the query and hands it back to the
javascript function to pupulate fields. Look into CFAjax.
Jason T. Slack wrote:
> I am on Day 5 with CF and Coming along nicely.
>
> I have a
I am on Day 5 with CF and Coming along nicely.
I have a question on mixing CF and Javascript.
Say I have the following with an onBlur event:
Here is the JS for LookUpUPC()
function lookUpUPC(upc)
{
SELECT Description, UnitPrice FROM Inventoryitems
WHERE
I have a javascript programcalling a java program and it works in IE however
it uses the http://www.cfide.org/JS2J/JSTOJ2.html
The goal is to use the applet push events to hand them over in a
ajaxfunction i but if I can't
get it to work cross browser I don't see much point.
Does anyon
Hi,
Every one up there,
How to put javascript code or html code into cf_pdf or Cfdocument.
Thanks,
~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by
Hi,
Everyone up there,
how to put HTML or Javascript code into CF_PDF?
Thanks,
Juman
~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers
Oops, I suppose it would have helped to mention that the Flash is basically a
slide show of photographs. Again, since CFMX and databases are my specialty,
Flash is more of a dabble. If I can pass the resolution into the object tag w/o
affection the images (say... cropping on the right would be o
Just a suggestion, but since Flash is vector based and scales
exceptionally well, why don't you just use the javascript to change
the height/width in your tag, or pass it as a script var if
you're using FlashObject(http://blog.deconcept.com/flashobject/).
That would seem to be
mailto:[EMAIL PROTECTED]
Sent: Sunday, October 08, 2006 8:54 PM
To: CF-Talk
Subject: Re: CF - Javascript Monitor Resolution help
Good Snake, now. how do I get it to be an
'autodetect' and pased into a CF variable?
I was considering either making it a function
or CFC or placing in the appl
Try using a 1x1 pixle image
That is how every stats report tool does it.
But the best thing would be to define an Ajax call back to the server, and
change the info using DHTML. Either way the info needs to hit the server
first before you can do anything else.
Senior Coldfusion Developer
Aege
>
>--
>Russ
>-Original Message-
>From: T Burke [mailto:[EMAIL PROTECTED]
>Sent: 08 October 2006 21:45
>To: CF-Talk
>Subject: CF - Javascript Monitor Resolution help
>
>This may be OT and if it is, I'll gladly move it to another group.
>I need to be able
> -Original Message-
> From: T Burke [mailto:[EMAIL PROTECTED]
> Sent: Sunday, October 08, 2006 4:45 PM
> To: CF-Talk
> Subject: CF - Javascript Monitor Resolution help
>
> This may be OT and if it is, I'll gladly move it to another group.
> I need to be able
Screen.width
And
Screen.height
E.G.
Click for your screen resolution
--
Russ
-Original Message-
From: T Burke [mailto:[EMAIL PROTECTED]
Sent: 08 October 2006 21:45
To: CF-Talk
Subject: CF - Javascript Monitor Resolution help
This may be OT and if it is, I'll gladly move
This may be OT and if it is, I'll gladly move it to another group.
I need to be able to determine (via javascript) preferably the user's monitor
resolution.
I have a client who wishes to have a FLASH animation that fills the browser
banner area as much as possible so that a user
>>i basically develop in firefox first, using firebug and the
console.log() stuff, and then integrate with ie afterwards.
This is indeed one way to do things.
Personally I do the opposite, because I'm using an IE emulator in Mozilla.
Most of the functionalities available in IE are then compatibl
ing to test stuff that's a pain to get to.
/t
--
View this message in context:
http://www.nabble.com/OT%3A-Debugging-JavaScript-tf2348857.html#a6549124
Sent from the Cold Fusion - Technical mailing list archive at Nabble.com.
~~~
>>and for IE, try te Microsoft Script Debugger
In about 10 years of development using IE, I've never been able to get
this piece of *&?%!
working, either under W98 or XP. I gave up.
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/cus
James Holmes-3 wrote:
>
> The Firebug extension for Firefox is the shizzle, escpecially for AJAX.
>
and for IE, try te Microsoft Script Debugger (consult a quality search
engine).
Also, the Javascript Shell (cross-platform IE/FF capable), whilst not really
a debugger, is very u
I discovered DP_Debug a few days ago, and I've found it useful for dumping
objects (ie: the results of a JS http request to a web service)
http://www.depressedpress.com/Content/Development/JavaScript/Extensions/DP_Debug/Index.cfm
>One of my worst nightmares is having to debug JavaScr
The Firebug extension for Firefox is the shizzle, escpecially for AJAX.
On 9/28/06, Justin Holzer <[EMAIL PROTECTED]> wrote:
> One of my worst nightmares is having to debug JavaScript. The JavaScript
> console in Firefox is certainly better than anything I've seen in IE, but
>What recommendations do people have for methods and tools for debugging
>JavaScript in IE, Firefox, or any other browsers? I'm tired of reading
>useless error messages that many times aren't even related to the actual
>error. Any help would be greatly appreciated.
Are
One of my worst nightmares is having to debug JavaScript. The JavaScript
console in Firefox is certainly better than anything I've seen in IE, but
many times, it still isn't enough. I seem to recall trying the Venkman
debugger a year or two ago, but I had a hard time figuring out how t
On 9/27/06, Brad Wood <[EMAIL PROTECTED]> wrote:
> If a Google bot indexed your page, it wouldn't show up as having
> JavaScript enabled, would it? What's the chance that most of that 8.8%
> is bot traffic?
No bot, Just user traffic accross all of their websites.
He
If a Google bot indexed your page, it wouldn't show up as having
JavaScript enabled, would it? What's the chance that most of that 8.8%
is bot traffic?
~Brad
-Original Message-
From: Casey Dougall [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 27, 2006 5:31 PM
To: CF-Ta
On 9/27/06, Richard White <[EMAIL PROTECTED]> wrote:
> I have heard somewhere that 10%-15% of people do not have javascript enabled
> on their browsers.
>
Well, for those who know I like to quote the omniture.com internet average...
Internet Avg %
1. Enabl
thanks micheal ill look into this
~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthori
>> im sure that most of the computers they use on-campus will have it
turned on anyway
That's for sure, sites where you can download MP3s generally require
Javascript ;-)
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude
>>I have heard somewhere that 10%-15% of people do not have javascript
enabled on their browsers.
Personally, I simply do not login users in the admin modules if they
have Javascript
disabled or an active anti-pop up.
Sorry, but Javascript and pop-up are tools we developers just need.
F
ll. I often
remind that redundancies in validation (ie JS and server-side CF) is what it
is, redundant.
> -Original Message-
> From: Trey Rouse [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 27, 2006 2:13 PM
> To: CF-Talk
> Subject: Re: Use of Javascript
>
&g
Richard, sometime back I inquired about a related topic. Steve Bryant's
reply
http://www.houseoffusion.com/groups/CF-Talk/thread.cfm/threadid:47225#249637
included a helpful link on Unobtrusive Javascript. Theres definitely an
ever increasing trend of mainstream sites like Yahoo and Goog
thanks trey for your reply. just out of interest do you know where i can find a
copy of the regulations and guidelines, i would like to see how i can program
in JS without breaking them if i could
thanks
~|
Introducing the Fusi
Section 508c regulations simply require that sites be accessable, it doesn't
mean javascript can not be used. However, many elements commonly found in
the nav items you made refference to often break these accessability
standards. Javascript, like many other tools can be used in such a way
software
to them free of charge so i suppose they cant moan too much about being asked
to turn the javascript on :) im sure that most of the computers they use
on-campus will have it turned on anyway but for home use we will have to place
a note telling them how this is done if they havent.
thanks
>>just out of interest, why would some people have their javascrip
disabled, is this maybe because of viruses etc...
Probably for the same reason that about 10% people are still having
their 1600 resolution monitor set to 800 pix:
Because they use the default setting and they don't even know th
>> I have heard somewhere that 10%-15% of people do not have javascript
enabled on their browsers.
I have never heard a number that high for users who have it downright
disabled. However, I would agree that there are that many users who
have Javascript blocking plugins on their browser.
&g
L navs out there and every other client demanding to have
one, it's not that big of a deal; either you have JS enabled... or you dont
see the navigation... and I'm of the opinion that if the navigation is
JavaScript, I can use JS where ever I please throughout the rest of the
application a
hi, sorry i know this is a coldfusion forum but i have seen a few
peoplediscusses javascript and the fact that it has to be enabled in the client
browsers.
I have heard somewhere that 10%-15% of people do not have javascript enabled on
their browsers.
Is it feasible within an internet
It's Monday...It's a miracle that I thought of that :)
Jonathan Hicks wrote:
> Thanks Jake and Teddy for the help! I'm just using the hidden fields on the
> form method. I should have known to do that, but it's just been a long day
> and my brain's not working right today I guess!
>
>
>
>>
Thanks Jake and Teddy for the help! I'm just using the hidden fields on the
form method. I should have known to do that, but it's just been a long day and
my brain's not working right today I guess!
>if it is a submit button, just put onClick="javascript:confirm('Are you
>sure...');" and it
if it is a submit button, just put onClick="javascript:confirm('Are you
sure...');" and it should handle it all correctly.
Jonathan Hicks wrote:
> what i'm trying to do is a check from the user. if the user clicks ok, then
> a database update is completed, or if the user clicks cancel, nothing
Javascript cannot the ColdFusion portion of your code based upon
your Javascript conditional logic. Your example will not work and jake was
trying to show you a Javascript way. If the closeboxflag is a form element,
it would be fire some sort of Javascript event to perform what you are
trying
>> the only way i can make it actually display an alert within
>> javascript is if i do the following code:
>>
>> alert("#student.name#");
>>
>> if i do the following it doesnt work:
>>
>> alert(#student.name#);
>>
>> am i do
oh i see, sorry i mis-read the post above it, i didnt see the whole alert was
surrounded by tags, thanks
~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your p
what i'm trying to do is a check from the user. if the user clicks ok, then a
database update is completed, or if the user clicks cancel, nothing should
happen. i was trying to set closeboxflag2 to true so that:
//perform database update
//do nothing
hope that makes sense, thanks for the h
me with this problem. I need to set
> the variable "closeboxflag2" to "true" only if the user hits the OK button
> from the javascript confirm box, or "false" if the user hits cancel.
>
>
> <cfoutput>
> var closeboxflag = false
>
#student_name# is a coldfusion (server) code, so it needs the coldfusion
outputs around it.
alert() is the javascript it is client side. Since you are using the two
together, you either need to wrap the variable (student_name) with
or you can wrap the entire alert with
alert("#student
> the only way i can make it actually display an alert within
> javascript is if i do the following code:
>
> alert("#student.name#");
>
> if i do the following it doesnt work:
>
> alert(#student.name#);
>
> am i doing something wrong
Not at all. You
hi, i was wondering if you could help me with this problem. I need to set the
variable "closeboxflag2" to "true" only if the user hits the OK button from the
javascript confirm box, or "false" if the user hits cancel.
<cfoutput>
var closeboxflag = f
the only way i can make it actually display an alert within javascript is if i
do the following code:
alert("#student.name#");
if i do the following it doesnt work:
alert(#student.name#);
am i doing somet
As long as it is defined before the JavaScript is called...you can reference
the structure just as you would in CF.
Eric
-Original Message-
From: Richard White [mailto:[EMAIL PROTECTED]
Sent: Thursday, 21 September 2006 13:36
To: CF-Talk
Subject: Re: Javascript vs. cfscript
i am
You can make your CF structure avcailable in JS by using the toScript()
function. This will replicate any CF variable, including complex data types
like structures and arrays into the equivalent JavaScript data types.
Granted, you still can't use the JS to interact with CF without AJAX, b
All you have to do is use the pound signs around the variable...just like in
Cf. As long as it is declared before you put it in the JavaScript...you7
are fine. However, you cannot do it the other way around as cf gets
processed before the javascript does :-(
Eric
Example...(switching ft and lt
Not sure I agree with that since cfscript and cfml essentially do the same
thing whereas javascript adds functionality to a purely formatting oriented
language (html)...
Eric
-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED]
Sent: Thursday, 21 September 2006 11:55
To
You cant actually use the CF VARIABLE in Javascript but you can use its
value (if that makes sense)
alert("#student.name#");
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.6/453 - Release Date:
>you're still overlooking the client/server issue.
>
>when you create your structure, you're doing it on the server. that
>has nothing to do with the client until you make it have somethign to
>do with the client.
>
>e.g.
>
>
>
>
>
> var studentName = "#students.name#";
>
;/cfoutput>";
alert(studentName);
On 9/21/06, Richard White <[EMAIL PROTECTED]> wrote:
> hi, thanks for your reply. I dont really understand how this works, i tried
> to use the code you supplied but it didnt do as expected. can i not create a
> variable in a cfset tag
> stop thinking in terms of javascript vs cfscript and start thinking
> in
> terms of client versus server.
>
> any ColdFusion (be it CFML or cfscript) is going to execute on the
> server. by the time the browser renders the page, any and all CF
> processing is long sin
hi, thanks for your reply. I dont really understand how this works, i tried to
use the code you supplied but it didnt do as expected. can i not create a
variable in a cfset tag and then use it in the javascript. if i cant do this
how can i get around it?
i tried playing around with the code
stop thinking in terms of javascript vs cfscript and start thinking in
terms of client versus server.
any ColdFusion (be it CFML or cfscript) is going to execute on the
server. by the time the browser renders the page, any and all CF
processing is long since done.
you can "integrate"
As a followup, you can reference CF variables inside of javascript while the
page is being built. For example...
var foo = <cfoutput>"#foo#"</cfoutput>;
if (foo == "bar2") {
// do stuff
}
Hope that helps.
-Original Message-
From:
Javascript is client-side. Cfscript is server-side. They do NOT
communicate with each other. The only way to get javascript to talk to CF
is to use AJAX.
-Original Message-
From: Richard White [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 21, 2006 1:36 PM
To: CF-Talk
Subject
i am wondering if you can intergrate the 2. Basically i have a structure in
coldfusion which holds all the information ready to be saved, however i want to
reference this in javascript. I need to reference it in a javascript function
which says that if the structure value is equal to x then
801 - 900 of 3965 matches
Mail list logo