RE: Javascript question

2009-02-13 Thread Adrian Lynch
Could you post the HTML source for us? Or point to it on t'internet. Adrian -Original Message- From: Scott Stewart [mailto:saste...@email.unc.edu] Sent: 13 February 2009 16:28 To: cf-talk Subject: Re: Javascript question I wish I could, I've had fits trying to get jquery

Re: Javascript question

2009-02-13 Thread Scott Stewart
jquery doesn't work with this layout, that's the first place I went. Adrian Lynch wrote: I know, I hate it sometimes too when you ask a question and someone says, don't do it that way, do it this completely different way, but, jQuery! script type=text/javascript src=/scripts/jquery-1.3.1

Re: Javascript question

2009-02-13 Thread Claude Schneegans
Hi, IMHO, the simplest on most efficient way to bypass the problem would be to make sure no element has a name which could be identical to the ID of another one. For instance, always use something like ID=id_ NAME=name_

Re: Javascript question

2009-02-13 Thread Brian Swartzfager
of radio buttons. This works find in FireFox and IE7: script type=text/javascript src=jquery-1.2.6.min.js/script script type=text/javascript $(document).ready(function() { $(input[type='radio'][name='radio1']).click(function() { var $clickedRadioButton

Re: Javascript question

2009-02-13 Thread Scott Stewart
=text/javascript src=jquery-1.2.6.min.js/script script type=text/javascript $(document).ready(function() { $(input[type='radio'][name='radio1']).click(function() { var $clickedRadioButton= $(this); if($clickedRadioButton.val()== Yes

Re: Javascript question

2009-02-13 Thread Nathan Strutz
beating the jQuery horse, but if jQuery is referencing the radio button by ID or some other non-positional selector, the layout shouldn't matter. Just to be sure, I wrote up a quick little test with 2 sets of radio buttons. This works find in FireFox and IE7: script type=text/javascript

RE: Javascript question

2009-02-13 Thread Adrian Lynch
SHARE IT, SHARE IT, SHARE IT, SHARE IT, SHARE IT!! :OD Go on, take out any sensitive info (but make sure the structure remains the same). Adrian -Original Message- From: Nathan Strutz [mailto:str...@gmail.com] Sent: 13 February 2009 21:50 To: cf-talk Subject: Re: Javascript

Re: CFGrid: Calling custom javascript on click.

2009-02-10 Thread Cutter (CFRelated)
_ http://blog.cutterscrossing.com Anthony Tietjen wrote: I would like to call a custom javascript function when clicking on a cell in an cfgrid (of html format). The closest thing I can find is to use the HREF= attribute, but it doesn't seem to work with javascript inside

CFGrid: Calling custom javascript on click.

2009-02-09 Thread Anthony Tietjen
I would like to call a custom javascript function when clicking on a cell in an cfgrid (of html format). The closest thing I can find is to use the HREF= attribute, but it doesn't seem to work with javascript inside it. Simple example: cfgridcolumn name=Foo header=Foo href

Re: javascript debugger for ie

2009-02-04 Thread Claude Schneegans
What about installing a user agent switcher add on for firefox? this way you can sort of be testing in IE, Excuse a may be silly question, but how just switching the agent can help debugging? Firefox will make Javascript believe it is IE, but will it act as IE

Re: javascript debugger for ie

2009-02-04 Thread Charlie Griefer
will make Javascript believe it is IE, but will it act as IE? I've not tried it. My assumption would be that if Firefox is rendering it as if it were being rendered in IE, then the JS would behave as if it were IE. Seems like a logical conclusion. But no.. I've not tried it to be able to say

Re: javascript debugger for ie

2009-02-04 Thread Dave Watts
I've not tried it. My assumption would be that if Firefox is rendering it as if it were being rendered in IE, then the JS would behave as if it were IE. Seems like a logical conclusion. But no.. I've not tried it to be able to say with 100% certainty. Changing the user agent does not

Re: javascript debugger for ie

2009-02-04 Thread Charlie Griefer
On Wed, Feb 4, 2009 at 10:34 AM, Dave Watts dwa...@figleaf.com wrote: I've not tried it. My assumption would be that if Firefox is rendering it as if it were being rendered in IE, then the JS would behave as if it were IE. Seems like a logical conclusion. But no.. I've not tried it

Re: javascript debugger for ie

2009-02-04 Thread Claude Schneegans
Ah, gotcha. I was under the impression it would render as if it were the specified browser. If it was so, why would Mozilla not ALWAYS support IE functions? What would be the advantage of switching the user agent otherwise? Very poor indeed.

Re: javascript debugger for ie

2009-02-04 Thread Dave Watts
What would be the advantage of switching the user agent otherwise? I can see if maybe a particular site only supported a given browser... would there be others? Just curious. You can use it to tell the server to generate code for another browser, and there are all kinds of uses for that. I

Re: javascript debugger for ie

2009-02-04 Thread Charlie Griefer
On Wed, Feb 4, 2009 at 12:02 PM, Dave Watts dwa...@figleaf.com wrote: What would be the advantage of switching the user agent otherwise? I can see if maybe a particular site only supported a given browser... would there be others? Just curious. You can use it to tell the server to

Re: javascript debugger for ie

2009-02-04 Thread Dave Watts
...and now I'm lost :) I'd normally assume that by don't work you mean they don't render properly. But with that being the crux of this particular tangent, I'm assuming that's not what you mean. What server side code would be poorly-written enough to not work based on the browser? I've

Re: javascript debugger for ie

2009-02-04 Thread Gerald Guido
It is common to have to have 2 or 3 versions of CSS to accommodate for browser inconsistencies. A friend of mine does *nothing but* UI design and he says that he usually has at least 2 versions of CSS. So that plugin that Charlie showed me allowed me to see the the IE Stylesheet in FF and use

Re: javascript debugger for ie

2009-02-04 Thread Charlie Griefer
On Wed, Feb 4, 2009 at 1:54 PM, Dave Watts dwa...@figleaf.com wrote: ...and now I'm lost :) I'd normally assume that by don't work you mean they don't render properly. But with that being the crux of this particular tangent, I'm assuming that's not what you mean. What server side code

Acces a record count in javascript

2009-02-03 Thread Jason Congerton
Hi I need to access a recordcount from within a javascript function, is this possible? script function checkBoxValidate(cb) { for (j = 0; j RECORD COUNT OF QUERY TO GO HERE; j++) { if (eval(document.addCust.ckbox[ + j + ].checked) == true) { document.addCust.ckbox[j].checked = false; if (j

Re: Acces a record count in javascript

2009-02-03 Thread Francois Levesque
Hi Jason, If your javascript block is within cfoutput tags, you can just put #myquery.recordcount# in there. Francois Levesque http://blog.critical-web.com/ On Tue, Feb 3, 2009 at 5:47 AM, Jason Congerton ja...@jasoncongerton.co.ukwrote: Hi I need to access a recordcount from within

Re: Acces a record count in javascript

2009-02-03 Thread John M Bliss
-- /script /cfoutput On Tue, Feb 3, 2009 at 4:47 AM, Jason Congerton ja...@jasoncongerton.co.ukwrote: Hi I need to access a recordcount from within a javascript function, is this possible? script function checkBoxValidate(cb) { for (j = 0; j RECORD COUNT OF QUERY TO GO HERE; j++) { if (eval

Re: Acces a record count in javascript

2009-02-03 Thread Patrick Santora
Jason, It's important to remember that Javascript is commonly rendered AFTER Coldfusion has compiled the page. This allows you to use Coldfusion to help render such content. Here is a basic request cycle to help show this: Client makes request - Server proccess request (Coldfusion) - Server

Re: Acces a record count in javascript

2009-02-03 Thread Jason Congerton
Hi Thanks to you all, I was just missing the cfoutput tags! Thanks!! Jason, It's important to remember that Javascript is commonly rendered AFTER Coldfusion has compiled the page. This allows you to use Coldfusion to help render such content. Here is a basic request cycle to help show

Re: javascript debugger for ie

2009-02-03 Thread Richard White
thanks for the recommendation... i have downloaded it and it tells me what line of code an error is on but it doesn't allow me to view that line of code, does it just alert you to the line or is there a way, like firebug, to get more details on the line and view the code etc... thanks (sorry

Re: javascript debugger for ie

2009-02-03 Thread Charlie Griefer
i haven't really used it much... but really nothing holds a candle to firebug. What about installing a user agent switcher add on for firefox? this way you can sort of be testing in IE, yet have firebug available? https://addons.mozilla.org/en-US/firefox/addon/59 On Tue, Feb 3, 2009 at 3:16

Re: javascript debugger for ie

2009-02-03 Thread Richard White
WOW... this is very powerful thanks Charlie, seems like a perfect answer :) i haven't really used it much... but really nothing holds a candle to firebug. What about installing a user agent switcher add on for firefox? this way you can sort of be testing in IE, yet have firebug available?

Re: javascript debugger for ie

2009-02-03 Thread Wil Genovese
Question: Have you tried using a javascript library that hides and handles the cross browser issues behind the scenes? JQuery is the hot one these days, but other like Prototype, YUI and others are available and usually have excellent documentation. These libraries can really take the headache

Re: javascript debugger for ie

2009-02-03 Thread Gerald Guido
He only thing I have seen is the IE debugger in Aptana pro ($99). I use the FOSS version of Aptana and absolutely love it. http://www.aptana.com/docs/index.php/Installing_the_IE_debugger G! On Tue, Feb 3, 2009 at 6:16 PM, Richard White rich...@j7is.co.uk wrote: thanks for the

Re: javascript debugger for ie

2009-02-03 Thread Gerald Guido
http://www.debugbar.com/?langage=en Free for personal use. I find that debugging JS to be a very personal issue. This is very handy as well http://www.my-debugbar.com/wiki/IETester/HomePage On Tue, Feb 3, 2009 at 5:14 PM, Richard White rich...@j7is.co.uk wrote: hi, sorry for the non-cf

javascript debugger for ie

2009-02-03 Thread Richard White
hi, sorry for the non-cf question but does anyone know a good opensource JS debugger for IE, that is similar to FireBug for FireFox, and is not the script debugger in IE (as i cannot get it to show on my browser) thanks richard

Re: javascript debugger for ie

2009-02-03 Thread Gerald Guido
Nice find Charlie. Thanx. I am in cross browser hell right now Someone please kill me. G! On Tue, Feb 3, 2009 at 6:25 PM, Charlie Griefer charlie.grie...@gmail.comwrote: i haven't really used it much... but really nothing holds a candle to firebug. What about installing a user agent

Re: javascript debugger for ie

2009-02-03 Thread Charlie Griefer
http://www.debugbar.com/ http://www.my-debugbar.com/wiki/CompanionJS/HomePage On Tue, Feb 3, 2009 at 2:14 PM, Richard White rich...@j7is.co.uk wrote: hi, sorry for the non-cf question but does anyone know a good opensource JS debugger for IE, that is similar to FireBug for FireFox, and is

Re: javascript debugger for ie

2009-02-03 Thread Richard White
no i havent but will look into this, thanks i have been meaning to look into JQuery for some time and know that it will help us out if we do so this is the perfect excuse! thanks Question: Have you tried using a javascript library that hides and handles the cross browser issues behind

Javascript compatibility question

2009-01-13 Thread Scott Stewart
Hey all, I'm trying to disable radio button based on a selection. These functions are called from an onClick. Any reason why they'd work in Firefox and not in IE 7? script language=javascript type=application/javascript function disableOnPaidLeave(){ document.form1.getElementById

RE: Javascript compatibility question

2009-01-13 Thread Adrian Lynch
Is getElementById a method of a form? Shouldn't it just be document.getElementById()? Adrian -Original Message- From: Scott Stewart [mailto:saste...@email.unc.edu] Sent: 13 January 2009 16:30 To: cf-talk Subject: Javascript compatibility question Hey all, I'm trying

RE: Javascript compatibility question

2009-01-13 Thread Milburn, Steve
Subject: Javascript compatibility question Hey all, I'm trying to disable radio button based on a selection. These functions are called from an onClick. Any reason why they'd work in Firefox and not in IE 7? script language=javascript type=application/javascript function disableOnPaidLeave

Re: Javascript compatibility question

2009-01-13 Thread Scott Stewart
getElementById() is a javascript function that finds a specified element on a page it can be a form or page element. in this case I'm trying to disable/enable radio buttons. Adrian Lynch wrote: Is getElementById a method of a form? Shouldn't it just be document.getElementById()? Adrian

RE: Javascript compatibility question

2009-01-13 Thread Adrian Lynch
Yup, I know, but is there a method form.getElementByID()? I've only ever used it in document. Fancy trying jQuery instead? Adrian -Original Message- From: Scott Stewart [mailto:saste...@email.unc.edu] Sent: 13 January 2009 16:51 To: cf-talk Subject: Re: Javascript compatibility

Re: Javascript compatibility question

2009-01-13 Thread Scott Stewart
-Original Message- From: Scott Stewart [mailto:saste...@email.unc.edu] Sent: 13 January 2009 16:51 To: cf-talk Subject: Re: Javascript compatibility question getElementById() is a javascript function that finds a specified element on a page it can be a form or page element

Re: Javascript compatibility question

2009-01-13 Thread Claude Schneegans
getElementById() is a javascript function that finds a specified element on a page it can be a form or page element. At least in IE, this methods applies only to the document object. see: http://www.w3.org/TR/2000/WD-DOM-Level-1-2929/level-one-html.html#ID-40002357 I'm surprised it works

Re: Javascript compatibility question

2009-01-13 Thread Charlie Griefer
I think what Adrian's getting at is your reference to the elements should be document.getElementById('foo'), not document.form1.getElementById('foo'). can you give that a shot? On Tue, Jan 13, 2009 at 8:50 AM, Scott Stewart saste...@email.unc.eduwrote: getElementById() is a javascript function

Re: Javascript compatibility question

2009-01-13 Thread Scott Stewart
...@email.unc.eduwrote: getElementById() is a javascript function that finds a specified element on a page it can be a form or page element. in this case I'm trying to disable/enable radio buttons. Adrian Lynch wrote: Is getElementById a method of a form? Shouldn't it just

RE: Javascript compatibility question

2009-01-13 Thread Adrian Lynch
Yeah, what Charlie said :OD -Original Message- From: Charlie Griefer [mailto:charlie.grie...@gmail.com] Sent: 13 January 2009 17:11 To: cf-talk Subject: Re: Javascript compatibility question I think what Adrian's getting at is your reference to the elements should

Re: Javascript compatibility question

2009-01-13 Thread Charlie Griefer
do you have multiple elements on the page with the same ID? On Tue, Jan 13, 2009 at 9:17 AM, Scott Stewart saste...@email.unc.eduwrote: tried that, and no love... Charlie Griefer wrote: I think what Adrian's getting at is your reference to the elements should be

Re: Javascript compatibility question

2009-01-13 Thread Scott Stewart
I don't think so, this works in FF, you'd think it would balk at that.. but I'll check again. Charlie Griefer wrote: do you have multiple elements on the page with the same ID? On Tue, Jan 13, 2009 at 9:17 AM, Scott Stewart saste...@email.unc.eduwrote: tried that, and no love...

RE: Javascript compatibility question

2009-01-13 Thread Milburn, Steve
[charlie.grie...@gmail.com] Sent: Tuesday, January 13, 2009 12:48 PM To: cf-talk Subject: Re: Javascript compatibility question do you have multiple elements on the page with the same ID? On Tue, Jan 13, 2009 at 9:17 AM, Scott Stewart saste...@email.unc.eduwrote: tried that, and no love

Re: Javascript compatibility question

2009-01-13 Thread Gerald Guido
Paste the whole page/code in question on pastebin so we can see the whole thing http://pastebin.com/ On Tue, Jan 13, 2009 at 12:51 PM, Scott Stewart saste...@email.unc.eduwrote: I don't think so, this works in FF, you'd think it would balk at that.. but I'll check again. Charlie Griefer

Re: Javascript compatibility question

2009-01-13 Thread Charlie Griefer
hmm... true. good point. is there any chance you can post the full rendered html to nomorepasting.com so i can take it for a spin locally? On Tue, Jan 13, 2009 at 9:51 AM, Scott Stewart saste...@email.unc.eduwrote: I don't think so, this works in FF, you'd think it would balk at that.. but

Problem with javascript window.open

2009-01-02 Thread Jim Sidway
I have a standard javascript function on a CF page intended to open a popup window: function openProfileWindow(url) { popupWin = window.open(url, 'detail', 'width=600,height=350,left=1,top=1,scrollbars=yes,resizable=yes');popupWin.window.focus(); } On the CF page I loop through the results

Re: Problem with javascript window.open

2009-01-02 Thread Dave Watts
I have a standard javascript function on a CF page intended to open a popup window: ... On the CF page I loop through the results of a query and output them. I made one of the values a hyperlink in order to open a popup window to display the potentially lengthy content of another data

Javascript not executing in Ajax panel of web site

2008-12-29 Thread Gerald Weir
call within a DIV. The problem is that the javascript is not executing in the recently viewed items panel. For instance: script type=text/javascript var pr_page_id=#currItem#; snippet(document); /script This code is in the loop so that each iteration of an item should show the snippet. I can't

re: CF / Javascript question

2008-12-19 Thread Jenny Gavin-Wear
/ Javascript question Why not place a checkbox on the page (after the textarea) indicating: [ ] I have read the prescribed text. If the box is checked, fire off a JS to enable the Continue button, else keep it disabled. Just a thought

re: CF / Javascript question

2008-12-17 Thread CF Developer
! From: Jenny Gavin-Wear jenn...@fasttrackonline.co.uk Sent: Wednesday, December 17, 2008 6:54 AM To: cf-talk cf-talk@houseoffusion.com Subject: CF / Javascript question Hi all, In a registration procedure, I need to do a verification that the person registering has read a large

CF / Javascript question

2008-12-17 Thread Jenny Gavin-Wear
I best go about this using CF and/or javascript, please? Grateful for any ideas ... Jenny ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk

Re: CF / Javascript question

2008-12-17 Thread Ravi Gehlot
Jenny, Great question. It is not really easy to accomplish what you have in mind. I understand that you want the user to scroll down in order to show a button for continue. Dzone.com has a great example of how you can scroll down using javascript. If you can get the position where

CFWindow Javascript errors

2008-11-14 Thread Richard Dillman
with a new admin window to perform CRUD operations. I've tried it both this way: a href=cfoutput#AjaxLink('WinRegion.cfm')#/cfoutputEdit Regions/a And this way: a href=javascript:ColdFusion.navigate('WinRegion.cfm','mywindow');Edit Regions/a But I always wind up with a Javascript error. Error

Re: OT JavaScript question.

2008-11-12 Thread Cutter (CFRelated)
://blog.cutterscrossing.com Ian Skinner wrote: Quick question that I just can not think of the right terms to find in Google. There is a syntax short cut in JavaScript if you are assigning several properties to the same object. What

RE: OT JavaScript question.

2008-11-12 Thread Andy Matthews
You can do this: Var something = somethingelse = onemorething = 0; -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2008 1:34 PM To: cf-talk Subject: OT JavaScript question. Quick question that I just can not think of the right terms to find

OT JavaScript question.

2008-11-12 Thread Ian Skinner
Quick question that I just can not think of the right terms to find in Google. There is a syntax short cut in JavaScript if you are assigning several properties to the same object. What is it? ~| Adobe® ColdFusion® 8

RE: OT JavaScript question.

2008-11-12 Thread Adrian Lynch
Or do you mean with? with someObject { var1 = not; var2 = sure; var3 = about; var4 = this; var5 = syntax; var6 = or; var7 = whether; var8 = it's a JavaScript; var9 = thing or not; } alert(someObject.var1); Adrian Building

Re: OT JavaScript question.

2008-11-12 Thread Ian Skinner
Adrian Lynch wrote: Or do you mean with? with someObject { var1 = not; var2 = sure; var3 = about; var4 = this; var5 = syntax; var6 = or; var7 = whether; var8 = it's a JavaScript; var9 = thing or not; } alert(someObject.var1

Re: OT JavaScript question.

2008-11-12 Thread Charlie Griefer
On Wed, Nov 12, 2008 at 1:14 PM, Ian Skinner [EMAIL PROTECTED] wrote: Yes that is the one I was looking for!. I found 'with' to be a very poor search term on Google, or any search engine for that matter. heh. reminds me of http://bash.org/?514353 :) -- I have failed as much as I have

RE: OT JavaScript question.

2008-11-12 Thread Jim Davis
-Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2008 4:15 PM To: cf-talk Subject: Re: OT JavaScript question. Adrian Lynch wrote: Or do you mean with? with someObject { var1 = not; var2 = sure; var3 = about

SOT: setting div visibility with javascript

2008-10-10 Thread Scott Stewart
Hey all, If I'm setting the visibility for a div (display:none or display:block in this case), do also need to set visibility for anything inside the div. IE: div id=a style=display:none; span class=whatever blah /span /div If I wanted this to not display, and behave properly,

RE: setting div visibility with javascript

2008-10-10 Thread Craig Dudley
You shouldn't do. What's going wrong in your example? -Original Message- From: Scott Stewart [mailto:[EMAIL PROTECTED] Sent: 10 October 2008 15:19 To: cf-talk Subject: SOT: setting div visibility with javascript Hey all, If I'm setting the visibility for a div (display:none

Re: setting div visibility with javascript

2008-10-10 Thread Scott Stewart
no answers. There it isclear as mud Craig Dudley wrote: You shouldn't do. What's going wrong in your example? -Original Message- From: Scott Stewart [mailto:[EMAIL PROTECTED] Sent: 10 October 2008 15:19 To: cf-talk Subject: SOT: setting div visibility with javascript Hey all

RE: setting div visibility with javascript

2008-10-10 Thread Craig Dudley
could be wrong though. -Original Message- From: Scott Stewart [mailto:[EMAIL PROTECTED] Sent: 10 October 2008 15:59 To: cf-talk Subject: Re: setting div visibility with javascript It's complicated: here's the template: http://cfm.pastebin.com/m549bfe76 what I'm specifically dealing

Re: SOT: setting div visibility with javascript

2008-10-10 Thread Peter Boughton
If I'm setting the visibility for a div (display:none or display:block in this case), do also need to set visibility for anything inside the div. Nope - you only need to do it to the parent item. Note, you're not setting visibility, you're setting display. This isn't being pedantic; there is

Re: SOT: setting div visibility with javascript

2008-10-10 Thread Scott Stewart
No I understand that, display determines whether the the div will be rendered and visibility sets similar to opacity=0, you can't see it but it's there Peter Boughton wrote: If I'm setting the visibility for a div (display:none or display:block in this case), do also need to set visibility

Re: setting div visibility with javascript

2008-10-10 Thread Scott Stewart
. There it isclear as mud Craig Dudley wrote: You shouldn't do. What's going wrong in your example? -Original Message- From: Scott Stewart [mailto:[EMAIL PROTECTED] Sent: 10 October 2008 15:19 To: cf-talk Subject: SOT: setting div visibility with javascript Hey all

Re: setting div visibility with javascript

2008-10-10 Thread Peter Boughton
here's the template: http://cfm.pastebin.com/m549bfe76 You really should investigate jQuery. It will allow you to ditch all this ugly overly-verbose code: document.getElementById(COMMENTB).style.display = none; document.getElementById(COMMENTC).style.display = none;

Re: setting div visibility with javascript

2008-10-10 Thread Scott Stewart
here's the template: http://cfm.pastebin.com/m549bfe76 You really should investigate jQuery. It will allow you to ditch all this ugly overly-verbose code: document.getElementById(COMMENTB).style.display = none; document.getElementById(COMMENTC).style.display = none;

Re: setting div visibility with javascript

2008-10-10 Thread Scott Stewart
Umm, it might be as simple as the JS not setting the display property correctly? e.g. document.getElementById(COMMENTB).style.display = none; document.getElementById(COMMENTC).style.display = ''; document.getElementById(FRMSUBMIT).style.display = ''; Shouldn't the empty quotes be 'block' ? I

SOT: setting div visibility with javascript (fixed)

2008-10-10 Thread Scott Stewart
There was a call to a second function that was messing with the display settings. I removed the display settings from Q4Chk() and placed them in the second function and all is well.. Thanks to all for letting me bounce this off of you sas

Debugging Coldfusion and javascript

2008-10-07 Thread Anthony Doherty
hi we are constantly using coldfusion with javascript and keep getting wierd javascript error message when calling functions with cfc's. things like an object was expected or my favourite exception thrown but not caught (maybe adobe could give coldfusion a pair of gloves to help it catch

RE: Debugging Coldfusion and javascript

2008-10-07 Thread Adrian Lynch
If you don't get 10 more posts saying Firebug for Firefox I'd be highly suprised. Adrian Building a DB of errors at http://cferror.org/ -Original Message- From: Anthony Doherty [mailto:[EMAIL PROTECTED] Sent: 07 October 2008 09:01 To: cf-talk Subject: Debugging Coldfusion and javascript

Re: Debugging Coldfusion and javascript

2008-10-07 Thread Azadi Saryev
-dee.com/ Anthony Doherty wrote: hi we are constantly using coldfusion with javascript and keep getting wierd javascript error message when calling functions with cfc's. things like an object was expected or my favourite exception thrown but not caught (maybe adobe could give coldfusion a pair

Re: Debugging Coldfusion and javascript

2008-10-07 Thread Gerald Guido
/firefox/addon/1843 On Tue, Oct 7, 2008 at 4:00 AM, Anthony Doherty [EMAIL PROTECTED] wrote: hi we are constantly using coldfusion with javascript and keep getting wierd javascript error message when calling functions with cfc's. things like an object was expected or my favourite exception thrown

RE: Debugging Coldfusion and javascript

2008-10-07 Thread Jim Davis
-Original Message- From: Scott Stewart [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2008 8:03 AM To: cf-talk Subject: Re: Debugging Coldfusion and javascript Your only option, is Firebug, a plug in for Firefox. It's a great option but far from your only one. ;^) I still

Re: Debugging Coldfusion and javascript

2008-10-07 Thread Brian Kotek
Chrome actually has a pretty nice debugger within it, if you happen to be running Chrome. On Tue, Oct 7, 2008 at 8:02 AM, Scott Stewart [EMAIL PROTECTED]wrote: Your only option, is Firebug, a plug in for Firefox. Anthony Doherty wrote: hi we are constantly using coldfusion with javascript

Re: Debugging Coldfusion and javascript

2008-10-07 Thread Scott Stewart
Your only option, is Firebug, a plug in for Firefox. Anthony Doherty wrote: hi we are constantly using coldfusion with javascript and keep getting wierd javascript error message when calling functions with cfc's. things like an object was expected or my favourite exception thrown

Help constracting optionstring in coldfusion or javascript

2008-09-12 Thread erik tom
In my form i building the number of dynamic select boxes. And it works . The only thing that does not work when i make the selection and save into the databse and then come back it does not do the preselect. How can i do this This it works for dispaly the drop down cfset selectOptions =

RE: Javascript in CFC

2008-09-05 Thread Andy Matthews
Hrm... You're right. That doesn't make any sense though. -Original Message- From: Brad Wood [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2008 10:12 PM To: CF-Talk Subject: Re: Javascript in CFC - Original Message - From: Andy Matthews [EMAIL PROTECTED] That's

Javascript in CFC

2008-09-04 Thread chn g
What's wrong with the following code? cfif testqry.recordcount EQ 1 ... cfelse script type=text/javascript Alert(Error); /script cflocation url=http://#CGI.SERVER_NAME#/testfile.html; /cfif It's not showing up alert box, directly displaying

Re: Javascript in CFC

2008-09-04 Thread Justin Scott
script type=text/javascript Alert(Error); /script cflocation url=http://#CGI.SERVER_NAME#/testfile.html; First thing is that CFLOCATION sets a 302 header which tells the browser to redirect, and none of the output is sent to the browser. If you

RE: Javascript in CFC

2008-09-04 Thread brad
alert() is lower case. If that doesn't work try this: The cflocation is sending back a status code of 301 to your browser. In fact, I don't even know if ColdFusion sends back any content created in the reponse body or not. ~Brad Original Message Subject: Javascript

RE: Javascript in CFC

2008-09-04 Thread Andy Matthews
CF runs on the server, before the Javascrtipt would even have a chance to hit the browser. -Original Message- From: chn g [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2008 1:05 PM To: CF-Talk Subject: Javascript in CFC What's wrong with the following code? cfif

Re: Javascript in CFC

2008-09-04 Thread Justin Scott
The cflocation is sending back a status code of 301 to your browser. You mean it sets 302 as a temporary redirect, not permanent as a 301 would be. In fact, I don't even know if ColdFusion sends back any content created in the reponse body or not. It doesn't when you use CFLOCATION. It's

Re: Javascript in CFC

2008-09-04 Thread chn g
Thank you, its working now. alert() is lower case. If that doesn't work try this: The cflocation is sending back a status code of 301 to your browser. In fact, I don't even know if ColdFusion sends back any content created in the reponse body or not. ~Brad What's wrong with the

RE: Javascript in CFC

2008-09-04 Thread Milburn, Steve
This works? Am I missing something? How is the browser seeing javascript code in a cfc? From: chn g [EMAIL PROTECTED] Sent: Thursday, September 04, 2008 2:14 PM To: CF-Talk Subject: Re: Javascript in CFC Thank you, its working now. alert() is lower

Re: Javascript in CFC

2008-09-04 Thread Justin Scott
This works? Am I missing something? How is the browser seeing javascript code in a cfc? The CFCOMPONENT and CFFUNCTION tags both support an output attribute that can be set to yes to allow their output to be injected into the content stream back to the user. -- -Justin Scott, http

RE: Javascript in CFC

2008-09-04 Thread Andy Matthews
That's irrelevant. The ColdFusion code would completely process before ANY javascript code would even make it to the browser. -Original Message- From: Justin Scott [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2008 1:24 PM To: CF-Talk Subject: Re: Javascript in CFC

Re: Javascript in CFC

2008-09-04 Thread Justin Scott
Andy Matthews wrote: That's irrelevant. The ColdFusion code would completely process before ANY javascript code would even make it to the browser. Actually, you can have output go to the browser before the CF code completes by using CFFLUSH. This would negate CFLOCATION though, so

Re: Javascript in CFC

2008-09-04 Thread Aaron Rouse
I have some CFCs I use to build needed javascript/html that is outputted onto pages at the time they are loaded. On Thu, Sep 4, 2008 at 1:29 PM, Andy Matthews [EMAIL PROTECTED]wrote: That's irrelevant. The ColdFusion code would completely process before ANY javascript code would even make

Re: Javascript in CFC

2008-09-04 Thread chn g
I use document.location.href in javascript instead of cflocation. Andy Matthews wrote: That's irrelevant. The ColdFusion code would completely process before ANY javascript code would even make it to the browser. Actually, you can have output go to the browser before the CF code completes

Re: Javascript in CFC

2008-09-04 Thread Brad Wood
- Original Message - From: Andy Matthews [EMAIL PROTECTED] That's irrelevant. The ColdFusion code would completely process before ANY JavaScript code would even make it to the browser. Andy, I don't think you understand how cflocation works. Even though it is a CF tag

Cfgrid Javascript function not working if not put inside head/head tags

2008-08-21 Thread dev losh
I having an issue with ajaxOnLoad function to use with gfgrid. if i call a function say 'myfun' using cfset ajaxOnLoad(myfun) for a cfgrid, the function will work ONLY IF PUT INSIDE HEAD/HEAD tags. i need to make that js dynamic.. please some one can help me with any tweaks that will allow JS

RE: Cfgrid Javascript function not working if not put inside hea d/head tags

2008-08-21 Thread Dave Watts
if i call a function say 'myfun' using cfset ajaxOnLoad(myfun) for a cfgrid, the function will work ONLY IF PUT INSIDE HEAD/HEAD tags. i need to make that js dynamic.. please some one can help me with any tweaks that will allow JS to be placed anywhere in the code ? I'm not sure what you

Re: Cfgrid Javascript function not working if not put inside head/head tags

2008-08-21 Thread Charlie Griefer
cfsavecontent variable=headText your javascript stuff here /cfsavecontent cfhtmlhead text=#headText# / On Thu, Aug 21, 2008 at 1:53 PM, dev losh [EMAIL PROTECTED] wrote: I having an issue with ajaxOnLoad function to use with gfgrid. if i call a function say 'myfun' using cfset ajaxOnLoad

<    1   2   3   4   5   6   7   8   9   10   >