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 Scott Stewart
}); > > > > > Group 1 > > All > > #i# > > > > Group 2 > > All > > #i# > > > > > > Download jQuery, change the path to it and run this. > > Adrian &

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,

RE: Javascript question

2009-02-13 Thread Adrian Lynch
this. Adrian > -Original Message- > From: Scott Stewart [mailto:saste...@email.unc.edu] > Sent: 13 February 2009 16:11 > To: cf-talk > Subject: Javascript question > > > I've got a chunk of javascript that's supposed to do something really > sim

Re: Javascript question

2009-02-13 Thread Scott Stewart
uery's selectors would make it easier to find the objects you want to > modify, then you can easily set the disabled flag, as needed. > > Thanks, > Mike > > -Original Message- > From: Scott Stewart [mailto:saste...@email.unc.edu] > Sent: Friday, February 13, 20

RE: Javascript question

2009-02-13 Thread Dawson, Michael
tt Stewart [mailto:saste...@email.unc.edu] Sent: Friday, February 13, 2009 10:11 AM To: cf-talk Subject: Javascript question I've got a chunk of javascript that's supposed to do something really simple, toggle radio buttons on and off (disable/enable) based on another radio button Ho

Javascript question

2009-02-13 Thread Scott Stewart
I've got a chunk of javascript that's supposed to do something really simple, toggle radio buttons on and off (disable/enable) based on another radio button However, there's a bug in IE, (http://webbugtrack.blogspot.com/2007/08/bug-152-getelementbyid-returns.html) that for

Re: CFGrid: Calling custom javascript on click.

2009-02-10 Thread Cutter (CFRelated)
.com/learning-ext-js/book _ 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,

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: Do I need to tap into the underlying f

Re: javascript debugger for ie

2009-02-04 Thread Charlie Griefer
On Wed, Feb 4, 2009 at 1:54 PM, Dave Watts 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 > would

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 Fir

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?

Re: javascript debugger for ie

2009-02-04 Thread Charlie Griefer
On Wed, Feb 4, 2009 at 12:02 PM, Dave Watts 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 generate co

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.

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 Charlie Griefer
On Wed, Feb 4, 2009 at 10:34 AM, Dave Watts 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 to be > >

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
the agent can > help debugging? > Firefox 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 co

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

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 wrote: > > 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 fire

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 behi

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 wrote: > > thanks for the recommendation... i have downlo

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 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 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 PM,

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 do

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 wrote: > > hi, > > sorry for the non-cf question but do

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 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 not the > scrip

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: 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

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) -

Re: Acces a record count in javascript

2009-02-03 Thread John M Bliss
d --> On Tue, Feb 3, 2009 at 4:47 AM, Jason Congerton wrote: > > Hi > > I need to access a recordcount from within a javascript function, is this > possible? > > > function checkBoxValidate(cb) { > for (j = 0; j < RECORD COUNT OF QUERY TO GO HERE; 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 wrote: > > Hi > > I need to access a recordcount from within a javascript

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? 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]

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 wrote: > I don't think so, this works in FF, you'd think it would balk at that.. > but I'll check again. > >

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 wrote: > 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

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 wrote: > tried that, and no love... > > Charlie Grie

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 wrote: > > >> tried that, and no love... >> >> Charlie Griefer w

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 wrote: > tried that, and no love... > > Charlie Griefer wrote: > > I think what Adrian's getting at is your reference to the elements should > be > > document.getElementById('foo'), not docu

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 t

Re: Javascript compatibility question

2009-01-13 Thread Scott Stewart
13, 2009 at 8:50 AM, Scott Stewart wrote: > > >> 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 wrot

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 wrote: > getElementById() is a java

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 surpris

Re: Javascript compatibility question

2009-01-13 Thread Scott Stewart
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 question >> >> getElementById() is a ja

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 > Sub

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.getElemen

RE: Javascript compatibility question

2009-01-13 Thread Milburn, Steve
o: cf-talk 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? function disableOnPaidLeave(){ document.form1.getEle

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 > >

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? function disableOnPaidLeave(){ document.form1.getElementById("pre_absent").disabled=true; document.form1.get

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 potential

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 th

Javascript not executing in Ajax panel of web site

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

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

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 it

re: CF / Javascript question

2008-12-17 Thread CF Developer
a thought! From: "Jenny Gavin-Wear" Sent: Wednesday, December 17, 2008 6:54 AM To: cf-talk Subject: CF / Javascript question Hi all, In a registration procedure, I need to do a verification that the person registering has read a large piece of text. The way I thoug

CF / Javascript question

2008-12-17 Thread Jenny Gavin-Wear
text. How could 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.doubl

CFWindow Javascript errors

2008-11-14 Thread Richard Dillman
ons But I always wind up with a Javascript error. Error processing JavaScript in markup for element mywindow_body: [Enable debugging by adding 'cfdebug' to your URL parameters to see more information] I have tested all these pages independently and they work fine outside the CFwindow

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 { >

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 hav

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"; >

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 = "

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

Re: OT JavaScript question.

2008-11-12 Thread Cutter (CFRelated)
http://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 > pr

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

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 ~~

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

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"; >documen

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"; document.getElemen

Re: setting div visibility with javascript

2008-10-10 Thread Scott Stewart
ginal 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 or display:block > in this case

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 visibilit

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; th

RE: setting div visibility with javascript

2008-10-10 Thread Craig Dudley
isplay = ''; Shouldn't the empty quotes be 'block' ? I 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

Re: setting div visibility with javascript

2008-10-10 Thread Scott Stewart
--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 or display:block > in th

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 (

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: blah If I wanted this to not display, and behave properly, do I need to set the display property for the span tag a

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

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

Re: Debugging Coldfusion and javascript

2008-10-07 Thread Brian Kotek
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

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 favouri

Re: Debugging Coldfusion and javascript

2008-10-07 Thread Azadi Saryev
ttp://www.sabai-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 throw

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

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 o

Help constracting string 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 #options#'> And something lik

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&quo

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 cflocat

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 outpu

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 javascri

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 CFLOCATI

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
> 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. -- -Ju

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 lo

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

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

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

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: Jav

Re: Javascript in CFC

2008-09-04 Thread Justin Scott
f you want to show an error and redirect, you'll need to do it all in JavaScript (also, alert should be all lower-case)... alert("Error"); document.location.href = '/testfile.html'; -- Justin Scott, http://www.tlson.com/ ~

Javascript in CFC

2008-09-04 Thread chn g
What's wrong with the following code? ... Alert("Error"); http://#CGI.SERVER_NAME#/testfile.html";> It's not showing up alert box, directly displaying the html file. Thanks Chn ~

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

2008-08-21 Thread dev losh
Hey Great Joy it worked !! Thanks Charilie :) > > your javascript stuff here > > > >On Thu, Aug 21, 2008 at 1:53 PM, dev losh <[EMAIL PROTECTED]> wrote: > >> ~| Adobe® ColdFusion® 8 sof

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

2008-08-21 Thread Charlie Griefer
your javascript stuff here 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 for a > cfgrid, > the function will work ONLY IF PUT

RE: Cfgrid Javascript function not working if not put inside tags

2008-08-21 Thread Dave Watts
> if i call a function say 'myfun' using ajaxOnLoad("myfun")> for a cfgrid, the function will work > ONLY IF PUT INSIDE 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 mean by "

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