Re: javascript help

2007-09-28 Thread Charlie Griefer
this works in Firefox on XP. not tested beyond that: script type=text/javascript for (var i=0; idocument.getElementsByTagName('a'); i++) { document.getElementsByTagName('a')[i].removeAttribute('href'); } /script On 9/28/07, Chad Gray [EMAIL PROTECTED] wrote: I

Re: javascript help

2007-09-28 Thread Scott Weikert
Chad Gray wrote: I am taking a page and sending it to CFDocument for a PDF. Is there a way to kill all hyper links on the page so there are no hyperlinks in the PDF? Why is this a Javascript question? Just do some regex fun on your output content, stripping all anchor tags, before

Re: javascript help

2007-05-29 Thread James Wolfe
hey guys i have a little window with a link on it opened up a popup window and gave it a name. the new window also has frames in it. I would like to manipulate the forms in that frame, like giving it certain values and stuff, by calling it from the little window. how do I do that? so

RE: javascript help

2007-05-29 Thread Andy Matthews
I believe that you have to reference the frame as an array index, similar to the way you can reference form elements. -Original Message- From: Dan Munez [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 29, 2007 9:12 AM To: CF-Talk Subject: OT: javascript help hey guys i have a little window

Re: javascript help

2007-05-29 Thread Tom Chiverton
On Tuesday 29 May 2007, Andy Matthews wrote: I believe that you have to reference the frame as an array index, similar to the way you can reference form elements. Get firefox. Get the firebug extension. Set a break point and poke around the DOM :-) -- Tom Chiverton Helping to confidentially

RE: Javascript help

2006-12-22 Thread Dave Watts
Well since we are being smart asses... the question was how can I clear either one when I click on any one of the radio buttons. One person's smart ass is another's stickler for accuracy. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest

RE: Javascript help

2006-12-22 Thread Bobby Hartsfield
And here I was thinking you had no sense of humor ;-) -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Friday, December 22, 2006 10:43 AM To: CF-Talk Subject: RE: Javascript help Well since we are being smart asses... the question was how can I clear either one

RE: Javascript help

2006-12-21 Thread Bobby Hartsfield
On the radio button... Onclick=document.myform.mytextfield.value=''; If you are saying you want to clear both text fields Onclick=document.myform.mytextfield.value=''; document.myform.myothertextfield.value=''; -Original Message- From: Doug Brown [mailto:[EMAIL PROTECTED] Sent:

Re: Javascript help

2006-12-21 Thread Doug Brown
This seems to work, but will it work in all browser? onFocus=document.updClassified.asking1.value = '',document.updClassified.asking2.value = '' Doug B. ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe

RE: Javascript help

2006-12-21 Thread loathe
1. Don't use on focus, use on click. Users (well power users) and the disabled tab through form fields, and if you do on focus it will empty to form field even if they don't want to. 2. When dealing with multiple fields I would recommend your using a function in a script block kicked off by the

RE: Javascript help

2006-12-21 Thread loathe
PROTECTED] Sent: Thursday, December 21, 2006 3:51 PM To: CF-Talk Subject: Re: Javascript help This seems to work, but will it work in all browser? onFocus=document.updClassified.asking1.value = '',document.updClassified.asking2.value = '' Doug B

Re: Javascript help

2006-12-21 Thread Charlie Griefer
Subject: Re: Javascript help This seems to work, but will it work in all browser? onFocus=document.updClassified.asking1.value = '',document.updClassified.asking2.value = '' Doug B. ~| Create robust enterprise

RE: Javascript help

2006-12-21 Thread loathe
, 2006 3:51 PM To: CF-Talk Subject: Re: Javascript help This seems to work, but will it work in all browser? onFocus=document.updClassified.asking1.value = '',document.updClassified.asking2.value = '' Doug B

RE: Javascript help

2006-12-21 Thread loathe
Also your using a comma and not a semi colon, sorry forgot to add that. -Original Message- From: loathe [mailto:[EMAIL PROTECTED] Sent: Thursday, December 21, 2006 4:07 PM To: CF-Talk Subject: RE: Javascript help No it won't. For that you'll need a function and you'll need

Re: Javascript help

2006-12-21 Thread Charlie Griefer
, but will calling the field that way work cross browser? I don't know, I still write it using different techniques. -Original Message- From: Charlie Griefer [mailto:[EMAIL PROTECTED] Sent: Thursday, December 21, 2006 4:09 PM To: CF-Talk Subject: Re: Javascript help That should work

Re: Javascript help

2006-12-21 Thread Christopher Jordan
Check out jQuery. This sort of thing would be a snap in jQuery (http://jQuery.com). Doug Brown wrote: I have a form with 2 text fields and some radio button, and what I would like to do is clear any text in the text fields if any of the radio buttons are selected. I can do this with one

RE: Javascript help

2006-12-21 Thread Bobby Hartsfield
document.forms['myform']['myfield'] .value -Original Message- From: Charlie Griefer [mailto:[EMAIL PROTECTED] Sent: Thursday, December 21, 2006 4:23 PM To: CF-Talk Subject: Re: Javascript help i'm pretty sure it'll work. but of course i say that and invariably someone comes along and proves

RE: Javascript help

2006-12-21 Thread Dave Watts
document.formname.fieldname.value is about as standard as it gets AFAIK. Yes, it is as vanilla as it gets and easiest for most people to read and understand. But if you'd like to make it NOT work in all browsers that can read JS you can try some of these lol

RE: Javascript help

2006-12-21 Thread Bobby Hartsfield
To: CF-Talk Subject: RE: Javascript help document.formname.fieldname.value is about as standard as it gets AFAIK. Yes, it is as vanilla as it gets and easiest for most people to read and understand. But if you'd like to make it NOT work in all browsers that can read JS you can try some

RE: Javascript help

2006-12-21 Thread Dave Watts
You can stack arguments that way, but will calling the field that way work cross browser? Yes, there's nothing wrong with having multiple statements within an event handler, other than readability. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the

RE: Javascript help

2006-12-21 Thread Dave Watts
This seems to work, but will it work in all browser? onFocus=document.updClassified.asking1.value = '',document.updClassified.asking2.value = '' No it won't. For that you'll need a function and you'll need to write a javascript browser diction script and have separate clauses

RE: Javascript help

2006-12-21 Thread Dave Watts
I don't consider Netscape 2 (or IE pre 5) when I use the phrase 'cross browser compatible'. Especially when dealing with JS and/or CSS. I thought the question was, what is the most compatible way to address a form in JS, not what browsers do you prefer to disregard? Right now, the answer to

RE: Javascript help

2006-12-21 Thread Bobby Hartsfield
Well since we are being smart asses... the question was how can I clear either one when I click on any one of the radio buttons. -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Thursday, December 21, 2006 7:34 PM To: CF-Talk Subject: RE: Javascript help I don't

Re: Javascript help

2006-06-13 Thread Bryan Stevenson
Hey Mike...you may have more luck on a list about technical issues and not CF-JOBS-TALK ;-) Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: [EMAIL PROTECTED] web:

Re: Javascript help

2006-06-13 Thread AVK: Web4W3 Inc.
style should be handled as property: style2*.borderWidth* = '1px'; Mik Muller wrote: I'm trying to add some functionality to a stylesheet editor. I'd like the style that the editor is working on to highlight the page area it will effect. This is what I have, but it only works on style IDs

RE: Javascript help

2006-04-20 Thread Bobby Hartsfield
The onclicks are outside of the loop ..:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Ben Nadel [mailto:[EMAIL PROTECTED] Sent: Thursday, April 20, 2006 9:35 AM To: CF-Talk Subject: OT: Javascript help Not really for CF, but though

RE: Javascript help

2006-04-20 Thread Ben Nadel
. ... Ben Nadel www.bennadel.com -Original Message- From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] Sent: Thursday, April 20, 2006 10:06 AM To: CF-Talk Subject: RE: Javascript help The onclicks are outside of the loop ...:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com

RE: Javascript help

2006-04-20 Thread Bobby Hartsfield
Maybe I'll get caffeine in me before I answer the next one. I'll take a closer look ;-) ..:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Ben Nadel [mailto:[EMAIL PROTECTED] Sent: Thursday, April 20, 2006 9:35 AM To: CF-Talk Subject: OT:

Re: Javascript help

2006-04-20 Thread Rob Wilkerson
www.bennadel.com -Original Message- From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] Sent: Thursday, April 20, 2006 10:06 AM To: CF-Talk Subject: RE: Javascript help The onclicks are outside of the loop ...:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original

RE: Javascript help

2006-04-20 Thread Bobby Hartsfield
Is this what you were going for? html body div id=mainContainer/div /body /html script for (IntI = 0; IntI 10; IntI++) { divCont = document.createElement('DIV'); divCont.id = 'div' + IntI;

RE: Javascript help

2006-04-20 Thread Bobby Hartsfield
PS... in your original code It's like they all point to one variable and then get updated for each loop of the FOR iteration They do. Each of your onclicks triggered the same function that alerted the same variable. The last time the variable was set, it was 10. So they are all 10.

RE: Javascript help

2006-04-20 Thread Ben Nadel
to a string, which works for simple values, but will not work with complex values. ... Ben Nadel www.bennadel.com -Original Message- From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] Sent: Thursday, April 20, 2006 10:49 AM To: CF-Talk Subject: RE: Javascript help

RE: Javascript help

2006-04-20 Thread Bobby Hartsfield
, 2006 11:01 AM To: CF-Talk Subject: RE: Javascript help Bobby, I cannot seem to get the onCLick to fire in my browser. Granted I am using IE in Homesite. But, my concern with this solution is that I feel (without testing) that it is string dependent. divCont.setAttribute('onClick', 'alert

RE: Javascript help.

2005-12-06 Thread Bobby Hartsfield
function selTA() { document.formname.fieldname.focus(); } window.onload = selTA; ..:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: J W [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 06, 2005 2:24 PM To: CF-Talk Subject: OT:

RE: Javascript help.

2005-12-06 Thread Bobby Hartsfield
: RE: Javascript help. function selTA() { document.formname.fieldname.focus(); } window.onload = selTA; ...:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: J W [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 06, 2005 2:24 PM To: CF-Talk

RE: Javascript help.

2005-12-06 Thread Bobby Hartsfield
-Original Message- From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 06, 2005 2:38 PM To: CF-Talk Subject: RE: Javascript help. Hmmm guess that only places the cursor at the beginning in IE... gimmee a minute :) ...:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http

Re: Javascript help.

2005-12-06 Thread J W
Well thats interesting, I have been testing in Firefox all day. S I fired up the code in IE and noticed a difference. IE. Works just fine. Cusor at Top Firefox. Focus is set, but cursor is set at the end of text. So focus alone doesn't gurantee that the cursor will be at the beginning of the

Re: Javascript help.

2005-12-06 Thread J W
; } window.onload = selTA; /script ..:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 06, 2005 2:38 PM To: CF-Talk Subject: RE: Javascript help. Hmmm guess that only places

RE: JAVASCRIPT help

2004-06-29 Thread Pascal Peters
Keep in mind the value property of a select is not supported on all browsers. I usually consider a textbox/textarea empty if there are only spaces (I usually trim the values anyway. Also keep in mind that title and target are properties of the form. To avoid mixing up formfields and properties, I

Re: JAVASCRIPT help

2004-06-28 Thread mavinson
function checkForm() { var title= document.myForm.title.value; var story= document.myForm.story.value; var link= document.myForm.link.value; var target= document.myForm.target.value; var fbString = ''; if (title == '') fbString = fbString + You must enter a title\n; if (story == '') fbString

Re: JAVASCRIPT help

2004-06-28 Thread Asim Manzur
Thanks Mike, That works great. What if the user change the value of the target from to _self or _blank then I need to display the msg to put the Link as well. thanks [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

RE: Javascript Help Required

2003-12-30 Thread MILAN MUSHRAN
You have a Syntax error... You missed the double quotes on the first image. b1.src = ""> From: Shahzad.Butt [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Subject: _javascript_ Help Required Date: Tue, 30 Dec 2003 11:40:34 - Hi I am using following script to

RE: Javascript Help Required

2003-12-30 Thread Shahzad.Butt
That must be a mistake writing email however my code works fine. Only problem is that I dont know how to keep the image active (Red One) when a link is active. _ From: MILAN MUSHRAN [mailto:[EMAIL PROTECTED] Sent: 30 December 2003 14:10 To: CF-Talk Subject: RE: _javascript_ Help Required

MY BAD! - RE: JavaScript Help Required

2003-12-30 Thread lee
This is to the _javascript_ problem, _javascript_ Help Required Sorry for the accidental thread start [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

RE: Javascript Help

2003-12-18 Thread Matthew Walker
test,test1,test2,test3.split(',') will create an array -Original Message- From: Andrew Scott [mailto:[EMAIL PROTECTED] Sent: Friday, 19 December 2003 3:03 p.m. To: CF-Talk Subject: _javascript_ Help Looking for any help in being able to do the following. I am looking at a string

RE: Javascript Help

2003-12-18 Thread Michael T. Tangorre
I would use the function called split() which makes an array based on a delimiter passed in (in your case the comma). Then you can loop over the array or access the elements as you need: var x = 'test1,test2,test3,test4'; arElements = x.split(','); would result in... arElements[0] =

RE: Javascript Help

2003-12-18 Thread Andrew Scott
Thanks works a treat Regards Andrew Scott Technical Consultant NuSphere Pty Ltd Level 2/33 Bank Street South Melbourne, Victoria, 3205 Phone: 03 9686 0485-Fax: 03 9699 7976 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

RE: JavaScript Help - PLEASE!

2002-08-09 Thread Philip Arnold - ASP
I'm in a bit of a quandary here, and was hoping that some if the brilliant minds on this list could offer some insight. CF_SNIP Questions: Is there any way to spoof the DOM into thinking that the first form on the page is document.form[100]? (Can you override how the DOM indexes objects in

Re: javascript help

2002-07-18 Thread Douglas Brown
script language=javascript function populateHiddenField(){ document.forms[0].hTEXT.value = whatever; } form action=myPage.cfm method=post onClick=return populateHiddenField(); Douglas Brown Email: [EMAIL PROTECTED] - Original Message - From: Corey Yiap [EMAIL PROTECTED] To: CF-Talk

RE: javascript help

2002-07-18 Thread Corey Yiap
Thanks Doug -Original Message- From: Douglas Brown [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 3:07 AM To: CF-Talk Subject: Re: javascript help script language=javascript function populateHiddenField(){ document.forms[0].hTEXT.value = whatever; } form action=myPage.cfm

Re: javascript help

2002-07-18 Thread Douglas Brown
] To: CF-Talk [EMAIL PROTECTED] Sent: Thursday, July 18, 2002 3:12 AM Subject: RE: javascript help Thanks Doug -Original Message- From: Douglas Brown [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 3:07 AM To: CF-Talk Subject: Re: javascript help script language=javascript

RE: Javascript help

2002-07-02 Thread Joshua Miller
In your action page (Frame 2) .. Cold fusion code ... scriptparent.framename.formname.fieldname.value='whatever';/script Or something very similar ... I didn't check the syntax, but that should give you a start. Joshua Miller Web Development :: Programming Eagle Web Development LLC

Re: Javascript Help

2002-01-10 Thread Don Vawter
d=new Date(); alert(d); d.setHours(d.getHours()+5); alert(d); - Original Message - From: clint [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Thursday, January 10, 2002 11:35 AM Subject: OT: Javascript Help I know this is off topic, but it kinda isn't. Can someone show me how

Re: JavaScript Help

2001-06-08 Thread Steve Reich
How do I get JavaScript to evaluate tdID into its true value and not think that I'm refering to an object named tdID? I recommend to anyone that uses javascript in there applications to join the JS-Jive mailing list (just send a blank email to [EMAIL PROTECTED]). The list has over 900

RE: JavaScript Help...

2000-10-03 Thread Gavin Lilley
Use Window.Open window.open(URL,Name,Param) eg... a href=## onClick="javascript:win('more.cfm?id=#primarykey_id#','lookup','scrollbars=y es,width=650,height=500')"Click Me!/a -- Gavin Lilley Internet / Intranet Developer Halesowen College Tel: 0121 550 1451 Ext: 330 -Original

RE: Javascript Help...

2000-10-03 Thread Top-Link Tech (John Ceci)
Neil, Ok, I dont have a code sample on hand but here is the process... 1. create a form on the original window with hidden variables of all the values you wish to pass, make sure the form has a name and a target set... 2. when you have the trigger action that is going to create the window,

RE: Javascript Help...

2000-10-03 Thread ron
I would like to pop a window via a javascript. This isn't a problem, I know how to pop a window. I don't want a toolbar and I want it to be a specific size. The problem is I want to pass form parameters to the page when I pop the window. I don't want to have url parameters. Any ideas

Re: Javascript Help...

2000-10-03 Thread Neil H.
Yeah, But if I do it that way how can I pop a window and send form parameters and the window not have a tool bar? neil - Original Message - From: [EMAIL PROTECTED] To: "CF-Talk" [EMAIL PROTECTED] Sent: Tuesday, October 03, 2000 12:01 PM Subject: RE: Javascript Help...

Re: Javascript Help...

2000-10-03 Thread Dean Alexandrou
From the popup, to change the location (or a variable or whatever) of the calling page you would use: // changes the location of the page that opened this popup window.opener.location.href="abc.html"; // changes a variable/object 'X' in the page that opened this popup window.opener.X="New

RE: javascript help

2000-08-30 Thread Dave Watts
I'm trying to develop a javascript validation for a textarea. I'm getting an error message which says "ProgramDescription.value" is not an object. === script language="javascript1.2" function validate(testform) { if (testform.ProgramDescription.value == " ")

Re: javascript help

2000-08-17 Thread Jamie Keane
Your cfform needs a name. If you're just using HTML forms, you'll still need a name for your form to access the form's contents. -- Jamie Keane Programmer SolutionMasters, Inc. 9111 Monroe Rd., Suite 100 Charlotte, NC 28270 www.solutionmasters.com 704.563.5559 x 228 Voice 704.849.9291 Fax

Re: javascript help

2000-08-17 Thread sebastian palmigiani
I found out that you can't really combine the ColdFusion form validation of cfinput with other javascripts validation. I mean there is not built in textarea CF validation. So I used an independent javascript validation for the textarea along with the CF built in validation and the independent