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
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
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
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
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
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
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
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:
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
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
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
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
, 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
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
, 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
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
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
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
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
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
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
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
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
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:
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
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
.
...
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
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:
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
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;
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.
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
, 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
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.
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
-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
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
;
}
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
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
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
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]
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
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
This is to the _javascript_ problem, _javascript_ Help Required
Sorry for the accidental thread start
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
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
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] =
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]
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
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
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
]
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
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
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
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
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
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,
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
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...
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
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 == " ")
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
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
62 matches
Mail list logo