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

2008-08-21 Thread dev losh
Hey Great Joy it worked !! Thanks Charilie :) 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

javascript question

2008-08-14 Thread BJ McShane
I built a form for my users where they enter IP addresses. They are use to putting in the .(period) in between the numbers but I built the form so all they would have to do is type in the number. Is there a way I can change the keystroke of a . (period) to a tab. So when they are typing they

RE: javascript question

2008-08-14 Thread Andy Matthews
Why not just have it all in one form field? Easier to store, easier to manage, no extra coding needed. -Original Message- From: BJ McShane [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2008 10:25 AM To: CF-Talk Subject: javascript question I built a form for my users where

RE: javascript question

2008-08-14 Thread Dave Phillips
. I know it will work in IE, but not sure about other browsers. Hope this helps! Sincerely, Dave Phillips http://www.dave-phillips.com -Original Message- From: BJ McShane [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2008 10:25 AM To: CF-Talk Subject: javascript question I

Re: javascript question

2008-08-14 Thread Yuliang Ruan
remember that when you do this, it changes the behavior of the keystroke in the entire window. If you have another field that can input a period(.), this will make it a tab too. Not sure if you're allowed to check focus and based on the focused element, maybe make a decision to bypass or

Re: javascript question

2008-08-14 Thread Yuliang Ruan
oh wait n/m the way dave has it, it only activates on that element. :) ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial

Re: javascript question

2008-08-14 Thread BJ McShane
Dave thanks for the input. I did do some google searches on this but never found a solution that would work. I'll try what you posted and try some more searches to see what I can find. thanks! ~| Adobe® ColdFusion® 8 software

Re: javascript question

2008-08-14 Thread BJ McShane
Yes I did take that into account. If I keep in at the input tag level I think it should only effect the fields I want. I'll have to do more testing. thanks, ~| Adobe® ColdFusion® 8 software 8 is the most important and

Re: javascript question

2008-08-14 Thread BJ McShane
I'll probably change it that way. I stored it in 4 different field in the DB since each of the 4 parts mean certain things to the user. They could search and sort based on what they are trying to find. Also when they search they can just put input into any of the fields to find all the IPs

Re: javascript question

2008-08-14 Thread William Seiter
If the code isn't cross-browser compatible (not tested, probably is though) You could use the same concept to activate the javascript , when the javascript senses the key that was pressed, if it was the 'period' then have the element's 'tabindex' detected and then have the system 'focus

RE: Javascript and Coldfusion

2008-08-03 Thread Jim Davis
-Original Message- From: Jenny Gavin-Wear [mailto:[EMAIL PROTECTED] Sent: Saturday, August 02, 2008 2:12 AM To: CF-Talk Subject: Javascript and Coldfusion I'm looking for some good advice/info on exchanging variables between CF and javascript, anyone know of a good reference site

Javascript and Coldfusion

2008-08-02 Thread Jenny Gavin-Wear
I'm looking for some good advice/info on exchanging variables between CF and javascript, anyone know of a good reference site, please? Jenny ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release

Re: Javascript and Coldfusion

2008-08-02 Thread Brad Wood
JavaScript that, when executed in the browser, will contain values that existed in ColdFusion. You can't pass a value from JS to CF because by the time your JS is executing, your CF is long gone. Of course, if you intend to somehow save state in your web app, there is always Ajax calls, but I'm

Re: Javascript and Coldfusion

2008-08-02 Thread Charlie Griefer
On Fri, Aug 1, 2008 at 11:22 PM, Brad Wood [EMAIL PROTECTED] wrote: That's a pretty vague question. Never the less, one that comes up often. Basically you need to remember that ColdFusion is all excited first on the server. my ColdFusion doesn't seem all excited. maybe it needs more RAM?

Re: Javascript and Coldfusion

2008-08-02 Thread Brad Wood
lol. It's late and my spell check already went to bed... - Original Message - From: Charlie Griefer [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Saturday, August 02, 2008 1:29 AM Subject: Re: Javascript and Coldfusion On Fri, Aug 1, 2008 at 11:22 PM, Brad Wood [EMAIL

JSON return handle by javascript.

2008-07-27 Thread Ioannis Papanikolaou
Hello everyone, Using the CFajaxProxy I am getting my content throught JSON. I need to handle the return of my query (html content) and put it on a DIV container. This is what I am using so far: // return data form CF function jsReturn(r) { alert(r); var op =

Re: JSON return handle by javascript.

2008-07-27 Thread Andrew Scott
You need to get a JS Json DeSerialiser... Most frameworks like, dojo, jQuery, extJS and spry to name a few all have this support already. JSon, can even be done with an evaluate in JS but be careful because that can open for hacking. Also when it comes to fireBug, I take it you don't use the

CF calendar code driven by JavaScript

2008-07-18 Thread Dave Phillips
Hi all, Boy, there are tons of calendars out on the web, javascript calendars, coldfusion calendars, etc. What I'm looking for specifically, I haven't found yet, so I thought I'd see if any of you have one or have seen it. I'm looking for coldfusion calendar code that is driven by javascript

Re: CF calendar code driven by JavaScript

2008-07-18 Thread Azadi Saryev
you need more of a popup datepicker than an always-on calendar? Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Dave Phillips wrote: Hi all, Boy, there are tons of calendars out on the web, javascript calendars, coldfusion calendars, etc. What I'm looking for specifically, I haven't

Re: CF calendar code driven by JavaScript

2008-07-18 Thread Dave Phillips
datepicker than an always-on calendar? I need an 'always-on' calendar. And to clarify my original request, I'm looking for something that has javascript navigation. I could implement something with ajaxCFC as well as we are using that here. I've been thinking about using AJAX to accomplish

Re: CF calendar code driven by JavaScript

2008-07-18 Thread Azadi Saryev
to CF8 here, but until that happens, my code needs to be compatible with 6.1. :( or do you need more of a popup datepicker than an always-on calendar? I need an 'always-on' calendar. And to clarify my original request, I'm looking for something that has javascript navigation. I

Re: CF calendar code driven by JavaScript

2008-07-18 Thread Larry Lyons
-on' calendar. And to clarify my original request, I'm looking for something that has javascript navigation. I could implement something with ajaxCFC as well as we are using that here. I've been thinking about using AJAX to accomplish it if I need to write it from scratch. I'm pretty

Re: CF calendar code driven by JavaScript

2008-07-18 Thread Gerald Guido
request, I'm looking for something that has javascript navigation. I could implement something with ajaxCFC as well as we are using that here. I've been thinking about using AJAX to accomplish it if I need to write it from scratch. I'm pretty good with Javascript, but much better

Re: CF calendar code driven by JavaScript

2008-07-18 Thread Aaron Rouse
request, I'm looking for something that has javascript navigation. I could implement something with ajaxCFC as well as we are using that here. I've been thinking about using AJAX to accomplish it if I need to write it from scratch. I'm pretty good with Javascript, but much better

CF with Javascript

2008-07-15 Thread Stephens, Larry V
I'm working on a church site and there's some concern about the size of the screen versus the size of the monitor it's on. This includes random loading of photos and text. I've also had this concern on my wife's site. I'm currently calling a javascript function in body onload which reads

Re: CF with Javascript

2008-07-15 Thread Phillip Vector
of the monitor it's on. This includes random loading of photos and text. I've also had this concern on my wife's site. I'm currently calling a javascript function in body onload which reads the screensize and sets a cookie for width and a cookie for height. CF then reads those cookies

Re: CF with Javascript

2008-07-15 Thread Azadi Saryev
Stephens, Larry V wrote: Seems to be working except once in awhile the program doesn't seem to pick up a change in screen size until you do a reload. When I look at Google topics on body onload they say to me that there's no guarantee body onload will fire the javascript (and, in my case

RE: CF with Javascript

2008-07-15 Thread Stephens, Larry V
cf code is processed on the SERVER, BEFORE your page is presented to the user on screen, BEFORE your js code executes, BEFORE your cookie is set/changed. your onload event is too late to have its results picked up by cf from the cookie at this pageload - only on the next one. *Good point. aside

RE: CF with Javascript

2008-07-15 Thread Stephens, Larry V
with Javascript Couldn't you make a Preload file that runs the JS code setting everything else up before you run the body of the code? On Tue, Jul 15, 2008 at 11:40 AM, Stephens, Larry V [EMAIL PROTECTED] wrote: I'm working on a church site and there's some concern about the size of the screen versus

Re: (ot) javascript problem

2008-07-12 Thread Sonny Savage
I use this: http://tredosoft.com/Multiple_IE You can install 3.0 through 6.0 as stand-alone. I then have IE 7 as my system install. On Fri, Jul 11, 2008 at 6:30 PM, Claude Schneegans [EMAIL PROTECTED] wrote: You might want to take a look at IE7 stand alone. I will sure do. Thanks. --

Re: (ot) javascript problem

2008-07-11 Thread Claude Schneegans
You can try this. http://www.debugbar.com/ Hi, are you using it yourself? I tried it, there are a lot of interesting options, however two main flaws: 1º the error message is still the same stupidity: - it does not give the true file name the error occurs, - it gives the line number, but

Re: (ot) javascript problem

2008-07-11 Thread Gerald Guido
Actually I have it installed but I rarely use IE except for cross browser css issues. (i.e. after I work out all the gremlins using Firebug). I have yet to run into a IE only JS bug. Here try CompanionJS. It is geared more toward JS debugging: http://www.my-debugbar.com/wiki/CompanionJS/HomePage

Re: (ot) javascript problem

2008-07-11 Thread Claude Schneegans
Actually I have it installed but I rarely use IE except for cross browser css issues. I see. In my case, most my Javascript is used in my CMS used by administrators, and none of them use FF, so developing for IE is a must. -- ___ REUSE CODE! Use custom tags

Re: (ot) javascript problem

2008-07-11 Thread Gerald Guido
. In my case, most my Javascript is used in my CMS used by administrators, and none of them use FF, so developing for IE is a must. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam

Re: (ot) javascript problem

2008-07-11 Thread Claude Schneegans
Did you try CompanionJS? I think it is just what you need. Ah ha! Now this looks better ;-) Thanks. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED])

RE: (ot) javascript problem

2008-07-11 Thread Stephens, Larry V
Subject: Re: (ot) javascript problem You can try this. http://www.debugbar.com/ Hi, are you using it yourself? I tried it, there are a lot of interesting options, however two main flaws: 1º the error message is still the same stupidity: - it does not give the true file name the error occurs

Re: (ot) javascript problem

2008-07-11 Thread Gerald Guido
I haven't worked with DebugBar itself, yet, but Companion.JS that works with it was helpful in my case - not perfect but helpful. (Better than nothing, certianly.) If you are not already aware of it, the tool of choice for many developers is Firebug: http://getfirebug.com/ It is absolutely

Re: (ot) javascript problem

2008-07-11 Thread Claude Schneegans
Companion.JS that works with it was helpful in my case - not perfect but helpful. (Better than nothing, certianly.) I tried it, but unfortunately it requires the MS debugger, and for some reason, I've never been able to get this piece od ?%$! to work under IE6. All I get is a new window with

Re: (ot) javascript problem

2008-07-11 Thread Gerald Guido
You might want to take a look at IE7 stand alone. It allows you to run IE 6 and 7 on the same machine. http://tredosoft.com/IE7_standalone I need to support both IE 6 and 7. This allows you to run both side by side. Very handy. ~G~ On Fri, Jul 11, 2008 at 4:57 PM, Claude Schneegans [EMAIL

Re: (ot) javascript problem

2008-07-11 Thread Claude Schneegans
You might want to take a look at IE7 stand alone. I will sure do. Thanks. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks.

RE: (ot) javascript problem

2008-07-09 Thread Stephens, Larry V
On Tue, Jul 8, 2008 at 6:42 AM, Stephens, Larry V wrote: I'm using a DHTML javascript menu (from DynamicDrive) that works fine in Mozilla (shows no errors in the error console). The sample works fine in IE but my revision (no Thanks again for all the suggestions. I figured it out by taking

(ot) javascript problem

2008-07-08 Thread Stephens, Larry V
I'm using a DHTML javascript menu (from DynamicDrive) that works fine in Mozilla (shows no errors in the error console). The sample works fine in IE but my revision (no revision to code other than adding menu elements) won't even show up in IE. I see an error icon but it tells me absolutely

Re: (ot) javascript problem

2008-07-08 Thread Gerald Guido
You can try this. http://www.debugbar.com/ On Tue, Jul 8, 2008 at 8:42 AM, Stephens, Larry V [EMAIL PROTECTED] wrote: I'm using a DHTML javascript menu (from DynamicDrive) that works fine in Mozilla (shows no errors in the error console). The sample works fine in IE but my revision

RE: (ot) javascript problem

2008-07-08 Thread Adrian Lynch
If things aren't working after you made a change, show us a before and after sample of the code. Adrian -Original Message- From: Stephens, Larry V [mailto:[EMAIL PROTECTED] Sent: 08 July 2008 13:43 To: CF-Talk Subject: (ot) javascript problem I'm using a DHTML javascript menu (from

Re: (ot) javascript problem

2008-07-08 Thread Claude Schneegans
Any clues on how to trace javascript errors in IE? Error messages in IE are simply retarded. The error could be in any file, and it does not even give the file name. Furthermore, the line number is always one unit higher. Then your error must be in one of the included files, at line 347

RE: (ot) javascript problem

2008-07-08 Thread Stephens, Larry V
Thanks - installing now. -Original Message- From: Gerald Guido [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2008 8:58 AM To: CF-Talk Subject: Re: (ot) javascript problem You can try this. http://www.debugbar.com/ On Tue, Jul 8, 2008 at 8:42 AM, Stephens, Larry V [EMAIL PROTECTED

Re: (ot) javascript problem

2008-07-08 Thread Loathe
, and VS will give you better information, and take you directly to the offending bit of JS. Stephens, Larry V wrote: I'm using a DHTML javascript menu (from DynamicDrive) that works fine in Mozilla (shows no errors in the error console). The sample works fine in IE but my revision

RE: (ot) javascript problem

2008-07-08 Thread Andy Matthews
the include call with an actual script block. Then IE might tell you where in that file the error is. andy -Original Message- From: Stephens, Larry V [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2008 7:43 AM To: CF-Talk Subject: (ot) javascript problem I'm using a DHTML

Re: (ot) javascript problem

2008-07-08 Thread denstar
Look for a trailing comma in a javascript array perhaps? That one gets me in IE every once in a while. On Tue, Jul 8, 2008 at 6:42 AM, Stephens, Larry V wrote: I'm using a DHTML javascript menu (from DynamicDrive) that works fine in Mozilla (shows no errors in the error console). The sample

RE: (ot) javascript problem

2008-07-08 Thread Stephens, Larry V
On Tue, Jul 8, 2008 at 6:42 AM, Stephens, Larry V wrote: I'm using a DHTML javascript menu (from DynamicDrive) that works fine in Mozilla (shows no errors in the error console). The sample works fine in IE but my revision (no Thanks for all the suggestions. I installed the debug bar

Re: (ot) javascript problem

2008-07-08 Thread denstar
a DHTML javascript menu (from DynamicDrive) that works fine in Mozilla (shows no errors in the error console). The sample works fine in IE but my revision (no Thanks for all the suggestions. I installed the debug bar that was recommended and, on the same site, saw .Jscript (I think that's

Re: Looking for javascript expert and CF professional worker

2008-06-15 Thread Larry C. Lyons
What people have been saying about this topic are best set of arguments for getting requirements docs before anything is coded.That has saved me more than once. regards, larry On Sat, Jun 14, 2008 at 9:41 PM, James Holmes [EMAIL PROTECTED] wrote: Especially putting together the last couple of

RE: Looking for javascript expert and CF professional worker

2008-06-15 Thread Bobby Hartsfield
+1 ..:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com http://cf4em.com -Original Message- From: Larry C. Lyons [mailto:[EMAIL PROTECTED] Sent: Sunday, June 15, 2008 3:15 PM To: CF-Jobs-Talk Subject: Re: Looking for javascript expert and CF professional worker What people

Re: Looking for javascript expert and CF professional worker

2008-06-13 Thread Phillip M. Vector
: Phillip Vector [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2008 4:33 PM To: CF-Jobs-Talk Subject: Re: Looking for javascript expert and CF professional worker Is it just me or does this sound like a scam to anyone else? On Wed, Jun 11, 2008 at 1:29 PM, Alex Snowden [EMAIL PROTECTED

(ot) javascript help

2008-06-11 Thread Chad Gray
Can any javascript gurus tell me why this does not work? I want the br tag to display on the page so I get a carriage return between the two pieces of text Foo and Moo. I get this error in Firbug: document.tabbedTicket.FTDTYPEe has no properties script function makeNewEntry

Re: (ot) javascript help

2008-06-11 Thread Barney Boisvert
try document.getElementById(FTDTYPEe). And then go get some library that will take care of all that for you (jQuery, Prototype, etc.). cheers, barneyb On Wed, Jun 11, 2008 at 10:34 AM, Chad Gray [EMAIL PROTECTED] wrote: Can any javascript gurus tell me why this does not work? I want the br

Re: (ot) javascript help

2008-06-11 Thread Greg Morphis
because br isn't an element of form? try removing the tabbedTicket or use getElementById On Wed, Jun 11, 2008 at 12:34 PM, Chad Gray [EMAIL PROTECTED] wrote: Can any javascript gurus tell me why this does not work? I want the br tag to display on the page so I get a carriage return between

RE: (ot) javascript help

2008-06-11 Thread Dawson, Michael
I may be way off-base, but do you need that trailing e in FTDTYPEe? Could it be the missing e from Firbug? m!ke On Wed, Jun 11, 2008 at 10:34 AM, Chad Gray [EMAIL PROTECTED] wrote: Can any javascript gurus tell me why this does not work? I want the br tag to display on the page so I get

RE: (ot) javascript help

2008-06-11 Thread Andy Matthews
) javascript help Can any javascript gurus tell me why this does not work? I want the br tag to display on the page so I get a carriage return between the two pieces of text Foo and Moo. I get this error in Firbug: document.tabbedTicket.FTDTYPEe has no properties script function makeNewEntry

Re: (ot) javascript help

2008-06-11 Thread Josh Nathanson
Message - From: Chad Gray [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Wednesday, June 11, 2008 10:34 AM Subject: (ot) javascript help Can any javascript gurus tell me why this does not work? I want the br tag to display on the page so I get a carriage return between

RE: (ot) javascript help

2008-06-11 Thread Chad Gray
Ah... that makes sense. Thanks everyone for the help! -Original Message- From: Greg Morphis [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2008 1:39 PM To: CF-Talk Subject: Re: (ot) javascript help because br isn't an element of form? try removing the tabbedTicket or use

javascript to call cffunction

2008-05-20 Thread Richard White
hi i need to have some form of ajax in an application by being able to call a cffunction on the server from javascript on the client, and then to have that cffunction return a value that javascript can then use i would be grateful of any suggestions about the best way of doing this. i have

Re: javascript to call cffunction

2008-05-20 Thread Charlie Griefer
On Tue, May 20, 2008 at 11:43 AM, Richard White [EMAIL PROTECTED] wrote: hi i need to have some form of ajax in an application by being able to call a cffunction on the server from javascript on the client, and then to have that cffunction return a value that javascript can then use i

Re: javascript to call cffunction

2008-05-20 Thread Richard White
excellent, thanks Charlie your right, for now its just simple and straightforward but in the future we will need to be looking to do much more complex tasks so im glad you think jquery is good. i will be looking into that more later but for now look intp jsmx thanks again On Tue, May 20,

Re: javascript to call cffunction

2008-05-20 Thread Azadi Saryev
to have some form of ajax in an application by being able to call a cffunction on the server from javascript on the client, and then to have that cffunction return a value that javascript can then use i would be grateful of any suggestions about the best way of doing this. i have heard

(ot) Javascript Question...

2008-05-16 Thread Che Vilnonis
I have a form that posts to itself. Once submitted, I create a dynamic url on the fly. Using javascript, how can I submit the form to itself and open the new url in another browser window? Can this be done w/o creating a 'go between' cf template? Thanks, Che

RE: (ot) Javascript Question...

2008-05-16 Thread Bobby Hartsfield
window.open() most popup blockers will block it though. ..:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com http://cf4em.com -Original Message- From: Che Vilnonis [mailto:[EMAIL PROTECTED] Sent: Friday, May 16, 2008 4:14 PM To: CF-Talk Subject: (ot) Javascript Question

RE: (ot) Javascript Question...

2008-05-16 Thread Che Vilnonis
Thanks. Because of popup blockers I guess a regular href will have to do. -Original Message- From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] Sent: Friday, May 16, 2008 4:21 PM To: CF-Talk Subject: RE: (ot) Javascript Question... window.open() most popup blockers will block it though

Javascript function not defined

2008-04-28 Thread Phillip Vector
When I load the page, no javascript errors.. When I type something in the box, I get a employ is not defined.. Yes it is... it's right freakin there. :) I realize I must be missing something obvious... Any ideas? script type=text/javascript function employ() { xmlHttp

RE: Javascript function not defined

2008-04-28 Thread Dave Watts
When I load the page, no javascript errors.. When I type something in the box, I get a employ is not defined.. Yes it is... it's right freakin there. :) I realize I must be missing something obvious... Any ideas? script type=text/javascript function employ() { xmlHttp

RE: Javascript function not defined

2008-04-28 Thread Adrian Lynch
It's not the function that's not found, it's GetXmlHttpObject. Adrian -Original Message- From: Phillip Vector [mailto:[EMAIL PROTECTED] Sent: 28 April 2008 18:19 To: CF-Talk Subject: Javascript function not defined When I load the page, no javascript errors.. When I type something

Re: Javascript function not defined

2008-04-28 Thread Azadi Saryev
Phillip Vector wrote: I realize I must be missing something obvious... like a ; after xmlHttp=GetXmlHttpObject() ? just a guess... Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ ~| Adobe® ColdFusion® 8 software 8 is

Re: Javascript function not defined

2008-04-28 Thread JJ Cool
: Monday, April 28, 2008 1:18:30 PM Subject: Javascript function not defined When I load the page, no javascript errors.. When I type something in the box, I get a employ is not defined.. Yes it is... it's right freakin there. :) I realize I must be missing something obvious... Any ideas? script

Re: Javascript function not defined

2008-04-28 Thread Phillip Vector
Here is the full code (with some fixes). I still get the same error... script type=text/javascript // Set variable for AJAX var xmlHttp; // Load in the AJAX object based on what browser you have function GetXmlHttpObject() { var xmlHttp=null; try

RE: Javascript function not defined

2008-04-28 Thread Dave Watts
// Load in the AJAX object based on what browser you have function GetXmlHttpObject() In the code snippet you posted, this was all on one single line. Is it that way in your actual code? If so, there won't be any function called GetXmlHttpObject, and the code block that corresponds to the

Re: Javascript function not defined

2008-04-28 Thread Phillip Vector
No. Please see the full code posting.. There's more below it. On Mon, Apr 28, 2008 at 10:44 AM, Dave Watts [EMAIL PROTECTED] wrote: // Load in the AJAX object based on what browser you have function GetXmlHttpObject() ~|

Re: Javascript function not defined

2008-04-28 Thread JJ Cool
I assumed stateChanged was a variable. If it is a function call, need the parenthesis. xmlHttp.onreadystatechange=stateChanged(); Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try

RE: Javascript function not defined

2008-04-28 Thread Dave Watts
No. Please see the full code posting.. There's more below it. I know there's more below it. However, in what you posted, the keyword function is on the same line as your comment. If this is what you have in your actual code, that won't work. I just copied and pasted the two relevant lines.

Re: Javascript function not defined

2008-04-28 Thread Phillip Vector
Ah... As I emailed, it isn't on the same line. Sorry for the confusion. :) On Mon, Apr 28, 2008 at 10:55 AM, Dave Watts [EMAIL PROTECTED] wrote: No. Please see the full code posting.. There's more below it. I know there's more below it. However, in what you posted, the keyword

Re: Javascript function not defined

2008-04-28 Thread JJ Cool
The code you pasted works fine for me as long as the span is there. script type=text/javascript // Set variable for AJAX var xmlHttp; // Load in the AJAX object based on what browser you have function GetXmlHttpObject() { var xmlHttp=null; try { // Firefox, Opera 8.0+, Safari

Re: Javascript function not defined

2008-04-28 Thread Phillip Vector
=text/javascript // Set variable for AJAX var xmlHttp; // Load in the AJAX object based on what browser you have function GetXmlHttpObject() { var xmlHttp=null; try { // Firefox, Opera 8.0+, Safari xmlHttp=new XMLHttpRequest(); } catch (e

Populating form text fields with javascript

2008-04-28 Thread Phillip Vector
I finally got the AJAX working (Scriptacilious was messing up something with it) and now, I have another issue.. I get the popup list of employers. I'd like to be able to click on the name of one and populate the name, address and city fields of the form WITHOUT submitting it. I thought about

RE: Populating form text fields with javascript

2008-04-28 Thread Dave Watts
). Then, of course, you'll have some JavaScript to populate the SELECT: script function populateEmployer() { var emp = document.forms[0].employer; for (var i = 0; i rsEmployers.name.length; i++) { emp.options[emp.options.length] = new Option(rsEmployers.name[i], i

Re: JavaScript cftextarea with rich text

2008-04-23 Thread Brian Love
Steve: The rich text editor that CF8 uses is FCKEditor. You should read up on the JavaScript API to determine how to get the value located here: http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/JavaScript_API You will of course first need to obtain the underlying FCKEditor instance

Re: JavaScript cftextarea with rich text

2008-04-23 Thread Jarlath Gallagher
Hi, If you use the javascript API @ http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/JavaScript_API#FCKeditor_JavaScript_API you can use a method called editorinstancename.GetHtml(); this will give you the inner html from the editor. you can write this to a variable and check

Re: JavaScript cftextarea with rich text

2008-04-23 Thread Kris Jones
for the body of your story.'); return false; } Cheers, Kris I am trying to check whether or not a rich text textarea has a value in JavaScript. On a normal textarea box I can just use the elementname.value == '' but that is not working when I have rich text turned

Re: JavaScript cftextarea with rich text

2008-04-23 Thread Steve Sequenzia
is required'); } } Works like a champ. Thanks again! I am trying to check whether or not a rich text textarea has a value in JavaScript. On a normal textarea box I can just use the elementname. value == '' but that is not working when I have rich text turned on. Anyone have any

Writing content to a cfwindow from JavaScript

2008-04-22 Thread Steve Sequenzia
I am creating a cfwindow from JS with this: ColdFusion.Window.create('testwindow', 'This is a test'); I also need to be able to write content to the window from JavaScript. That will include JavaScript variables. I have tried doing it with this: elementName_body.innerHTML='This is the body

JavaScript cftextarea with rich text

2008-04-22 Thread Steve Sequenzia
I am trying to check whether or not a rich text textarea has a value in JavaScript. On a normal textarea box I can just use the elementname.value == '' but that is not working when I have rich text turned on. Anyone have any ideas how to check it when rich text is on? Thanks

[OT] New JavaScript Date Library - comments/testing appreciated

2008-04-14 Thread Jim Davis
Well - not really a new one, but an addition to my old one: http://www.depressedpress.com/Content/Development/JavaScript/Extensions/DP_DateExtensions/Index.cfm I've added a parseFormat() method that works similar to the Java SimpleDateFormat method. You give the method a string (a date

Re: javascript and cfinput manipulation

2008-03-31 Thread RICHARD SIMPSON
Hi list, I cant get to a solution of the following problem. I have a cfinput-field like: a) cfinput type=text name=billing_contact required=no or b) cfinput type=text name=billing_contact required=yes A javascript should manipulate the cfinput either like: required=yes or required=no How can I

Re: javascript and cfinput manipulation

2008-03-31 Thread Azadi Saryev
Degenhardt wrote: Hi list, I cant get to a solution of the following problem. I have a cfinput-field like: a) cfinput type=text name=billing_contact required=no or b) cfinput type=text name=billing_contact required=yes A javascript should manipulate the cfinput either like: required=yes

javascript and cfinput manipulation

2008-03-28 Thread Uwe Degenhardt
Hi list, I cant get to a solution of the following problem. I have a cfinput-field like: a) cfinput type=text name=billing_contact required=no or b) cfinput type=text name=billing_contact required=yes A javascript should manipulate the cfinput either like: required=yes or required=no How can I

mxAjax: Javascript Error

2008-03-16 Thread Scott Stewart
) { prototype.js (line 1966) here's my code: script type='text/javascript' src='mxAjax/core/js/prototype.js? jsVersion=#request.jsVersion#'/script script type='text/javascript' src='mxAjax/core/js/mxAjax.js? jsVersion=#request.jsVersion#'/script script type='text/javascript' src='mxAjax/core/js

Same inline javascript works and not working

2008-02-18 Thread Don L
The following cf and js code works fine with both IE7 and FF2 (as you can see it does auto expand of textarea so that the user can view all the data input) cfparam name=rowNum default=3 cfform name=cap id=auto action=#CGI.script_name#? method=post cftextarea name=yourWords id=noteid2 cols=70

RE: Same inline javascript works and not working

2008-02-18 Thread William Seiter
Don, I am curious, you are referring to the id in the javascript by absolute name. Have you tried replacing all of the ' document.getElementById('noteid2')' references with 'this'? If there is an issue with the noteid2 not being unique, or any other issue with the id-ing of the element

Re: Same inline javascript works and not working

2008-02-18 Thread Jeff Price
You don't have your cftextarea closed. You also don't need the javascript: at the start of the onKeyDown event. Take out those two and it should work like a charm. -jeff The following cf and js code works fine with both IE7 and FF2 (as you can see it does auto expand of textarea so

Re: Same inline javascript works and not working

2008-02-18 Thread Don L
Jeff, I clearly forgot to copy over the cftextarea end tag. tks for your time. You don't have your cftextarea closed. You also don't need the javascript: at the start of the onKeyDown event. Take out those two and it should work like a charm. -jeff

Re: Same inline javascript works and not working

2008-02-18 Thread Don L
Don, I am curious, you are referring to the id in the javascript by absolute name. Have you tried replacing all of the ' document.getElementById('noteid2')' references with 'this'? If there is an issue with the noteid2 not being unique, or any other issue with the id-ing of the element

RE: Same inline javascript works and not working

2008-02-18 Thread William Seiter
the /cftextarea close tag, then that may be causing the issue. 2. If javascript does not report an error, then the Javascript is either 'running without issue' which means that the command += 1 isn't being accepted, but is correct syntax. OR the command wasn't run at all, which could mean

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