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'

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 paramete

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 > > then you can just refer to

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 then you can just refer to #infoText in the js. On 5/25/06, Tony <[EMAIL PROTECTED]> wrote: > > Hi there... this should be quick and easy for you Jscript ninja's... > > in this line

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: > marker.openInf

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

RE: OT: Javascript help

2006-04-20 Thread Ben Nadel
Test)); Thanks for everyone's help. I think I now see the local scoping issue that I was dealing with before. I will try to return with a better example. ... Ben Nadel www.bennadel.com -Original Message- From: Tanguy Rademakers [mailto:[EMA

RE: OT: Javascript help

2006-04-20 Thread Ben Nadel
adding data 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 yo

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 ~| Message:

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;"

RE: OT: Javascript help

2006-04-20 Thread Ben Nadel
el www.bennadel.com -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 ('fu

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

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 ; intI+

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 - exc

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 = document.vSTEP2.f

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

2006-02-02 Thread Andy Matthews
That's VERY elegant Jochem. Thank you for that code! -Original Message- From: Jochem van Dieten [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 4:10 PM To: CF-Talk Subject: Re: OT javascript Q: Show/hide divs...works in IE, not in FF. Andy Matthews wrote: > &g

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;i ci = pNode.childNodes[i]; > if (ci.name != "undefined") { > ci.style.display = "none"; > if (ci.n

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 b

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

2006-02-02 Thread Andy Matthews
So can you test for "node.name"? -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 3:24 PM To: CF-Talk Subject: RE: OT javascript Q: Show/hide divs...works in IE, not in FF. Does anyone have any ideas about this? I've talk

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 P

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, including

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;i ~| Message: http://www.houseoffusio

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 t

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 docu

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

Re: OT: Javascript XML parsing

2005-10-04 Thread Robert Munn
;-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 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\\men

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. > > ~~~

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 l

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 act

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... Eac

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,

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

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/

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 http://www.houseoffusion.com/bann

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? > > getElementById("CurrentHighlighted

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='#006

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'; > >

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 background color I am changing. Thanks.. Jeff ~

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 g

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 really

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

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 wrot

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 ONBLUR/ONC

RE: Quick OT Javascript question. PART 2

2005-06-14 Thread Micha Schopman
-- - -Original 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 ge

RE: Quick OT Javascript question. PART 2

2005-06-14 Thread Jeff Waris
nch [mailto:[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 generate

RE: Quick OT Javascript question. PART 2

2005-06-14 Thread Jeff Waris
from 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 > > >

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 Adrian Lynch
rom: 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 needed to grab the currently selected option from a select list. I can now get the selected value using this code... var Sel

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 t

RE: Quick OT Javascript question.

2005-06-14 Thread Jeff Waris
alk > Subject: Re: Quick 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). > > -- > ___

Re: Quick OT Javascript question.

2005-06-13 Thread Claude Schneegans
>>var SelOpt = document...options.selectedIndex; Not sure this will work: selectedIndex is a property of the select object, not of the options array. var SelOpt = document...selectedIndex; should work better. ___ REUSE CODE! Use custom tags; See http://www

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 JW> Blue JW> Docu

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 (Ple

RE: Quick OT Javascript question.

2005-06-13 Thread Matt Osbun
From: Jeff 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

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 opt

Re: Quick OT Javascript question.

2005-06-13 Thread Howie Hamlin
Sorry - a more complete example would be: var SelOpt = document...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 in a select list

Re: Quick OT Javascript question.

2005-06-13 Thread Howie Hamlin
document...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 Find out how iMS Stacks

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 dynamica

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: [EMAI

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 Blue Document.myform.colors[1].value would be the selected one, but how would you figure that out dyna

Re: OT: Javascript question...

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

OT: Javascript question...

2005-05-10 Thread Mark A Kruger
I want to manipulate the "innerText" property of a 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 Pascal Peters
divName.innerHTML += "some new text" + ""; This should work Pascal >I want to manipulate the "innerText" property of a 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? > >-m

RE: OT JavaScript [not Macromedia/Adobe]

2005-04-18 Thread Ian Skinner
Sent: Monday, April 18, 2005 9:45 AM 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 br

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. > > >

OT JavaScript [not Macromedia/Adobe]

2005-04-18 Thread Ian Skinner
Assume the following HTML markup. CalHFA 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 = document.getElementById("G23520050328_name"); What I would like to know, what is the simplest yet

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 re

RE: OT JavaScript compare two objects

2005-04-14 Thread Ian Skinner
mento, 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 y

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 &

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 ... ... ... ... ... And then something like this in jsFunc Function jsFunc(liObj) { for (i=0;i < document.getElementById("list").

Re: OT: Javascript Question. JS Wizards needed!

2005-04-13 Thread Charlie Griefer
(not tested) :) #i# function changeDisplay(fVal) { document.getElementById('displayValue').innerHTML = fVal - 1; } On 4/13/05, Che Vilnonis <[EMAIL PROTECTED]> wrote: > > Any JS wizards out there? I have a simple FORM... > > > > #i# > > > > What I would like to do is to display the

OT: Javascript Question. JS Wizards needed!

2005-04-13 Thread Che Vilnonis
Any JS wizards out there? I have a simple FORM... #i# What I would like to do is to display the pulldown's value (minus 1) further down on the page as 'text' that is not a part of a FORM's input box. As the pulldown's value is changed, the text is changed. Any

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 b

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: function clock() { var time = new Date(

Re: OT: JavaScript onSubmit

2005-01-26 Thread Qasim Rasheed
Have you tried using this function checkUserInputs(form) { // One of the trials must be selected. if(form.name.options[0].selected) { alert("Please select a trial."); return false; } verify(); } On Wed, 26 Jan 2005 14:44:22 -0500, Robert Orli

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 ve

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

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* co

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 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 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 javascr

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 Image Preloader Question

2005-01-12 Thread Ray Champagne
ce something like 1906. > >> > > >> > > >> >-- > >> >Ian Skinner > >> >Web Programmer > >> >BloodSource > >> >www.BloodSource.org > >> >Sacramento, CA > >> > > >> >"C

RE: OT: Javascript Image Preloader Question

2005-01-12 Thread dave
since something like 1906. >> > >> > >> >-- >> >Ian Skinner >> >Web Programmer >> >BloodSource >> >www.BloodSource.org >> >Sacramento, CA >> > >> >"C code. C code run. Run code run. Please!" >>

RE: OT: Javascript Image Preloader Question

2005-01-12 Thread Ray Champagne
; > >-- > >Ian Skinner > >Web Programmer > >BloodSource > >www.BloodSource.org > >Sacramento, CA > > > >"C code. C code run. Run code run. Please!" > >- Cynthia Dunning > > > > > > > >...-Origin

RE: OT: Javascript Image Preloader Question

2005-01-12 Thread dave
ease!" >- 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 complain

RE: OT: Javascript Image Preloader Question

2005-01-12 Thread Ian Skinner
ia 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 England any more. Holy ...shit! Really, 10 feet

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 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. >t

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: cf-ta

Re: OT: Javascript Image Preloader Question

2005-01-11 Thread dave
btw~ the site looks nice tony! must be them invisible gifs!! haha jk but seriously it does ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?

Re: OT: Javascript Image Preloader Question

2005-01-11 Thread dave
no prob ;) Thank tony! hahaha jk tony :) -- Original Message -- From: Ray Champagne <[EMAIL PROTECTED]> Reply-To: cf-talk@houseoffusion.com Date: Wed, 12 Jan 2005 01:22:19 -0500 >Ohh now that is some funny shit. > >Puff puff pass nigga > >Now I can g

Re: OT: Javascript Image Preloader Question

2005-01-11 Thread dave
well tony my friend i have your answer im gunna give u so much SHITTT haha your prob is that ur preloading gifs, which dont exist they should in fact be jpg's !!! thats funny as hell!! hahahahaha ~| Discover CFTicket

Re: OT: Javascript Image Preloader Question

2005-01-11 Thread Ray Champagne
Ohh now that is some funny shit. Puff puff pass nigga Now I can go to bed. that was killing me! Thanks for bringing back my sanity, dave. Ray At 01:20 AM 1/12/2005, you wrote: >well tony my friend i have your answer > >im gunna give u so much SHITTT haha > >your prob is that ur pr

Re: OT: Javascript Image Preloader Question

2005-01-11 Thread dave
well tony my friend i have your answer im gunna give u so much SHITTT haha your prob is that ur preloading gifs, which dont exist they should in fact be jpg's !!! thats funny as hell!! hahahahaha -- Original Message -- From: Tony Weeg <[EMAIL P

Re: OT: Javascript Image Preloader Question

2005-01-11 Thread Ray Champagne
Semi colons maybe? Can't see any other reason. Can't see too well period! Ray At 12:53 AM 1/12/2005, you wrote: >i dont see the diff, and for some stupid reason this doesnt preload my >graphics on this site... > >http://www.captaininvestments.com/index.cfml > > >