OT: Javascript right click menu, only over object, can accept parameters

2006-06-02 Thread Andy Matthews
I've spent all morning looking for this sort of thing. I've found a few possible candidates but nothing that matches, so I'm going to ask around. I'm looking a right click context menu script which will allow me to indicate which objects on the page trigger the script AND allow me to pass

Re: OT: Javascript right click menu, only over object, can accept parameters

2006-06-02 Thread Denny Valliant
jsdomenu from dynamic drive does that, I think. It's pretty cool, but leaks memory, I think. One option is to use hidden fields and mouseovers to have dynamic variables. Let me know if you want more info, I've done something similar. :D On 6/2/06, Andy Matthews [EMAIL PROTECTED] wrote: I've

OT: 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 BR's so that the text, line breaks, and the pop up window isnt huge.

NEVERMIND, thanks! Re: OT: 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:

Re: OT: Javascript question

2006-05-25 Thread Michael Traher
try dropping #chr(10)# into the string, I think that will work. might be nicer to set one display variable earlier cfset infoText = url.address chr(10) url.city chr(10) then you can just refer to #infoText in the js. On 5/25/06, Tony [EMAIL PROTECTED] wrote: Hi there... this should be

Re: OT: Javascript question

2006-05-25 Thread Tony
true. its still very alpha stage... but its very simple to change to that! good idea. tw On 5/25/06, Michael Traher [EMAIL PROTECTED] wrote: try dropping #chr(10)# into the string, I think that will work. might be nicer to set one display variable earlier cfset infoText = url.address

OT: Javascript help

2006-04-20 Thread Ben Nadel
Not really for CF, but though someone here could lend some insight There is one problem in Javascript that I cannot seem to get a handle on and it is killling me! I can't seem to get variables to pass by value as I would hope. Take the following example: for (var intI = 0 ; intI 10 ;

Re: OT: Javascript help

2006-04-20 Thread Zaphod Beeblebrox
the most I can think of is to evaluate the value right at the function declaration: objA.onclick = eval ('function(){ alert( ' + intI + ' ); };'); On 4/20/06, Ben Nadel [EMAIL PROTECTED] wrote: Not really for CF, but though someone here could lend some insight There is one problem in

RE: OT: Javascript help

2006-04-20 Thread Ben Nadel
-Original Message- From: Zaphod Beeblebrox [mailto:[EMAIL PROTECTED] Sent: Thursday, April 20, 2006 10:31 AM To: CF-Talk Subject: Re: OT: Javascript help the most I can think of is to evaluate the value right at the function declaration: objA.onclick = eval ('function(){ alert( ' + intI

Re: OT: Javascript help

2006-04-20 Thread Cutter (CFRelated)
Asking your question of my javascipt list, the responses were as follows: Repsonse 1 Have you tried this? objA.onclick = new Function (alert( + intI + ) ); Response 2 for (var intI = 0 ; intI 10 ; intI++){ var objA = document.createElement( div ); Place one var objA; before the

Re: OT: Javascript help

2006-04-20 Thread Tanguy Rademakers
Hi Ben, I ran into this problem recently - these really helped me out: http://joust.kano.net/weblog/archive/2005/08/08/a-huge-gotcha-with-javascript-closures and http://jibbering.com/faq/faq_notes/closures.html /t ~|

RE: OT: Javascript help

2006-04-20 Thread Ben Nadel
to an object that doesn't inherently have that attribute. ... Ben Nadel www.bennadel.com -Original Message- From: Cutter (CFRelated) [mailto:[EMAIL PROTECTED] Sent: Thursday, April 20, 2006 1:00 PM To: CF-Talk Subject: Re: OT: Javascript help Asking your question of my

RE: OT: Javascript help

2006-04-20 Thread Ben Nadel
, April 20, 2006 1:19 PM To: CF-Talk Subject: Re: OT: Javascript help Hi Ben, I ran into this problem recently - these really helped me out: http://joust.kano.net/weblog/archive/2005/08/08/a-huge-gotcha-with-javascrip t-closures and http://jibbering.com/faq/faq_notes/closures.html /t

OT: JavaScript Scoping Gurus?

2006-03-21 Thread Jim Davis
I'm building an HTTP request pooler in JS. In essence the pool creates several HTTP objects and allows the programmer to add requests to the queue. The queue is then examined at an interval and queued requests are passed to free objects for calls. Anyway - all that seems to work pretty well -

OT: Javascript Calculation Problem

2006-02-17 Thread Les Mizzell
function GRANDTOTAL(){ // GET ALL THE VARIABLES var oc_hours = document.vSTEP2.fv2_ndp_oc_hours.value var oc_amount = document.vSTEP2.fv2_ndp_oc_amount.value var ic_hours = document.vSTEP2.fv2_ndp_ic_hours.value var ic_amount = document.vSTEP2.fv2_ndp_ic_amount.value var ldcalls =

OT javascript Q: Show/hide divs...works in IE, not in FF.

2006-02-02 Thread Andy Matthews
I've got some code with which I'm working: http://www.andyandjaime.com/uploads/div.html function switchDiv(pNode,name) { var pNode = document.getElementById(pNode); for (i=0;ipNode.childNodes.length;i++) { ci = pNode.childNodes[i]; if (ci.name !=

RE: OT javascript Q: Show/hide divs...works in IE, not in FF.

2006-02-02 Thread Ian Skinner
Does anyone have any ideas about this? I've talked to two other js guys and none of us can figure out what's going wrong. I'd really appreciate some input. Thanks. You have to be careful what IE and Firefox calls a child node. IE only makes element child nodes, FF makes everything,

RE: OT javascript Q: Show/hide divs...works in IE, not in FF.

2006-02-02 Thread Steve Brownlee
I'd suggest adding in an additional check. if ( ci.name != undefined ci.style ) ci.style.display = none; -Original Message- From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 4:17 PM To: CF-Talk Subject: OT javascript Q: Show/hide

RE: OT javascript Q: Show/hide divs...works in IE, not in FF.

2006-02-02 Thread Andy Matthews
: RE: OT javascript Q: Show/hide divs...works in IE, not in FF. Does anyone have any ideas about this? I've talked to two other js guys and none of us can figure out what's going wrong. I'd really appreciate some input. Thanks. You have to be careful what IE and Firefox calls a child node. IE

RE: OT javascript Q: Show/hide divs...works in IE, not in FF.

2006-02-02 Thread Ian Skinner
So can you test for node.name? Yes I often do something like: if (something.childnode[i].nodeName == P) do something to a paragraph node. You can also use the test suggested by Steve. if ( ci.name != undefined ci.style ) ci.style.display = none; Or of couse combine both

Re: OT javascript Q: Show/hide divs...works in IE, not in FF.

2006-02-02 Thread Jochem van Dieten
Andy Matthews wrote: function switchDiv(pNode,name) { var pNode = document.getElementById(pNode); for (i=0;ipNode.childNodes.length;i++) { ci = pNode.childNodes[i]; if (ci.name != undefined) { ci.style.display = none;

RE: OT javascript Q: Show/hide divs...works in IE, not in FF.

2006-02-02 Thread Andy Matthews
:10 PM To: CF-Talk Subject: Re: OT javascript Q: Show/hide divs...works in IE, not in FF. Andy Matthews wrote: function switchDiv(pNode,name) { var pNode = document.getElementById(pNode); for (i=0;ipNode.childNodes.length;i++) { ci = pNode.childNodes[i

OT: Javascript question...or suggestion where to go to get answer

2006-01-29 Thread Eric Roberts
I have a JavaScript dilemma in one of my CF apps and I am not sure how to solve it. We have popup that is used to modify some values in the database before running a report. We want this popup to close if you click on another window. I tried putting close in an onBlur event as part of the body

OT: Javascript help.

2005-12-06 Thread J W
I have been beating my head around for the better part of today trying to figure this out.. I am prefilling a textarea with some information. When the page loads, I would like to set focus to the text area and have the cursor position set to the first character in the textarea with the prefilled

OT: JavaScript Autofill

2005-11-21 Thread Orlini, Robert
I have a JavaScript that I hoped would autofill some fields when a user clicks a checkbox, but it doesn't. I will admit I not a JavaScript programmer and copied and tweaked some code. The bold areas I edited to try to make it work but autofilling with the word spare, but it doesn't do anything.

OT: Javascript Iframe question

2005-11-13 Thread jonese
Does anyone know how to populate a form field which resides on a differant server but pulled in via an iframe? jonese ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and

OT: Javascript XML parsing

2005-10-04 Thread Paul
I am successfully parsing an XML document using the javascript below. I am running into trouble, however, when I try to parse an xml file that doesn't exist in the same directory as the calling page. See inline comments below. var xmlDoc = new ActiveXObject(Microsoft.XMLDOM); function

Re: OT: Javascript XML parsing

2005-10-04 Thread Robert Munn
try this: var xmlFile=C:\\test\\menu.xml; I am successfully parsing an XML document using the javascript below. I am running into trouble, however, when I try to parse an xml file that doesn't exist in the same directory as the calling page. See inline comments below.

RE: OT: Javascript XML parsing

2005-10-04 Thread Paul
Good suggestion, but no dice; same error as the C:/\test/\menu.xml attempt... -Original Message- From: Robert Munn [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 04, 2005 10:28 AM To: CF-Talk Subject: Re: OT: Javascript XML parsing try this: var xmlFile=C:\\test\\menu.xml

Re: OT: Javascript XML parsing

2005-10-04 Thread Robert Munn
: Robert Munn [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 04, 2005 10:28 AM To: CF-Talk Subject: Re: OT: Javascript XML parsing try this: var xmlFile=C:\\test\\menu.xml; ~| Discover CFTicket - The leading ColdFusion Help Desk

RE: OT: Javascript XML parsing

2005-10-04 Thread Paul
Well that certainly makes sense now that I consider it. Thanks! -Original Message- From: Robert Munn [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 04, 2005 12:12 PM To: CF-Talk Subject: Re: OT: Javascript XML parsing Oh, brain fart, sorry. Your browser doesn't know about the drive

OT: Javascript browser compatibility question.

2005-08-11 Thread Jeff W
Can anyone tell me WHY this won't work in NS6.1 but work fine in ie5-6, firefox and NS8?? document.getElementById(CurrentHighlightedCell).style.background='#006600'; CurrentHighlightedCell is a variable that contains the current id of the TD background color I am changing. Thanks.. Jeff

Re: OT: Javascript browser compatibility question.

2005-08-11 Thread Jim Campbell
Does it matter if you put the element ID in quotes? getElementById(CurrentHighlightedCell)... - Jim Jeff W wrote: Can anyone tell me WHY this won't work in NS6.1 but work fine in ie5-6, firefox and NS8?? document.getElementById(CurrentHighlightedCell).style.background='#006600';

Re: OT: Javascript browser compatibility question.

2005-08-11 Thread Barney Boisvert
NS6 was a bastard that didn't work. Did you try backgroundColor? cheers, barneyb On 8/11/05, Jeff W [EMAIL PROTECTED] wrote: Can anyone tell me WHY this won't work in NS6.1 but work fine in ie5-6, firefox and NS8?? document.getElementById(CurrentHighlightedCell).style.background='#006600';

Re: OT: Javascript browser compatibility question.

2005-08-11 Thread Charlie Griefer
if it's a literal ID value, then yes, he'd need quotes. I'm guessing it's a variable. Try backgroundColor (note the casing) instead of background. On 8/11/05, Jim Campbell [EMAIL PROTECTED] wrote: Does it matter if you put the element ID in quotes?

Re: OT: Javascript browser compatibility question.

2005-08-11 Thread Ray Champagne
Barney Boisvert wrote: NS6 was a bastard that didn't work. He he, I have an uncle like that. Ray ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application

Re: OT: Javascript browser compatibility question.

2005-08-11 Thread Barney Boisvert
Who you hope doesn't subscribe to this list.. ;) On 8/11/05, Ray Champagne [EMAIL PROTECTED] wrote: Barney Boisvert wrote: NS6 was a bastard that didn't work. He he, I have an uncle like that. Ray -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got

Re: OT: Javascript browser compatibility question.

2005-08-11 Thread Jeff W
Its a variable.. On 8/11/05, Jim Campbell [EMAIL PROTECTED] wrote: Does it matter if you put the element ID in quotes? getElementById(CurrentHighlightedCell)... - Jim Jeff W wrote: Can anyone tell me WHY this won't work in NS6.1 but work fine in ie5-6, firefox and NS8??

Re: OT: Javascript browser compatibility question.

2005-08-11 Thread Jeff W
I'll try the backgroundColor and give that a whirl... Thanks, Jeff On 8/11/05, Charlie Griefer [EMAIL PROTECTED] wrote: if it's a literal ID value, then yes, he'd need quotes. I'm guessing it's a variable. Try backgroundColor (note the casing) instead of background. On 8/11/05, Jim

Re: OT: Javascript browser compatibility question.

2005-08-11 Thread Jeff W
Well isn't NS6.1 odd It appears that BOTH my example and the new.backgroundColor example work and don't work... As if you couldn't tell this is a background cell changer. ...and this code is firing on the ONCLICK of each cell :) Here is the weirdness... Say I have 3 cells wide table...

RE: OT: Javascript browser compatibility question.

2005-08-11 Thread Mosh Teitelbaum
Jeff: Barring a browser bug (which is certainly possible), the likely culprit is a slight logic error with the JavaScript code. If you post the relevant code, I'm sure the list can review it for you. As to alternative ways of doing it, you might want to try change the cell's Class instead of

OT: Javascript weirdness...

2005-07-22 Thread Jeff Waris
Has anyone noticed this with firefox? I have a text box that a user inputs a number. Using an ONBLUR or ONCHANGE action I validate the number inputed. SIMPLE... Works perfectly. Well not quite. If the user goes to SUBMIT the form Directly after inputting the number. Firefox process the

Re: OT: Javascript weirdness...

2005-07-22 Thread Ken Ferguson
Call the function that checks it out in the onsubmit also. This may mean that you're validating it twice, but you will also make sure that you're always getting it validated. If it's already been successfully validated in the onblur, calling it again in the onsubmit won't hurt. Jeff Waris

Re: OT: Javascript weirdness...

2005-07-22 Thread Claude Schneegans
Any workarounds to this? Try to add this in the form: onsubmit=return checkTheTextField() and return false if the field is not correct. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to

Re: OT: Javascript weirdness...

2005-07-22 Thread Ken Ferguson
sorry, I'm a knucklehead. I didn't read the whole thing before I suggested the onsubmit. However, I think what I said still stands correct. If you call it in both places, then you'll always be covered. If the user goes through the form as expected, you'll validate onblur... If they never

Re: OT: Javascript weirdness...

2005-07-22 Thread Jochem van Dieten
Jeff Waris wrote: I have a text box that a user inputs a number. Using an ONBLUR or ONCHANGE action I validate the number inputed. SIMPLE... Works perfectly. I hope you are not using capitals for these attributes. It might explain your problems if you are. Well not quite. If the user goes

RE: Quick OT Javascript question.

2005-06-14 Thread Jeff Waris
OT Javascript question. How do I grab the CURRENTLY selected option in a select list document.myform.colors.selectedIndex (Be careful not spelling Document with an upper case). -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com

Quick OT Javascript question. PART 2

2005-06-14 Thread Jeff Waris
Another question: In my previous question.. I needed to grab the currently selected option from a select list. I can now get the selected value using this code... var SelOpt = document.myform.colors.options.selectedIndex; var colortype = document.myform.colors[SelOpt].value; I now need to get

RE: Quick OT Javascript question. PART 2

2005-06-14 Thread Adrian Lynch
input type=hidden ... / optionsasasa/option /select Is that ok for you? Ade -Original Message- From: Jeff Waris [mailto:[EMAIL PROTECTED] Sent: 14 June 2005 14:02 To: CF-Talk Subject: Quick OT Javascript question. PART 2 Another question: In my previous question.. I

Re: Quick OT Javascript question. PART 2

2005-06-14 Thread Adam Haskell
any reason you are puttting all these into hidden form values? Why not just build and associative array and use that to lookuop the rating it will save bandwidth, it will be valid, and look more professional. The lookup would be the same AsociativeArrayName[selectedValue] will give you the rating.

RE: Quick OT Javascript question. PART 2

2005-06-14 Thread Jeff Waris
my question to formulate the answer I need. Hope that makes some sense.. Jeff -Original Message- From: Adam Haskell [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 14, 2005 9:29 AM To: CF-Talk Subject: Re: Quick OT Javascript question. PART 2 any reason you are puttting all

RE: Quick OT Javascript question. PART 2

2005-06-14 Thread Jeff Waris
:[EMAIL PROTECTED] Sent: Tuesday, June 14, 2005 9:18 AM To: CF-Talk Subject: RE: Quick OT Javascript question. PART 2 Yup. Use this notation: document.myform[colortype].value; From the looks of your code, the generated HTML will look something like this: select optionasas

RE: Quick OT Javascript question. PART 2

2005-06-14 Thread Micha Schopman
Message- From: Jeff Waris [mailto:[EMAIL PROTECTED] Sent: dinsdag 14 juni 2005 14:02 To: CF-Talk Subject: Quick OT Javascript question. PART 2 Another question: In my previous question.. I needed to grab the currently selected option from a select list. I can now get the selected value using

Quick OT Javascript question.

2005-06-13 Thread Jeff Waris
4:50 Ponderings... How do I grab the CURRENTLY selected option in a select list WITHOUT knowing how many options. (the options are dynamically created) Say we have in select colors Red Green selected Blue Document.myform.colors[1].value would be the selected one, but how would you figure that

Re: Quick OT Javascript question.

2005-06-13 Thread Bryan Stevenson
the property is selectedIndex I'm kinda rutsy but it's something like document.MyForm.MySelectBox.selectedIndex HTH Cheers 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:

Re: Quick OT Javascript question.

2005-06-13 Thread Dustin Tinney
document.myform.colors.length gives you a variable that you can loop on and find the selected item. On 6/13/05, Jeff Waris [EMAIL PROTECTED] wrote: 4:50 Ponderings... How do I grab the CURRENTLY selected option in a select list WITHOUT knowing how many options. (the options are dynamically

Re: Quick OT Javascript question.

2005-06-13 Thread Howie Hamlin
document.form name.select name.options.selectedIndex; HTH, -- Howie Hamlin - inFusion Project Manager On-Line Data Solutions, Inc. - www.CoolFusion.com inFusion Mail Server (iMS) - The Award-winning, Intelligent Mail Server PrismAV - Virus scanning for ColdFusion and BlueDragon applications

Re: Quick OT Javascript question.

2005-06-13 Thread Howie Hamlin
Sorry - a more complete example would be: var SelOpt = document.form name.select name.options.selectedIndex; then document.myform.colors[SelOpt].value HTH, Howie --- On Monday, June 13, 2005 4:44 PM, Jeff Waris scribed: --- 4:50 Ponderings... How do I grab the CURRENTLY selected option

Re: Quick OT Javascript question.

2005-06-13 Thread Charlie Griefer
use the selectedIndex property. document.myform.colors.options[document.myform.colors.selectedIndex].value document.myform.colors.options[document.myform.colors.selectedIndex].text On 6/13/05, Jeff Waris [EMAIL PROTECTED] wrote: 4:50 Ponderings... How do I grab the CURRENTLY selected option

RE: Quick OT Javascript question.

2005-06-13 Thread Matt Osbun
Waris [mailto:[EMAIL PROTECTED] Sent: Monday, June 13, 2005 3:44 PM To: CF-Talk Subject: Quick OT Javascript question. 4:50 Ponderings... How do I grab the CURRENTLY selected option in a select list WITHOUT knowing how many options. (the options are dynamically created) Say we have in select

Re: Quick OT Javascript question.

2005-06-13 Thread Claude Schneegans
How do I grab the CURRENTLY selected option in a select list document.myform.colors.selectedIndex (Be careful not spelling Document with an upper case). -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please

Re: Quick OT Javascript question.

2005-06-13 Thread Sergey Croitor
Hello Jeff, Monday, June 13, 2005, 11:44:18 PM, you wrote: JW 4:50 Ponderings... JW How do I grab the CURRENTLY selected option in a select list WITHOUT knowing JW how many options. (the options are dynamically created) JW Say we have in select colors JW Red JW Green selected JW Blue JW

Re: Quick OT Javascript question.

2005-06-13 Thread Claude Schneegans
var SelOpt = document.form name.select name.options.selectedIndex; Not sure this will work: selectedIndex is a property of the select object, not of the options array. var SelOpt = document.form name.select name.selectedIndex; should work better. ___

OT: Javascript question...

2005-05-10 Thread Pascal Peters
divName.innerHTML += some new text + br/; This should work Pascal I want to manipulate the innerText property of a div tag. It works fine except that I can't seem to put in a linefeed or break. I tried all the following without success. Does anyone know how to get a linebreak in there? -mark

OT: Javascript question...

2005-05-10 Thread Mark A Kruger
I want to manipulate the innerText property of a div tag. It works fine except that I can't seem to put in a linefeed or break. I tried all the following without success. Does anyone know how to get a linebreak in there? -mark

Re: OT: Javascript question...

2005-05-10 Thread Charlie Griefer
Mark: Is the innerHTML property an option? that'd handle the br /s much easier. On 5/10/05, Mark A Kruger [EMAIL PROTECTED] wrote: I want to manipulate the innerText property of a div tag. It works fine except that I can't seem to put in a linefeed or break. I tried all the following

OT JavaScript [not Macromedia/Adobe]

2005-04-18 Thread Ian Skinner
Assume the following HTML markup. td id=G23520050328_name a href=... title=... onClick=...CalHFA/a /td In a JS function there is basically this assignment. [This of course is done dynamically but I am simplifying for this question.] var name_cell =

Re: OT JavaScript [not Macromedia/Adobe]

2005-04-18 Thread Rob
I like to try to use the DOM in a w3c manner. Here is a pretty good site to see your options http://www.quirksmode.org/dom/w3c_core.html if you mean cross browser to include NS4 though, forget that :) On 4/18/05, Ian Skinner [EMAIL PROTECTED] wrote: Assume the following HTML markup. td

RE: OT JavaScript [not Macromedia/Adobe]

2005-04-18 Thread Ian Skinner
To: CF-Talk Subject: Re: OT JavaScript [not Macromedia/Adobe] I like to try to use the DOM in a w3c manner. Here is a pretty good site to see your options http://www.quirksmode.org/dom/w3c_core.html if you mean cross browser to include NS4 though, forget

OT JavaScript compare two objects

2005-04-14 Thread Ian Skinner
Is there some way to just compare to objects to see if they are the same object without using some property of the objects? For example, in the following markup ul id=list li.../li li.../li li onclick=jsFunc(this);...li li.../li li.../li /ul And then something like this in jsFunc Function

RE: OT JavaScript compare two objects

2005-04-14 Thread kola.oyedeji
of the member fields of an object? K -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: 14 April 2005 16:19 To: CF-Talk Subject: OT JavaScript compare two objects Is there some way to just compare to objects to see if they are the same object without using some

RE: OT JavaScript compare two objects

2005-04-14 Thread Ian Skinner
, CA C code. C code run. Run code run. Please! - Cynthia Dunning -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, April 14, 2005 11:42 AM To: CF-Talk Subject: RE: OT JavaScript compare two objects Ian when you say the same

RE: OT JavaScript compare two objects

2005-04-14 Thread Jim Davis
-Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Thursday, April 14, 2005 4:27 PM To: CF-Talk Subject: RE: OT JavaScript compare two objects Nope actually the former, two references to the same object. I wanted to pass in a reference to an object (in this case

OT: Javascript Question. JS Wizards needed!

2005-04-13 Thread Che Vilnonis
Any JS wizards out there? I have a simple FORM... select name=FrameWidth1 style=font-family: Arial, Helvetica; font-size: 11px; cfloop index=i from=0 to=40 step=1 option value=i#i#/option /cfloop /select What I would like to do is to display the pulldown's value

Re: OT: Javascript Question. JS Wizards needed!

2005-04-13 Thread Charlie Griefer
(not tested) :) div id=displayValue/div select name=FrameWidth1 style=font-family:arial, helvetica; font-size:11px; onchange=changeDisplay(this.options[this.selectedIndex ].value); cfloop index=i from=0 to=40 option value=#i##i#/option /cfloop script type=text/javascript function

OT: JavaScript clock problem w/ Firefox

2005-04-05 Thread Rebecca Wells
I have a clock javascript that works fine in IE 6.0, but does not display correctly in Firefox 1.0.2 or Netscape 7.0. Can anyone tell me what's up here? I've tried googling for tips, but didn't come up with anything. Here is the script: In the head section: script type=text/javascript function

Re: OT: JavaScript clock problem w/ Firefox

2005-04-05 Thread Ray Champagne
I've had issues with getYear() after creating a js date before in FireFox. It would display 2005 in IE, but in FF it displays 105. I had to use getFullYear() for it to display correctly. I don't have time to look into the getMinutes and getSeconds, etc, but I would be willing to bet a cold

OT: JavaScript onSubmit

2005-01-26 Thread Robert Orlini
I have a JavaScript question. How can I combine these two validation scripts? I need it to do a return confirm and also a validation to make sure the proper field is selected. I'm trying to combine the onSubmit of onsubmit=return checkUserInputs(this); and onSubmit=return verify. SEE BELOW CODE

Re: OT: JavaScript onSubmit

2005-01-26 Thread Claude Schneegans
I'm trying to combine the onSubmit of onsubmit=return checkUserInputs(this); and onSubmit=return verify() Try this: return checkUserInputs(this) return verify(); If the two functions are not used independently anywhere else, you could also just merge them into one unique function verify():

Re: OT: JavaScript onSubmit

2005-01-26 Thread Qasim Rasheed
Have you tried using this SCRIPT LANGUAGE=JAVASCRIPT function checkUserInputs(form) { // One of the trials must be selected. if(form.name.options[0].selected) { alert(Please select a trial.); return false; } verify(); } /script On Wed, 26 Jan

OT: Javascript question

2005-01-24 Thread Rebecca Wells
Can anyone tell me please what do question marks and colon symbols signify in a javascript command? For example: F.value = S 0 ? ?? + F.value : (new Date(2000, 0, 1, S[0], S[1])).USlocaltimeStr(); My guess is that this is some kind of shorthand for an if-then-else control structure, but I've

Re: OT: Javascript question

2005-01-24 Thread Barney Boisvert
You're exactly right. It's kind of like the IIF() function in CF. (condition) ? (do if true) : (do if false); cheers, barneyb On Mon, 24 Jan 2005 10:33:30 -0800, Rebecca Wells [EMAIL PROTECTED] wrote: Can anyone tell me please what do question marks and colon symbols signify in a javascript

Re: OT: Javascript question

2005-01-24 Thread Ben Doom
F.value = S 0 ? ?? + F.value : (new Date(2000, 0, 1, S[0], S[1])).USlocaltimeStr(); IIRC, if the bit before the ? is true, return the value before the colon; else return the bit after the colon. --Ben ~| Find out how

Re: OT: Javascript question

2005-01-24 Thread Claude Schneegans
My guess is that this is some kind of shorthand for an if-then-else Your guess is right. -- ___ 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 question

2005-01-24 Thread Micha Schopman
Javascript supports what they call, the trenary operator (hopely called it right). var result = comparison ? true value : false value; So you can do if(a == b){ return true; }else{ return false; } or return a == b ? true : false; or for the diehard javascript lovers.. *wink*

Re: OT: Javascript Image Preloader Question

2005-01-12 Thread Tony Weeg
gracias! thats the problemo :) wow. later. tw On Wed, 12 Jan 2005 01:29:13 -0500, dave [EMAIL PROTECTED] wrote: no prob ;) Thank tony! hahaha jk tony :) -- Original Message -- From: Ray Champagne [EMAIL PROTECTED] Reply-To:

Re: OT: Javascript Image Preloader Question

2005-01-12 Thread dave
no prob :) to bad u aint here man! 10+ feet of new snow this week! -- Original Message -- From: Tony Weeg [EMAIL PROTECTED] Reply-To: cf-talk@houseoffusion.com Date: Wed, 12 Jan 2005 08:01:54 -0500 gracias! thats the problemo :) wow. later. tw On

Re: OT: Javascript Image Preloader Question

2005-01-12 Thread Ray Champagne
I ain't complaining about the snow in New England any more. Holy shit! Really, 10 feet? Or am I just gullible? You ARE in Alaska, right? Ray At 05:47 PM 1/12/2005, you wrote: no prob :) to bad u aint here man! 10+ feet of new snow this week! -- Original Message

RE: OT: Javascript Image Preloader Question

2005-01-12 Thread Ian Skinner
...-Original Message- ...From: Ray Champagne [mailto:[EMAIL PROTECTED] ...Sent: Wednesday, January 12, 2005 2:50 PM ...To: CF-Talk ...Subject: Re: OT: Javascript Image Preloader Question ... ...I ain't complaining about the snow in New England any more. Holy ...shit! Really, 10 feet? Or am I just

RE: OT: Javascript Image Preloader Question

2005-01-12 Thread dave
Champagne [mailto:[EMAIL PROTECTED] ...Sent: Wednesday, January 12, 2005 2:50 PM ...To: CF-Talk ...Subject: Re: OT: Javascript Image Preloader Question ... ...I ain't complaining about the snow in New England any more. Holy ...shit! Really, 10 feet? Or am I just gullible? You ARE in Alaska, ...right

RE: OT: Javascript Image Preloader Question

2005-01-12 Thread Ray Champagne
, CA C code. C code run. Run code run. Please! - Cynthia Dunning ...-Original Message- ...From: Ray Champagne [mailto:[EMAIL PROTECTED] ...Sent: Wednesday, January 12, 2005 2:50 PM ...To: CF-Talk ...Subject: Re: OT: Javascript Image Preloader Question ... ...I ain't

RE: OT: Javascript Image Preloader Question

2005-01-12 Thread dave
code run. Please! - Cynthia Dunning ...-Original Message- ...From: Ray Champagne [mailto:[EMAIL PROTECTED] ...Sent: Wednesday, January 12, 2005 2:50 PM ...To: CF-Talk ...Subject: Re: OT: Javascript Image Preloader Question ... ...I ain't complaining about the snow in New

RE: OT: Javascript Image Preloader Question

2005-01-12 Thread Ray Champagne
: Ray Champagne [mailto:[EMAIL PROTECTED] ...Sent: Wednesday, January 12, 2005 2:50 PM ...To: CF-Talk ...Subject: Re: OT: Javascript Image Preloader Question ... ...I ain't complaining about the snow in New England any more. Holy ...shit! Really, 10 feet? Or am I just gullible? You

OT: Javascript Image Preloader Question

2005-01-11 Thread Tony Weeg
hola peeps! the script below is s very common, and is supps to preload images into the browsers cache, and when mousing over a menu item, it is to flip to the on, you all know this... anyway when i use it on a new site im building, the images arent preloading. when i mouse over the images,

Re: OT: Javascript Image Preloader Question

2005-01-11 Thread dave
heres what i been using bowl burner !--// //preloader nav images newimage0 = new Image(); newimage0.src = images/out.png; newimage1 = new Image(); newimage1.src = images/over.png; //-- /script -- Original Message -- From: Tony Weeg [EMAIL PROTECTED]

Re: OT: Javascript Image Preloader Question

2005-01-11 Thread dave
whoops bad me script language=JavaScript type=text/javascript !--// //preloader nav images newimage0 = new Image(); newimage0.src = images/out.png; newimage1 = new Image(); newimage1.src = images/over.png; //-- /script -- Original Message -- From: Tony

Re: OT: Javascript Image Preloader Question

2005-01-11 Thread Ray Champagne
Yea, that is the same one that I use on quite a bit of sites. Never seen the one you posted, bonghead. Just thought I'd get in on the name calling too. Ray At 11:54 PM 1/11/2005, you wrote: whoops bad me script language=JavaScript type=text/javascript !--// //preloader nav images newimage0 =

Re: OT: Javascript Image Preloader Question

2005-01-11 Thread dave
lol dude dont bogart my names! -- Original Message -- From: Ray Champagne [EMAIL PROTECTED] Reply-To: cf-talk@houseoffusion.com Date: Wed, 12 Jan 2005 00:03:23 -0500 Yea, that is the same one that I use on quite a bit of sites. Never seen the one you

Re: OT: Javascript Image Preloader Question

2005-01-11 Thread dave
dont ask me what the difference is cause i have inhaled! but u know what i have noticed that for some reason that actually doesnt really cache them to well, ok well maybe it does and what i am sayin is that i still put it as an include on most all the pages. i just have a template like

Re: OT: Javascript Image Preloader Question

2005-01-11 Thread Ray Champagne
i guess mr. toker says he been tokin too much tonight! lol gnite y'all At 12:23 AM 1/12/2005, you wrote: watchit mr toker ... ill have you know, ive never inhaled! :) now, what is the diff, betwixt mines'es and daves'es apart from my designation of a height/width and... THIS! !--//

<    1   2   3   4   5   6   7   >