Re: Easy JavaScript question

2009-04-28 Thread Michael Grant
You're very welcome. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-

Re: Easy JavaScript question

2009-04-28 Thread CFTodd
If the user is typing something other than what is expected to be found in the array then they are being naughty to begin with. Thanks for the new comparison code. That does the trick. Michael Grant wrote: > Best I can tell from a quick glance is that you are comparing the wrong > things. I th

Re: Easy JavaScript question

2009-04-28 Thread Michael Grant
Best I can tell from a quick glance is that you are comparing the wrong things. I think what you want to do is this: konami.indexOf( kkeys.toString() ) However the logic looks off to me. You just keep adding to the array without ever clearing it, so the array is going to get massive if the user

Easy JavaScript question

2009-04-28 Thread CFTodd
My javascript is WAY rusty. Coudl someone take a quick look at this and tell me what bonehead thing I am doing wrong? This works in FF, but not IE. if(window.addEventListener) { alert("ff detected"); var kkeys = [], konami = "38,38,40,40,37,39,37,39,66,65"; window.addEventL

Re: javascript question

2009-02-10 Thread Rastafari
ill respond later, but you are close, just not 100% on it. tw On Tue, Feb 10, 2009 at 10:48 AM, Michael Grant wrote: > > So let me see if I got this right. > > You have a left column which contains a bunch of checkboxes. A right column > with divs to display content. > When a checkbox is checke

Re: javascript question

2009-02-10 Thread Michael Grant
So let me see if I got this right. You have a left column which contains a bunch of checkboxes. A right column with divs to display content. When a checkbox is checked/unchecked you want the content div on the right to update and reflect what's been chosen. Is that all or is there a database upda

Re: javascript question

2009-02-09 Thread Rastafari
hahaha, all good manits hard to impart context sometimes, and if you were in front of me, you'd a been laughing while i asked the question. the reason being, i had been debugging my VERY FIRST ajax stuff for ~7 hrs, and you shouldnt try to pen an email at that point. hennyway. i am using ajaxCf

Re: javascript question

2009-02-09 Thread Michael Grant
Yw rasta, I mean no offence by over explaining. I don't know you or your skill sets very well and am just trying to help. Based on your most recent description of what it is you want I don't see why you need javascript at all. That being said I know js quite well and would be happy to help you wh

Re: javascript question

2009-02-09 Thread Rastafari
:) come on man, this is basic html/cf stuff i know this stuff... i guess im just a bit lost in the javascript side of things, and thats where im hungup... ill explain more later, im trying to figure some other things out now... but thank ye... i think your original reply will be the best help. t

Re: javascript question

2009-02-09 Thread Ian Skinner
Ian Skinner wrote: > What Mike and I have been trying to get across is that same names good, > same ids bad. Providing a group of check box or radio controls the same > name is the proper way to get the desired behavior you described. But > do not give them the same ids. Either leave the ids

Re: javascript question

2009-02-09 Thread Ian Skinner
Rastafari wrote: > how would i do this same easy thing without the same id/name? > > tw What Mike and I have been trying to get across is that same names good, same ids bad. Providing a group of check box or radio controls the same name is the proper way to get the desired behavior you describ

Re: javascript question

2009-02-09 Thread Michael Grant
It looks like you are confusing the input parameters "name" and "id." They are different. ID is part of the DOM and has nothing to do with forms specifically. You can't get the id value from a form when it's submitted to CF, only the name. That's what form.fieldNames consists of, names. I'm also

Re: javascript question

2009-02-09 Thread Rastafari
ok, first of all, thanks mike. second of all... how do you handle this then? i have a set of checkboxes that i want to get the value on the next page, via cfml. i also want them to be able to be checked as well as unchecked. and on my subsequent page, get to all of them. if i make them all the sa

Re: javascript question

2009-02-09 Thread Michael Grant
...or you could just loop through it like I said. Three lines of code, zing zing. Why does everyone always try to over complicate this stuff? > but in a situation where you only want one to be checkd > at a time, how else do you do that? Well radio buttons SHOULD have the same name. That's the wh

Re: javascript question

2009-02-09 Thread Ian Skinner
Rastafari wrote: > i get that you shouldnt have radio buttons with same name > but in a situation where you only want one to be checkd > at a time, how else do you do that? > > tw Different IDs, if they are required, but the same name. It is the name that is important for radio and check box co

Re: javascript question

2009-02-09 Thread Rastafari
k... thanks chowlee. ill be back with more questions :) tw On Mon, Feb 9, 2009 at 3:11 PM, Charlie Griefer wrote: > > On Mon, Feb 9, 2009 at 11:50 AM, Tony wrote: > >> >> i want that alert to tell me how many checkboxes with the >> id="updateFirmware" there are. >> its telling me that fields

Re: javascript question

2009-02-09 Thread Charlie Griefer
On Mon, Feb 9, 2009 at 11:50 AM, Tony wrote: > > i want that alert to tell me how many checkboxes with the > id="updateFirmware" there are. > its telling me that fields is null :( > > help. > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> > http://www.w3.org/1999/xhtml";> > > >

Re: javascript question

2009-02-09 Thread Rastafari
i get that you shouldnt have radio buttons with same name but in a situation where you only want one to be checkd at a time, how else do you do that? tw On Mon, Feb 9, 2009 at 3:01 PM, Michael Grant wrote: > > You're going to have to loop through form.elements and count them. Note, > this isn't

Re: javascript question

2009-02-09 Thread Michael Grant
Whoops, I think that should be "i wrote: > You're going to have to loop through form.elements and count them. Note, > this isn't tested and just off the top of my head. Can't remember if you > refer to id as "id" or "id.value", you might have to mess with it a bit. On > another note it's generall

Re: javascript question

2009-02-09 Thread Michael Grant
You're going to have to loop through form.elements and count them. Note, this isn't tested and just off the top of my head. Can't remember if you refer to id as "id" or "id.value", you might have to mess with it a bit. On another note it's generally bad to have multiple elements with the same id.

Re: javascript question

2009-02-09 Thread Michael Grant
Oh, I thought this was obvious, but maybe not. Replace "form" with the name of your form or with forms[x] where x is the number of the form on the page. On Mon, Feb 9, 2009 at 3:02 PM, Michael Grant wrote: > Whoops, I think that should be "i > > > On Mon, Feb 9, 2009 at 3:01 PM, Michael Grant

javascript question

2009-02-09 Thread Tony
i want that alert to tell me how many checkboxes with the id="updateFirmware" there are. its telling me that fields is null :( help. http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml";> Untitled Document var fields = document.getEl

RE: Javascript question

2007-10-19 Thread William Seiter
ead a book that changed your life? Go to: www.winninginthemargins.com Enter passkey: goldengrove Web Developer http://William.Seiter.com -Original Message- From: Charlie Griefer [mailto:[EMAIL PROTECTED] Sent: Friday, October 19, 2007 2:52 PM To: CF-Community Subject: Re: Javascript question you do

Re: Javascript question

2007-10-19 Thread Charlie Griefer
Boycott Sys-Con > > > -Original Message- > From: Charlie Griefer [mailto:[EMAIL PROTECTED] > Sent: Friday, October 19, 2007 5:17 PM > To: CF-Community > Subject: Re: Javascript question > > define "doesn't work"? :) > > are you testing this in

Re: Javascript question

2007-10-19 Thread morgan l
//www.sstwebworks.com > http://www.linkedin.com/in/sstwebworks > > Boycott Sys-Con > > > -Original Message- > From: Charlie Griefer [mailto:[EMAIL PROTECTED] > Sent: Friday, October 19, 2007 5:17 PM > To: CF-Community > Subject: Re: Javascript question > > d

RE: Javascript question

2007-10-19 Thread Scott Stewart
http://www.linkedin.com/in/sstwebworks Boycott Sys-Con -Original Message- From: Charlie Griefer [mailto:[EMAIL PROTECTED] Sent: Friday, October 19, 2007 5:17 PM To: CF-Community Subject: Re: Javascript question define "doesn't work"? :) are you testing this in firef

Re: Javascript question

2007-10-19 Thread Charlie Griefer
> > -- > Scott Stewart > ColdFusion Developer > > SSTWebworks > 4405 Oakshyre Way > Raleigh, NC. 27616 > (703) 220-2835 > > http://www.sstwebworks.com > http://www.linkedin.com/in/sstwebworks > > Boycott Sys-Con &g

RE: Javascript question

2007-10-19 Thread Scott Stewart
bworks.com http://www.linkedin.com/in/sstwebworks Boycott Sys-Con -Original Message- From: Charlie Griefer [mailto:[EMAIL PROTECTED] Sent: Friday, October 19, 2007 2:12 PM To: CF-Community Subject: Re: Javascript question your syntax is off document.getElementById('advsPubF

Re: Javascript question

2007-10-19 Thread Charlie Griefer
your syntax is off document.getElementById('advsPubF1').value.length > 1 document.getElementById('advsPubF').checked = true; On 10/19/07, Scott Stewart <[EMAIL PROTECTED]> wrote: > Hey all, > > > > I've got another weird one. > > > > How would you check a radio button, based on whether or not tex

Javascript question

2007-10-19 Thread Scott Stewart
Hey all, I've got another weird one. How would you check a radio button, based on whether or not text is entered in an adjacent text box? Here what I did: function setDateRangeCheck(){ if (document.getElementById.advsPubF1.length > 1){ document.getElementById.advsPubF.check

Re: Javascript question

2007-10-19 Thread Zaphod Beeblebrox
shouldn't that be: if (document.getElementById('advsPubF1').length > 1){ document.getElementById('advsPubF').checked = true; On 10/19/07, Scott Stewart <[EMAIL PROTECTED]> wrote: > Hey all, > > > > I've got another weird one. > > > > How would you check a radio button, based on whether

Re: Javascript question

2007-10-19 Thread Tony
charlie is the javascript goddess tw On 10/19/07, Charlie Griefer <[EMAIL PROTECTED]> wrote: > your syntax is off > > document.getElementById('advsPubF1').value.length > 1 > document.getElementById('advsPubF').checked = true; > > On 10/19/07, Scott Stewart <[EMAIL PROTECTED]> wrote: > > Hey all,

RE: javascript question

2007-05-23 Thread Jim Davis
> -Original Message- > From: Scott Stewart [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 23, 2007 9:49 AM > To: CF-Community > Subject: javascript question > > Hey guys, > > > > When using "innerHTML" can you call a template? Or is this ju

javascript question

2007-05-23 Thread Scott Stewart
Hey guys, When using "innerHTML" can you call a template? Or is this just for chunks of text. I'd like to replace an iframe with innerHTML if possible sas -- Scott Stewart ColdFusion Developer SSTWebworks 7241 Jillspring Ct. Springfield, Va. 22152 (703) 220-2835 http:

Re: Javascript Question

2007-04-20 Thread Jim Davis
>On 4/20/07, Jim Davis <[EMAIL PROTECTED]> wrote: > >Very cool. I didn't realize the var keyword actually "did" anything. >I thought it was somewhat of a formality in JS (not unlike terminating >a line with a semi-colon being optional). > >I had thought any variable created inside of a function (r

Re: Javascript Question

2007-04-20 Thread Charlie Griefer
On 4/20/07, Jim Davis <[EMAIL PROTECTED]> wrote: > >Hey all, > > > >I've got two javascript functions in a .js template. > > > >If I set a var in the first function, can I use it in the second function? > > It depends on whether or not you scope it locally. > > The "var" keyword tells a variable "y

Re: Javascript Question

2007-04-20 Thread Jim Davis
>Hey all, > >I've got two javascript functions in a .js template. > >If I set a var in the first function, can I use it in the second function? It depends on whether or not you scope it locally. The "var" keyword tells a variable "you're only available in the current or child scopes". Without

Re: Javascript Question

2007-04-20 Thread Charlie Griefer
sorry, i should point out that since you're using a .js file, you won't have tags. just declare the variable outside of any function calls and the same holds true. it'll be globally available to any of the functions. On 4/20/07, Charlie Griefer <[EMAIL PROTECTED]> wrote: > not unless you explic

Re: Javascript Question

2007-04-20 Thread Charlie Griefer
not unless you explicitly call the first function from within the 2nd. JavaScript acts the way that I wish CFCs would act. If you declare a variable inside a function, it's local to that function. If you have multiple functions that need to reference a variable, just declare the variable inside

Re: Javascript Question

2007-04-20 Thread Zaphod Beeblebrox
only if you scope the variable outside of the two functions. e.g. var ima_global; function f1() { ima_global = true; } function f2() { alert(ima_global); } On 4/20/07, Scott Stewart <[EMAIL PROTECTED]> wrote: > Hey all, > > > > I've got two javascript functions in a .js template. > > >

RE: Javascript Question

2007-04-20 Thread Scott Stewart
: Javascript Question If I set a var in the first function, can I use it in the second function? If you define it outside of either function. var foobar; //Global variable available to all functions. function setVar() { foobar="see ma"; } function readVar() { al

RE: Javascript Question

2007-04-20 Thread Ian Skinner
If I set a var in the first function, can I use it in the second function? If you define it outside of either function. var foobar; //Global variable available to all functions. function setVar() { foobar="see ma"; } function readVar() { alert(foobar); } ~~

Javascript Question

2007-04-20 Thread Scott Stewart
Hey all, I've got two javascript functions in a .js template. If I set a var in the first function, can I use it in the second function? Thanks sas -- Scott Stewart ColdFusion Developer SSTWebworks 7241 Jillspring Ct. Springfield, Va. 22152 (703) 220-2835 http://w

JavaScript Question

2006-06-05 Thread Duane
Hi All, Is there a way using JavaScript to get the name of the object on your page that currently has focus? Oh, and to make sure that this on topic, how is the house viewing going Tony? TIA, D ~| Message: http://www.houseof

RE: CrossPost from CF-Talk: Javascript Question

2006-05-25 Thread Ian Skinner
Is this GIS stuff? Looks like it. Google Maps API -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA - | 1 | | - Binary Soduko | | | - "C code. C code run. Run code run. Please!" - Cynthia Dunning Confidentiality Notice:

RE: CrossPost from CF-Talk: Javascript Question

2006-05-25 Thread John Galt
ossPost from CF-Talk: Javascript Question > > Hi there... this should be quick and easy for you Jscript ninja's... > > in this line: > marker.openInfoWindowHtml("#url.address# #url.city# #url.state# > #url.zip# Report time: #url.time# Report Date: #url.date# "); >

RE: CrossPost from CF-Talk: Javascript Question

2006-05-25 Thread Ian Skinner
Here is how I have it working. var htmlStr = "#N_LOC_NAME# [#R_MDL_MOBLID#]#N_LAD_ADDR1##N_LAD_CITY#, #N_LAD_STATE#From: #R_MDT_DRWFTME# To: #R_MDT_DRWTTME#"; marker.openInfoWindowHtml(htmlstr); }); -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA

Re: CrossPost from CF-Talk: Javascript Question

2006-05-25 Thread Tony
nevermind, it works now, i guess i had another problem the day i was testing this, and that was not the issue. it works all good. thanks! tony On 5/25/06, Tony <[EMAIL PROTECTED]> wrote: > Hi there... this should be quick and easy for you Jscript ninja's... > > in this line: > marker.openInf

CrossPost from CF-Talk: Javascript Question

2006-05-25 Thread Tony
Hi there... this should be quick and easy for you Jscript ninja's... in this line: marker.openInfoWindowHtml("#url.address# #url.city# #url.state# #url.zip# Report time: #url.time# Report Date: #url.date# "); i want to put 's so that the text, line breaks, and the pop up window isnt huge. an

Re: JavaScript Question

2005-07-06 Thread Charlie Griefer
heh. careful...if you answer yourself too much you'll go blind. On 7/6/05, Ian Skinner <[EMAIL PROTECTED]> wrote: > Ian > > getElementsByTagName() > > Thanks Ian that was really helpful, this list is a great resource. > > > -- > Ian Skinner > Web Programmer > BloodSource > www.Blo

Re: JavaScript Question

2005-07-06 Thread Kevin Graeme
Glad you could help. We need more like you on this list. On 7/6/05, Ian Skinner <[EMAIL PROTECTED]> wrote: > Thanks Ian that was really helpful, this list is a great resource. ~| Discover CFTicket - The leading ColdFusion Help D

RE: JavaScript Question

2005-07-06 Thread Ian Skinner
Ian getElementsByTagName() Thanks Ian that was really helpful, this list is a great resource. -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA "C code. C code run. Run code run. Please!" - Cynthia Dunning Confidentiality Notice: This message including

JavaScript Question

2005-07-06 Thread Ian Skinner
I'm having a major memory failure here. What is the JavaScript function similar to "getElementById("anID") to get elements by html tag type? -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA "C code. C code run. Run code run. Please!" - Cynthia Dunning

Re: stupid Javascript question

2005-06-09 Thread Ray Champagne
Hey, thanks for that function. I am going to add it to my js from yesterday. I was somewhat worried about the toFixed() solution and older browsers, but it was only a temporary fix anyways. Ray Jim Davis wrote: >>LOL...Jim? >> >>Something about floating point math, blah blah. > > > Hey... d

Re: stupid Javascript question

2005-06-09 Thread Jim Davis
>LOL...Jim? > >Something about floating point math, blah blah. Hey... don't look at me! ;^) It has something to do with an inability for certain numbers to be exactly represented in binary. I don't believe the number 12.95 can actually be converted as it is to binary. You can see this in Win

RE: stupid Javascript question

2005-06-09 Thread Ken Ketsdever
TED] > Sent: Thursday, June 09, 2005 8:44 AM > To: CF-Community > Subject: Re: stupid Javascript question > > LOL...Jim? > > Something about floating point math, blah blah. > > Sad thing is, I have a BS in math. That was a long time ago, though, I > can't remember any

Re: stupid Javascript question

2005-06-09 Thread Ray Champagne
then > prove her answer to the befuddled teacher. > > > > -Original Message- > From: Ray Champagne [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 09, 2005 8:44 AM > To: CF-Community > Subject: Re: stupid Javascript question > > LOL...Jim? > > Somet

RE: stupid Javascript question

2005-06-09 Thread Ken Ketsdever
From: Ray Champagne [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 8:44 AM To: CF-Community Subject: Re: stupid Javascript question LOL...Jim? Something about floating point math, blah blah. Sad thing is, I have a BS in math. That was a long time ago, though, I can't remember any of

Re: stupid Javascript question

2005-06-09 Thread Ray Champagne
l Message- > From: Ray Champagne [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 08, 2005 1:35 PM > To: CF-Community > Subject: stupid Javascript question > > I am trimming this question down to the nitty gritty for simplicity's > sake: > > Why does t

RE: stupid Javascript question

2005-06-09 Thread Ken Ketsdever
PROTECTED] Sent: Wednesday, June 08, 2005 1:35 PM To: CF-Community Subject: stupid Javascript question I am trimming this question down to the nitty gritty for simplicity's sake: Why does this javascript: var price = 3 * 12.95; give me this result: 38.844 ? God I hate j

Re: stupid Javascript question

2005-06-09 Thread Ray Champagne
Just tried in CF. It gives the "correct" answer. Jim Davis wrote: >>-Original Message- >>From: Ray Champagne [mailto:[EMAIL PROTECTED] >>Sent: Wednesday, June 08, 2005 5:05 PM >>To: CF-Community >>Subject: Re: stupid Javascript question >>

RE: stupid Javascript question

2005-06-08 Thread Jim Davis
> -Original Message- > From: Ray Champagne [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 08, 2005 5:05 PM > To: CF-Community > Subject: Re: stupid Javascript question > > Yep, this worked: > > var price = 3 * 12.95; > document.write(price.toFixed(2)); &

Re: stupid Javascript question

2005-06-08 Thread S . Isaac Dealey
> I am trimming this question down to the nitty gritty for > simplicity's sake: > Why does this javascript: > var price = 3 * 12.95; > give me this result: > 38.844 > ? > God I hate javascript. > Ray Because JavaScript gurus responsible for writing the engines that interpret it

Re: stupid Javascript question

2005-06-08 Thread Ray Champagne
little problems like this to stress you out under deadline and client pressure! Ray Jim Davis wrote: >>-Original Message- >>From: Ray Champagne [mailto:[EMAIL PROTECTED] >>Sent: Wednesday, June 08, 2005 4:35 PM >>To: CF-Community >>Subject: stupid Javascript qu

RE: stupid Javascript question

2005-06-08 Thread Jim Davis
> -Original Message- > From: Ray Champagne [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 08, 2005 4:35 PM > To: CF-Community > Subject: stupid Javascript question > > I am trimming this question down to the nitty gritty for simplicity's > sake: > >

stupid Javascript question

2005-06-08 Thread Ray Champagne
I am trimming this question down to the nitty gritty for simplicity's sake: Why does this javascript: var price = 3 * 12.95; give me this result: 38.844 ? God I hate javascript. Ray -- = Ray Champagne - Senior App

RE: Javascript Question

2005-05-14 Thread Jeff Garza
Take a look at some of the threads on CF_Talk surrounding AJAX or try Google... http://www.google.com/search?q=Javascript+AJAX -Original Message- From: Frank Mamone [mailto:[EMAIL PROTECTED] Sent: Saturday, May 14, 2005 8:55 AM To: CF-Community Subject: Javascript Question Hi everyone

Javascript Question

2005-05-14 Thread Frank Mamone
Hi everyone, Does anyone know of a reference that shows how to pull stuff from other servers using Javascript kind of like Google does with their ads? I'm setting up an e-shop and the tools are fairly limited. I would like to serve some dynamic content from my hosting account and I thought that w

RE: Javascript question

2003-04-01 Thread Haggerty, Mike
, 2003 11:12 AM To: CF-Community Subject: RE: Javascript question It looks to me like this just checks for a "http://";, right? So if I have a site that spans multiple servers then this isn't going to be a good solution? Say I have the core of the site on one server at www.example

RE: Javascript question

2003-04-01 Thread Kevin Graeme
le.com. -Kevin > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 01, 2003 10:00 AM > To: CF-Community > Subject: RE: Javascript question > > > You are so the man, that's exactly what I needed. Seriously I owe you > biggie

RE: Javascript question

2003-04-01 Thread healdt
EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 10:53 AM To: CF-Community Subject: RE: Javascript question Yo Tim; Check this out. M Untitled <!-- function check_outside_links(){ i = 0; while (i < document.anc

RE: Javascript question

2003-04-01 Thread Ben Doom
D] : Sent: Tuesday, April 01, 2003 10:22 AM : To: CF-Community : Subject: RE: Javascript question : : : The data we are working with is all in a db that dates back to 1986. Now : obviously the URLs won't have started showing up until what maybe : 95 or 97? : Still that's every article we linke

RE: Javascript question

2003-04-01 Thread Haggerty, Mike
--> http://www.yahoo.com"; name="yahoo">Yahoo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 10:09 AM To: CF-Community Subject: Javascript question Hey kids, I need to have a message displayed when ever

RE: Javascript question

2003-04-01 Thread healdt
--Original Message- From: Randell B Adkins [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 10:20 AM To: CF-Community Subject: Re: Javascript question Sorry did not read the entire message. Not sure with a single include to make it work across the whole site. But this function does work:

RE: Javascript question

2003-04-01 Thread healdt
dkins [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 10:17 AM To: CF-Community Subject: Re: Javascript question Pass the entire link to a function and then afterwards push them along: function ExitLink(urlLink){ alert('have a nice day. Now you are going to: ' + urlLink);

Re: Javascript question

2003-04-01 Thread Randell B Adkins
Sorry did not read the entire message. Not sure with a single include to make it work across the whole site. But this function does work: function ExitLink(urlLink){ alert('have a nice day. Now you are going to: ' + urlLink); window.location=urlLink; } http://www.msn.com');">MSN >>> [EMA

Re: Javascript question

2003-04-01 Thread Randell B Adkins
Pass the entire link to a function and then afterwards push them along: function ExitLink(urlLink){ alert('have a nice day. Now you are going to: ' + urlLink); window.location=urlLink; } Something along that lines, might have to tweak it >>> [EMAIL PROTECTED] 04/01/03 10:09AM >>> Hey kids,

Javascript question

2003-04-01 Thread healdt
Hey kids, I need to have a message displayed when ever someone clicks a link that takes them off of our site. I figured I could probably write a nice easy onUnLoad function to take care of it, but I can't seem to find a way to get the window.location.href they are heading to. I mean it displa

RE: Quick Javascript question :)

2001-11-28 Thread Angel Stewart
I think it looks cool :) I just did that for backward compatibility... :) I didn't need it I know.. -Gel ~~ Get the mailserver that powers this list at http://www.coolfusion.com Archives: http://www.mail-archive.com/cf-community@houseoffusion.co

Re: Quick Javascript question :)

2001-11-28 Thread Kwang Suh
You don't need the javascript: part. - Original Message - From: "Angel Stewart" <[EMAIL PROTECTED]> To: "CF-Community" <[EMAIL PROTECTED]> Sent: Wednesday, November 28, 2001 11:30 AM Subject: RE: Quick Javascript question :) > Ok..this seems t

RE: Quick Javascript question :)

2001-11-28 Thread Angel Stewart
Ok..this seems to have worked, just putting this code in the Body tag: -Gel -Original Message- From: Jason Reichenbach [mailto:[EMAIL PROTECTED]] in your do this instead: ~~ Get the mailserver that powers this list at http://www.c

RE: Quick Javascript question :)

2001-11-28 Thread Angel Stewart
Madness :-\ Still getting the missing ; on the line I can't understand this :-\ What is wrong with my syntax? -Gel -Original Message- From: Vinny DiDonato [mailto:[EMAIL PROTECTED]] Try... (lines changed have asterisks) Formsubfunc(){ Form1.submit();

RE: Quick Javascript question :)

2001-11-28 Thread Jason Reichenbach
in your do this instead: -Original Message- From: Angel Stewart [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 28, 2001 1:01 PM To: CF-Community Subject: RE: Quick Javascript question :) Same errors, here's the new code: Formsubfunc(){ Form1.submit(); }

RE: Quick Javascript question :)

2001-11-28 Thread Vinny DiDonato
Forgot to mention -- JavaScript is case sensitive. -V -Original Message- From: Vinny DiDonato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 28, 2001 1:01 PM To: CF-Community Subject: RE: Quick Javascript question :) Try... (lines changed have asterisks) Formsubfunc

RE: Quick Javascript question :)

2001-11-28 Thread Vinny DiDonato
: Wednesday, November 28, 2001 1:01 PM To: CF-Community Subject: RE: Quick Javascript question :) Same errors, here's the new code: Formsubfunc(){ Form1.submit(); }//end func Updating Charge Info Records Up

RE: Quick Javascript question :)

2001-11-28 Thread Angel Stewart
Same errors, here's the new code: Formsubfunc(){ Form1.submit(); }//end func Updating Charge Info Records Updated. ~~ Get the mailserver

RE: Quick Javascript question :)

2001-11-28 Thread Angel Stewart
And I'm still getting the same error... I hate syntax errors :-\ What else could be wrong? -Gel -Original Message- From: Jason Reichenbach [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 28, 2001 1:46 PM To: CF-Community Subject: RE: Quick Javascript question :) Pu

RE: Quick Javascript question :)

2001-11-28 Thread Vinny DiDonato
ED]] Sent: Wednesday, November 28, 2001 12:45 PM To: CF-Community Subject: RE: Quick Javascript question :) I'm getting errors :-\ *sniff* The error is Missing ; on the line with the Heres the code,I've probably done something wrong: Formsubfunc() { Form1.sub

RE: Quick Javascript question :)

2001-11-28 Thread Jason Reichenbach
Put the semicolon in after the funtion. like so: -Original Message- From: Angel Stewart [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 28, 2001 12:45 PM To: CF-Community Subject: RE: Quick Javascript question :) I'm getting errors :-\ *sniff* The error is Missing ; on the

RE: Quick Javascript question :)

2001-11-28 Thread Angel Stewart
I'm getting errors :-\ *sniff* The error is Missing ; on the line with the Heres the code,I've probably done something wrong: Formsubfunc() { Form1.submit(); } //end func Updating Charge Info Records Updated. ~

RE: Quick Javascript question :)

2001-11-28 Thread Jason Reichenbach
Why don't you use: -Original Message- From: Angel Stewart [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 28, 2001 11:46 AM To: CF-Community Subject: Quick Javascript question :) After a page finishes processing..I want it to go immediately to another page..to a summary

RE: Quick Javascript question :)

2001-11-28 Thread Vinny DiDonato
That's the way I've done it. JS CODE CFOUTPUT BODY TAG WHICH SUBMITS -Original Message- From: Angel Stewart [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 28, 2001 12:13 PM To: CF-Community Subject: RE: Quick Javascript question :) Nope..didn't try that.

RE: Quick Javascript question :)

2001-11-28 Thread Craig Dudley
Subject: RE: Quick Javascript question :) Nope..didn't try that. So if I put all the code that does the processing BEFORE the body tag it will do the processing and THEN submit..not just fly to Javascript and Submit without processing the CF Code right? :) -Gel -Original Message-

RE: Quick Javascript question :)

2001-11-28 Thread Angel Stewart
Nope..didn't try that. So if I put all the code that does the processing BEFORE the body tag .it will do the processing and THEN submit..not just fly to Javascript and Submit without processing the CF Code right? :) -Gel -Original Message- From: Vinny DiDonato [mailto:[EMAIL PROTECTED

RE: Quick Javascript question :)

2001-11-28 Thread Vinny DiDonato
"#startdate#" Type=hidden name="enddate" value="#enddate#" /form -Original Message- From: Angel Stewart [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 28, 2001 11:46 AM To: CF-Community Subject: Quick Javascript question :) After a page finishes processin

Quick Javascript question :)

2001-11-28 Thread Angel Stewart
After a page finishes processing..I want it to go immediately to another page..to a summary page actually. And I want to pass files on the URL (Unless I can force an unassisted Form Submit with hidden form fields or something). So..after I process edits done on the Edit Screen...I want to go bac

JavaScript "question"

2001-11-19 Thread Joseph Thompson
Just looking for a "yes/no" (well... it is Monday and all...) I have a calendar. Several of the links in various "day" cells are "related". Is there a CSS/JavaScript method to have all the related links change colors at the same time? (without refreshing the page)? Again.. yes I have seen/don

RE: Quick Javascript question..

2001-11-12 Thread Raymond Camden
-Community > Subject: Quick Javascript question.. > > > Hi dee ho, > > I have a quick javascript question. > > Have a form...say..20 fields in a table row. > Whenever someone enters hours into these fields I want it to > update the > totals for that row. > &

Quick Javascript question..

2001-11-12 Thread Angel Stewart
Hi dee ho, I have a quick javascript question. Have a form...say..20 fields in a table row. Whenever someone enters hours into these fields I want it to update the totals for that row. I know it's simple..but for some reason I can't find a Jscript example like this on the

A JavaScript question

2001-07-18 Thread Philip Arnold - ASP
I know I should really post this to Talk, but since the traffic is so much higher, it'll probably get missed Anyways, what I'm trying to do (and can't for the life of me remember how to) is to open a window and populate it - I've gotten that far, but if the link is clicked again, then it puts the

  1   2   >