Re: Javascript help

2006-12-21 Thread Charlie Griefer
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

RE: Javascript help

2006-12-21 Thread loathe
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:

RE: Javascript help

2006-12-21 Thread loathe
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

Re: Javascript help

2006-12-21 Thread Doug Brown
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

RE: Javascript help

2006-12-21 Thread Bobby Hartsfield
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

Javascript help

2006-12-21 Thread Doug Brown
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

RE: SOT: JavaScript question.

2006-12-20 Thread Joshua Cyr
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

RE: SOT: JavaScript question.

2006-12-20 Thread Ian Skinner
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

Re: SOT: JavaScript question.

2006-12-20 Thread Ryan Stille
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

Re: SOT: JavaScript question.

2006-12-20 Thread Qasim Rasheed
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

RE: JavaScript question.

2006-12-20 Thread Andy Matthews
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

SOT: JavaScript question.

2006-12-20 Thread Ian Skinner
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

RE: OT: javascript to prevent a normal link from working

2006-12-19 Thread Joshua Cyr
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

RE: OT: javascript to prevent a normal link from working

2006-12-19 Thread Joshua Cyr
, 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

Re: OT: javascript to prevent a normal link from working

2006-12-19 Thread Charlie Griefer
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

OT: javascript to prevent a normal link from working

2006-12-19 Thread Joshua Cyr
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

Re: javascript confirm

2006-11-22 Thread Tom Chiverton
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 **

Re: javascript confirm

2006-11-22 Thread Dan Vega
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

Re: javascript confirm

2006-11-22 Thread Tom Chiverton
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

Re: Mixing CF and JavaScript.

2006-11-14 Thread Richard Dillman
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

Re: Mixing CF and JavaScript.

2006-11-14 Thread Jon Clausen
> >> 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 >>

Re: Mixing CF and JavaScript.

2006-11-14 Thread Dan Vega
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

Re: Mixing CF and JavaScript.

2006-11-14 Thread Charlie Griefer
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 >

Re: Mixing CF and JavaScript.

2006-11-14 Thread Dan Plesse
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

RE: Mixing CF and JavaScript.

2006-11-14 Thread Munson, Jacob
> 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

RE: Mixing CF and JavaScript.

2006-11-14 Thread Ian Skinner
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

Re: Mixing CF and JavaScript.

2006-11-14 Thread Charlie Griefer
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,

RE: Mixing CF and JavaScript.

2006-11-14 Thread Ray Champagne
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

RE: Mixing CF and JavaScript.

2006-11-14 Thread Ian Skinner
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

Re: Mixing CF and JavaScript.

2006-11-14 Thread Rick Root
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 ~

Re: Mixing CF and JavaScript.

2006-11-14 Thread Charlie Griefer
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 >

RE: Mixing CF and JavaScript.

2006-11-14 Thread Munson, Jacob
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

Re: Mixing CF and JavaScript.

2006-11-14 Thread Charlie Griefer
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

RE: Mixing CF and JavaScript.

2006-11-14 Thread Ray Champagne
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&

Re: Mixing CF and JavaScript.

2006-11-14 Thread Teddy Payne
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

Re: Mixing CF and JavaScript.

2006-11-14 Thread Charlie Griefer
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

RE: Mixing CF and JavaScript.

2006-11-14 Thread Munson, Jacob
> 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/ ---

RE: Mixing CF and JavaScript.

2006-11-14 Thread Ian Skinner
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

Re: Mixing CF and JavaScript.

2006-11-14 Thread Rob Wilkerson
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

Re: Mixing CF and JavaScript.

2006-11-14 Thread Jake Churchill
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

Mixing CF and JavaScript.

2006-11-14 Thread Jason T. Slack
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

2006-10-23 Thread Dan Plesse
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

cf_pdf HTML/javascript

2006-10-20 Thread Juman Lop
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

cf_pdf HTML/javascript

2006-10-20 Thread Juman Lop
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

Re: CF - Javascript Monitor Resolution help

2006-10-09 Thread T Burke
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

Re: CF - Javascript Monitor Resolution help

2006-10-08 Thread Jon Clausen
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

RE: CF - Javascript Monitor Resolution help

2006-10-08 Thread Bobby Hartsfield
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

RE: CF - Javascript Monitor Resolution help

2006-10-08 Thread Andrew Scott
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

Re: CF - Javascript Monitor Resolution help

2006-10-08 Thread T Burke
> >-- >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

RE: CF - Javascript Monitor Resolution help

2006-10-08 Thread Jim Davis
> -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

RE: CF - Javascript Monitor Resolution help

2006-10-08 Thread Snake
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

CF - Javascript Monitor Resolution help

2006-10-08 Thread T Burke
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

Re: OT: Debugging JavaScript

2006-09-28 Thread Claude Schneegans
>>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

Re: OT: Debugging JavaScript

2006-09-28 Thread tanguyr
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. ~~~

Re: OT: Debugging JavaScript

2006-09-28 Thread Claude Schneegans
>>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

Re: OT: Debugging JavaScript

2006-09-28 Thread tanguyr
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

Re: OT: Debugging JavaScript

2006-09-28 Thread Peter Boughton
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

Re: OT: Debugging JavaScript

2006-09-28 Thread James Holmes
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

Re: OT: Debugging JavaScript

2006-09-27 Thread Mary Jo Sminkey
>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

OT: Debugging JavaScript

2006-09-27 Thread Justin Holzer
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

Re: Use of Javascript

2006-09-27 Thread Casey Dougall
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

RE: Use of Javascript

2006-09-27 Thread Brad Wood
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

Re: Use of Javascript

2006-09-27 Thread Casey Dougall
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

Re: Use of Javascript

2006-09-27 Thread Richard White
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

Re: Use of Javascript

2006-09-27 Thread Claude Schneegans
>> 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

Re: Use of Javascript

2006-09-27 Thread Claude Schneegans
>>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

RE: Use of Javascript

2006-09-27 Thread Michael E. Carluen
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

RE: Use of Javascript

2006-09-27 Thread Michael E. Carluen
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

Re: Use of Javascript

2006-09-27 Thread Richard White
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

Re: Use of Javascript

2006-09-27 Thread Trey Rouse
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

Re: Use of Javascript

2006-09-27 Thread Richard White
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

Re: Use of Javascript

2006-09-27 Thread Claude Schneegans
>>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

RE: Use of Javascript

2006-09-27 Thread Steve Brownlee
>> 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

RE: Use of Javascript

2006-09-27 Thread Bobby Hartsfield
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 don’t 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

Use of Javascript

2006-09-27 Thread Richard White
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

Re: cfset dependent on javascript problem

2006-09-25 Thread Jake Churchill
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! > > > >>

Re: cfset dependent on javascript problem

2006-09-25 Thread Jonathan Hicks
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

Re: cfset dependent on javascript problem

2006-09-25 Thread Jake Churchill
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

Re: cfset dependent on javascript problem

2006-09-25 Thread Teddy Payne
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

RE: Javascript vs. cfscript

2006-09-25 Thread Dan G. Switzer, II
>> 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

Re: Javascript vs. cfscript

2006-09-25 Thread Richard White
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

Re: cfset dependent on javascript problem

2006-09-25 Thread Jonathan Hicks
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

Re: cfset dependent on javascript problem

2006-09-25 Thread Jake Churchill
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 >

RE: Javascript vs. cfscript

2006-09-25 Thread Sandra Clark
#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

Re: Javascript vs. cfscript

2006-09-25 Thread Jon Clausen
> 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

cfset dependent on javascript problem

2006-09-25 Thread Jonathan Hicks
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

Re: Javascript vs. cfscript

2006-09-25 Thread Richard White
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

RE: Javascript vs. cfscript

2006-09-22 Thread Eric Roberts
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

Re: Javascript vs. cfscript

2006-09-22 Thread Scott Stroz
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

RE: Javascript vs. cfscript

2006-09-22 Thread Eric Roberts
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

RE: Javascript vs. cfscript

2006-09-22 Thread Eric Roberts
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

RE: Javascript vs. cfscript

2006-09-21 Thread Bobby Hartsfield
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:

Re: Javascript vs. cfscript

2006-09-21 Thread Richard White
>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#"; >

Re: Javascript vs. cfscript

2006-09-21 Thread Charlie Griefer
;/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

Re: Javascript vs. cfscript

2006-09-21 Thread Richard White
> 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

Re: Javascript vs. cfscript

2006-09-21 Thread Richard White
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

Re: Javascript vs. cfscript

2006-09-21 Thread Charlie Griefer
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"

RE: Javascript vs. cfscript

2006-09-21 Thread Matt Quackenbush
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:

RE: Javascript vs. cfscript

2006-09-21 Thread Matt Quackenbush
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

Re: Javascript vs. cfscript

2006-09-21 Thread Richard White
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

<    4   5   6   7   8   9   10   11   12   13   >