RE: OT JavaScript question.

2008-11-12 Thread Jim Davis
> -Original Message-
> From: Ian Skinner [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 12, 2008 4:15 PM
> To: cf-talk
> Subject: Re: OT JavaScript question.
> 
> Adrian Lynch wrote:
> > Or do you mean with?
> >
> > with someObject {
> > var1 = "not";
> > var2 = "sure";
> > var3 = "about";
> > var4 = "this";
> > var5 = "syntax";
> > var6 = "or";
> > var7 = "whether";
> > var8 = "it's a JavaScript";
> > var9 = "thing or not";
> > }
> >
> > alert(someObject.var1);
> 
> Yes that is the one I was looking for!.  I found 'with' to be a very
> poor search term on Google, or any search engine for that matter.

The actual, factual name of this is "Object Literal Notation" - Google
should be more cooperative with that.  ;^)

Jim Davis


~|
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-talk/message.cfm/messageid:315176
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: OT JavaScript question.

2008-11-12 Thread Charlie Griefer
On Wed, Nov 12, 2008 at 1:14 PM, Ian Skinner <[EMAIL PROTECTED]> wrote:

>
> Yes that is the one I was looking for!.  I found 'with' to be a very
> poor search term on Google, or any search engine for that matter.
>

heh.  reminds me of http://bash.org/?514353 :)

-- 
I have failed as much as I have succeeded. But I love my life. I love my
wife. And I wish you my kind of success.


~|
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-talk/message.cfm/messageid:315168
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: OT JavaScript question.

2008-11-12 Thread Ian Skinner
Adrian Lynch wrote:
> Or do you mean with?
>
> with someObject {
>   var1 = "not";
>   var2 = "sure";
>   var3 = "about";
>   var4 = "this";
>   var5 = "syntax";
>   var6 = "or";
>   var7 = "whether";
>   var8 = "it's a JavaScript";
>   var9 = "thing or not";
> }
>
> alert(someObject.var1);

Yes that is the one I was looking for!.  I found 'with' to be a very 
poor search term on Google, or any search engine for that matter.


~|
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-talk/message.cfm/messageid:315167
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: OT JavaScript question.

2008-11-12 Thread Adrian Lynch
Or do you mean with?

with someObject {
var1 = "not";
var2 = "sure";
var3 = "about";
var4 = "this";
var5 = "syntax";
var6 = "or";
var7 = "whether";
var8 = "it's a JavaScript";
var9 = "thing or not";
}

alert(someObject.var1);

Adrian
Building a database of ColdFusion errors at http://cferror.org/

-----Original Message-
From: Ian Skinner
Sent: 12 November 2008 19:34
To: cf-talk
Subject: OT JavaScript question.


Quick question that I just can not think of the right terms to find in 
Google.

There is a syntax short cut in JavaScript if you are assigning several 
properties to the same object.  What is it?

~|
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-talk/message.cfm/messageid:315161
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: OT JavaScript question.

2008-11-12 Thread Andy Matthews
You can do this:

Var something = somethingelse = onemorething = 0;

-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 12, 2008 1:34 PM
To: cf-talk
Subject: OT JavaScript question.

Quick question that I just can not think of the right terms to find in 
Google.

There is a syntax short cut in JavaScript if you are assigning several 
properties to the same object.  What is it?





~|
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-talk/message.cfm/messageid:315160
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: OT JavaScript question.

2008-11-12 Thread Cutter (CFRelated)
var myObj = {
  variableA: 'some value',
  variableB: 12,
  variableC: function(){
   // a function
  }
};

I think, you'll want to test.

Steve "Cutter" Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer
_
http://blog.cutterscrossing.com

Ian Skinner wrote:
> Quick question that I just can not think of the right terms to find in 
> Google.
> 
> There is a syntax short cut in JavaScript if you are assigning several 
> properties to the same object.  What is it?
> 
> 
> 
> 

~|
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-talk/message.cfm/messageid:315159
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


OT JavaScript question.

2008-11-12 Thread Ian Skinner
Quick question that I just can not think of the right terms to find in 
Google.

There is a syntax short cut in JavaScript if you are assigning several 
properties to the same object.  What is it?



~|
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-talk/message.cfm/messageid:315158
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: (ot) Javascript Question...

2008-05-16 Thread Che Vilnonis
Thanks. Because of popup blockers I guess a regular href will have to do. 

-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 16, 2008 4:21 PM
To: CF-Talk
Subject: RE: (ot) Javascript Question...

window.open()

most popup blockers will block it though.

...:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com


-Original Message-
From: Che Vilnonis [mailto:[EMAIL PROTECTED]
Sent: Friday, May 16, 2008 4:14 PM
To: CF-Talk
Subject: (ot) Javascript Question...

I have a form that posts to itself. Once submitted, I create a dynamic url
on the fly.
Using javascript, how can I submit the form to itself and open the new url
in another browser window?

Can this be done w/o creating a 'go between' cf template?

Thanks, Che






~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305526
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: (ot) Javascript Question...

2008-05-16 Thread Bobby Hartsfield
window.open()

most popup blockers will block it though.

..:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com


-Original Message-
From: Che Vilnonis [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 16, 2008 4:14 PM
To: CF-Talk
Subject: (ot) Javascript Question...

I have a form that posts to itself. Once submitted, I create a dynamic url
on the fly.
Using javascript, how can I submit the form to itself and open the new url
in another browser window?

Can this be done w/o creating a 'go between' cf template?

Thanks, Che




~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305524
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


(ot) Javascript Question...

2008-05-16 Thread Che Vilnonis
I have a form that posts to itself. Once submitted, I create a dynamic url
on the fly.
Using javascript, how can I submit the form to itself and open the new url
in another browser window?

Can this be done w/o creating a 'go between' cf template?

Thanks, Che


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305519
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


OT: Javascript Question

2007-04-12 Thread Scott Stewart
Hey all, 

 

 

How would I control a select tag based on this.

 

function updateSelectedJournals(responseStruct) {

$('selectedJournals').innerHTML = "Selected Journals
("+responseStruct.total+")";

$('lstSelectedTerms').innerHTML = responseStruct.lstoutput;

 

 

I have ORAND 

I want the "and" to show up if repsonseStruct.total is greater than 1.

 

Thanks

 

sas

 

 

-- 

Scott Stewart

ColdFusion Developer

 

SSTWebworks

7241 Jillspring Ct.

Springfield, Va. 22152

(703) 220-2835

 

http://www.sstwebworks.com

 



~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade & see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275082
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


OT: Javascript Question

2007-03-07 Thread Brad Wood
Hi guys, I've got a JavaScript question which has me puzzled.  Can an
instance of a JavaScript object "know" the name of its instance?

 

That might not make any sense, so I have some quick sample code.
Consider the following:

 



 

customObject = function()

{

}



customObject.prototype.whoAmI = function()

{

return 'My instance name is ' + ??;

}

 

myObject = new customObject();

 

alert(myObject.whoAmI());





 

What would I need to replace the "??" with to make the output say "My
instance name is myObject"?

this.something??

 

I don't even know if this is possible, but in theory I might have
several instances of the same object in the page and I want to know if
they can be "smart" enough to know which one they are.

 

~Brad



~|
Create Web Applications With ColdFusion MX7 & Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271954
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


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 #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:
> > 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.
> >
> > any idea how to add that into the string, so that it doesnt break it?
> >
> >
> > 
> > // > 
> > function load() {
> >   if (GBrowserIsCompatible()) {
> > var map = new GMap2(document.getElementById
> > ("map"));
> > map.setCenter(new GLatLng(#insert('.',url.lat
> > ,2)#,
> > #insert('.',url.lon,3)#), 13);
> > map.addControl(new GLargeMapControl ());
> > map.addControl(new GMapTypeControl());
> > // Creates a marker at the given point
> > with the given number label
> > function createMarker(point, number) {
> >   var marker = new GMarker(point);
> >   GEvent.addListener(marker, "click",
> > function() {
> > marker.openInfoWindowHtml("#url.address#
> > #url.city#
> > #url.state# #url.zip# Report time: #url.time# Report Date: #url.date#
> > ");
> >   });
> >   return marker;
> > }
> > // Add 1 markers to the map
> > for (var i = 0; i < 1; i++) {
> >   var point = new GLatLng(#insert('.',
> > url.lat,2)#, #insert('.',url.lon,3)#);
> >   map.addOverlay(createMarker(point, i +
> > 1));
> > }
> >   }
> > }
> > 
> > //]]>
> >
> >
> >
> > thanks!
> > tony
> >
> >
>
> 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241537
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


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:
> 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.
>
> any idea how to add that into the string, so that it doesnt break it?
>
>
> 
> // 
> function load() {
>   if (GBrowserIsCompatible()) {
> var map = new GMap2(document.getElementById
> ("map"));
> map.setCenter(new GLatLng(#insert('.',url.lat
> ,2)#,
> #insert('.',url.lon,3)#), 13);
> map.addControl(new GLargeMapControl ());
> map.addControl(new GMapTypeControl());
> // Creates a marker at the given point
> with the given number label
> function createMarker(point, number) {
>   var marker = new GMarker(point);
>   GEvent.addListener(marker, "click",
> function() {
> marker.openInfoWindowHtml("#url.address#
> #url.city#
> #url.state# #url.zip# Report time: #url.time# Report Date: #url.date#
> ");
>   });
>   return marker;
> }
> // Add 1 markers to the map
> for (var i = 0; i < 1; i++) {
>   var point = new GLatLng(#insert('.',
> url.lat,2)#, #insert('.',url.lon,3)#);
>   map.addOverlay(createMarker(point, i +
> 1));
> }
>   }
> }
> 
> //]]>
>
>
>
> thanks!
> tony
>
> 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241498
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


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.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.
>
> any idea how to add that into the string, so that it doesnt break it?
>
>
> 
> // 
> function load() {
>   if (GBrowserIsCompatible()) {
> var map = new GMap2(document.getElementById("map"));
> map.setCenter(new GLatLng(#insert('.',url.lat,2)#,
> #insert('.',url.lon,3)#), 13);
> map.addControl(new GLargeMapControl ());
> map.addControl(new GMapTypeControl());
> // Creates a marker at the given point with 
> the given number label
> function createMarker(point, number) {
>   var marker = new GMarker(point);
>   GEvent.addListener(marker, "click", 
> function() {
> marker.openInfoWindowHtml("#url.address# 
> #url.city#
> #url.state# #url.zip# Report time: #url.time# Report Date: #url.date#
> ");
>   });
>   return marker;
> }
> // Add 1 markers to the map
> for (var i = 0; i < 1; i++) {
>   var point = new 
> GLatLng(#insert('.',url.lat,2)#, #insert('.',url.lon,3)#);
>   map.addOverlay(createMarker(point, i + 1));
> }
>   }
> }
> 
> //]]>
>
>
>
> thanks!
> tony
>

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241497
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


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.

any idea how to add that into the string, so that it doesnt break it?



//
function load() {
  if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(#insert('.',url.lat,2)#,
#insert('.',url.lon,3)#), 13);
map.addControl(new GLargeMapControl ());
map.addControl(new GMapTypeControl());  

// Creates a marker at the given point with the 
given number label
function createMarker(point, number) {
  var marker = new GMarker(point);
  GEvent.addListener(marker, "click", 
function() {
marker.openInfoWindowHtml("#url.address# 
#url.city#
#url.state# #url.zip# Report time: #url.time# Report Date: #url.date#
");
  });
  return marker;
}   
// Add 1 markers to the map
for (var i = 0; i < 1; i++) {
  var point = new 
GLatLng(#insert('.',url.lat,2)#, #insert('.',url.lon,3)#);
  map.addOverlay(createMarker(point, i + 1));
}
  }
}

//]]>
   


thanks!
tony

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241496
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


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 tag, but then when I click on any location within the window, it
closes...I guess because when you focus on one element, you are blurring
another.  Anyone have any suggestions on how to accomplish this or where I
can go to get some help with this?  Any help would be greatly appreciated.

Blessings,
Eric


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230702
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Quick OT Javascript question. PART 2

2005-06-14 Thread Micha Schopman
This is prohibited by specs, a select element is not allowed to contain
a input element.

You might better use either a 2d array -> var tmp [[0,1],[0,1]] or a
struct -> var tmp {name:'value',name:'value'}

Micha Schopman
Project Manager

Modern Media, Databankweg 12 M, 3821 AL  Amersfoort
Tel 033-4535377, Fax 033-4535388
KvK Amersfoort 39081679, Rabo 39.48.05.380



-
Modern Media, Making You Interact Smarter. Onze oplossingen verbeteren
de interactie met uw doelgroep. 
Wilt u meer omzet, lagere kosten of een beter service niveau? Voor meer
informatie zie www.modernmedia.nl 


-
-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 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 the value of a hidden input that is dynamically named
from
the select list value...

Visusally it looks like this...


#name#



I am looking to get the RATING value. 
I can get the selected NAME using the code above, but my attempts to
extract
the hidden variable have been unsuccessful. 

I've tried:

var amt = 'document.myform.' + colortype + '.value';
and
var amt = document.myform.colortype.value';

I'm stumped.. Any suggestions???

Thanks,
Jeff




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209398
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Quick OT Javascript question. PART 2

2005-06-14 Thread Jeff Waris
Yep.. I had to make a couple changes where my hidden list is looped AFTER
the Select Option loop but other than that, its similar to what the code
looks like. I'll give the document.myform[colortype].value; notation a go...
Thanks..

Jeff


> -Original Message-
> From: Adrian Lynch [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 generated HTML will look 
> something like
> this:
> 
> 
> 
>   asas
> 
>   
> 
>   asasa
> 
>   
> 
>   asasas
> 
>   
> 
>   sasasa
> 
> 
> 
> Is that ok for you?
> 
> Ade



~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209395
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Quick OT Javascript question. PART 2

2005-06-14 Thread Jeff Waris
Adam,

I am retrofitting someone else's code.. :) There are a lot of other things I
am leaving out and this all has nothing to do with colors. What I wrote was
a super simplified version of what I am working on. I try not to ask
directly for an answer here but use the information given to me 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
> 
> 
> 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.
> 
> Adam H 
> 
> On 6/14/05, Jeff Waris <[EMAIL PROTECTED]> wrote:
> > 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 the value of a hidden input that is dynamically 
> > named from the select list value...
> > 
> > Visusally it looks like this...
> > 
> > 
> > #name#
> > 
> > 
> > 
> > I am looking to get the RATING value.
> > I can get the selected NAME using the code above, but my 
> attempts to 
> > extract the hidden variable have been unsuccessful.
> > 
> > I've tried:
> > 
> > var amt = 'document.myform.' + colortype + '.value';
> > and
> > var amt = document.myform.colortype.value';
> > 
> > I'm stumped.. Any suggestions???
> > 
> > Thanks,
> > Jeff
> > 
> > 
> > 
> 
> 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209390
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


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.

Adam H 

On 6/14/05, Jeff Waris <[EMAIL PROTECTED]> wrote:
> 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 the value of a hidden input that is dynamically named from
> the select list value...
> 
> Visusally it looks like this...
> 
> 
> #name#
> 
> 
> 
> I am looking to get the RATING value.
> I can get the selected NAME using the code above, but my attempts to extract
> the hidden variable have been unsuccessful.
> 
> I've tried:
> 
> var amt = 'document.myform.' + colortype + '.value';
> and
> var amt = document.myform.colortype.value';
> 
> I'm stumped.. Any suggestions???
> 
> Thanks,
> Jeff
> 
> 
> 

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209387
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Quick OT Javascript question. PART 2

2005-06-14 Thread Adrian Lynch
Yup. Use this notation:

document.myform[colortype].value;

>From the looks of your code, the generated HTML will look something like
this:



asas



asasa



asasas



sasasa



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 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 the value of a hidden input that is dynamically named from
the select list value...

Visusally it looks like this...


#name#



I am looking to get the RATING value.
I can get the selected NAME using the code above, but my attempts to extract
the hidden variable have been unsuccessful.

I've tried:

var amt = 'document.myform.' + colortype + '.value';
and
var amt = document.myform.colortype.value';

I'm stumped.. Any suggestions???

Thanks,
Jeff




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209385
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


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 the value of a hidden input that is dynamically named from
the select list value...

Visusally it looks like this...


#name#



I am looking to get the RATING value. 
I can get the selected NAME using the code above, but my attempts to extract
the hidden variable have been unsuccessful. 

I've tried:

var amt = 'document.myform.' + colortype + '.value';
and
var amt = document.myform.colortype.value';

I'm stumped.. Any suggestions???

Thanks,
Jeff


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209383
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Quick OT Javascript question.

2005-06-14 Thread Jeff Waris
Thanks all for the suggestions... I'll use an incarnation today and see how
it goes...

Claude.. Yeah I know... Outlook does that to me...

Jeff

 

> -Original Message-
> From: Claude Schneegans [mailto:[EMAIL PROTECTED] 
> Sent: Monday, June 13, 2005 5:00 PM
> To: CF-Talk
> 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).
> 
> -- 
> ___
> REUSE CODE! Use custom tags;
> See http://www.contentbox.com/claude/customtags/tagstore.cfm
> (Please send any spam to this address: 
> [EMAIL PROTECTED]) Thanks.
> 
> 
> 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209378
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


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.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209361
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


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

Document.myform.colors.selectedIndex



-Sergey


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209355
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


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 send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209356
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Quick OT Javascript question.

2005-06-13 Thread Matt Osbun
As it happens, that's what I'm doing at the moment.

this.options[this.selectedIndex].value
OR
this.options[this.selectedIndex].text

Depending on which you want.  

So far it's worked in IE and FF

Matt Osbun
Web Developer
Health Systems, International



-Original Message-
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 have in select colors

Red
Green  
Blue

Document.myform.colors[1].value would be the selected one, but how would
you
figure that out dynamically?

Thanks..
Jeff


~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209352
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


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 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 dynamically?
> 
> Thanks..
> Jeff
> 
> 
> 
> 

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209351
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


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 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 dynamically?
> 
> Thanks..
> Jeff
> 
> 
> 
> 

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209354
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


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 up to the competition: 
http://www.coolfusion.com/imssecomparison.cfm

iMS-Lite - the completely free mail server solution for applications and 
application servers
http://www.coolfusion.com/iMSLite


--- 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 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 dynamically?
> 
> Thanks..
> Jeff
> 
> 
> 
> 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209348
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


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 created)
> 
> Say we have in select colors
> 
> Red
> Green  
> Blue
> 
> Document.m7yform.colors[1].value would be the selected one, but how would you
> figure that out dynamically?
> 
> Thanks..
> Jeff
> 
> 
> 
> 

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209350
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


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: [EMAIL PROTECTED]
web: www.electricedgesystems.com 


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209349
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


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 dynamically?

Thanks..
Jeff



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209345
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


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 success. Does anyone know how to get a linebreak in there?
> 
> -mark
> 
> 
> 
> divName.innerText = divName.innerText + "some new text" + "";
> 
> divName.innerText = divName.innerText + "some new text" + /n;
> 
> divName.innerText = divName.innerText + "some new text" + chr(10);
> 
> divName.innerText = divName.innerText + "some new text" + chr(13);
> 
> ---
> 
> Mark A. Kruger, CFG, MCSE
> www.cfwebtools.com
> www.necfug.com
> http://mkruger.cfwebtools.com
> 
> 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206202
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


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





divName.innerText = divName.innerText + "some new text" + "";

divName.innerText = divName.innerText + "some new text" + /n;

divName.innerText = divName.innerText + "some new text" + chr(10);

divName.innerText = divName.innerText + "some new text" + chr(13);

---




Mark A. Kruger, CFG, MCSE
www.cfwebtools.com
www.necfug.com
http://mkruger.cfwebtools.com




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206178
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


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?
>
>-mark
>
>
>
>
>
>divName.innerText = divName.innerText + "some new text" + "";
>
>divName.innerText = divName.innerText + "some new text" + /n;
>
>divName.innerText = divName.innerText + "some new text" + chr(10);
>
>divName.innerText = divName.innerText + "some new text" + chr(13);
>
>---
>
>
>
>
>Mark A. Kruger, CFG, MCSE
>www.cfwebtools.com
>www.necfug.com
>http://mkruger.cfwebtools.com

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206183
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


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 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 idea on how to do
> this?
> 
> Che Vilnonis
> Application Developer
> Advertising Systems Incorporated
> 8470C Remington Avenue
> Pennsauken, NJ 08110
> p: 856.488.2211
> f: 856.488.1990
> www.asitv.com 
> 
> 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202669
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


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 idea on how to do
this?

Che Vilnonis
Application Developer
Advertising Systems Incorporated
8470C Remington Avenue
Pennsauken, NJ 08110
p: 856.488.2211
f: 856.488.1990
www.asitv.com


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202644
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


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* comparisons with regular 
expressions.
 
if(/abc|def/i.test(string)){
 
}
 
Where you test for the existence of abc OR def in string, with the modifier i 
to ignore case.
 


~|
Logware: a new and convenient web-based time tracking application. Start 
tracking and documenting hours spent on a project or with a client with Logware 
today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:191568
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


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.



~|
Logware: a new and convenient web-based time tracking application. Start 
tracking and documenting hours spent on a project or with a client with Logware 
today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:191562
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


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 CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:191555
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


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 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 never seen it documented anywhere.
> 
> 

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 8 invites.

~|
Logware: a new and convenient web-based time tracking application. Start 
tracking and documenting hours spent on a project or with a client with Logware 
today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:191554
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


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 never seen it documented anywhere.

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:191552
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


OT: JavaScript question.

2004-10-01 Thread Ian Skinner
Hopefully this is an easy one, but I'm not sure how to describe it concise enough to Google.

I have the following bit of _javascript_:

node.childNodes[0].>
{
   showHideAllDivs
	(
		navRoot.parentNode.id,
		this.innerHTML.replace(/[^A-Za-z]/g,""),
		this.id
	);
	return false;
} [white space modified for e-mail]

This dynamically assigns a function call to the onClick event of several anchor tags for some DHTML shenanigans.  

The trouble is that the first parameter of the showHideAllDivs() function needs to be the value of navRoot.parentNode.id at the time of this assignment (navRoot is initialized before this code), but instead the event is being created with the navRoot.parentNode.id value un-resolved and it is being resolved at runtime when the anchors are clicked on.  Unfortunately it is then the wrong value and I get errors that I spent a very long time tracking down to this cause.

There has got to be a way to write this to say use the value of navRoot.parentNode.id right now, not wait until later to resolve the value?

TIA

--
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 any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: ot: javascript question

2004-08-17 Thread Scott Brady
I'd say each select should have the same onchange call (
 ) where the checkSels() function will
check every select box and validate that they didn't duplicate a
selection. If they did, then send them back to the one they came from
(which is why you're passing the changed select box into the
function).

Scott

-- 
-
Scott Brady
http://www.scottbrady.net/
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: ot: javascript question

2004-08-16 Thread Daniel Farmer
Because your needs are so specific. I think you're going to have to create your own JS Functions that will prevent these select menus from displaying certain values. 

It's too complex to do it inline like that.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




ot: javascript question

2004-08-16 Thread Tony Weeg
hello good peoples...

i have a _javascript_ question, that really aims for a coupla things...

1. can this be done elegantly?
2. if not, then whats the best non-elegant way?
3. if so, a bit of a point in the right direction...i can READ
_javascript_, most of the time, and tell ya whats going on...however, i
SUCK, with a capital freakin' S at writing it...anyway, im sick of
bugging mike t. all the time with my _javascript_ questions...so i
figured i try here, and im sure he'll read this...but whatever, :)

anyway...

i have, lets say...

1. 15 select elements on a page.  
2. each is named uniquely.
3. all are filled with 1-15 as the values (indexes 0-14)
4. if a user chooses, 14 in element 1 (index 0) i need to prevent them
from choosing 14 in ANY other element.

i (think) i can do it with something sort of LONG and VERY unelegant inline 
 (this.selectedIndex==0){2.something.Whatever};"
onChange() event, but i think there has to be a BETTER way to do it.

id love to learn this, is there a place to get this kind of _javascript_
learning?  ive picked up EVERY thing i can about a lot of web
programming languages, just cant crack the _javascript_ code...

help ??? :)

cheers.
-- 
tony

Tony Weeg
human.
email: tonyweeg [at] gmail [dot] com
blog: http://www.revolutionwebdesign.com/blog/

Check out http://www.antiwrap.com to send websites to your friends.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: OT: JavaScript Question.

2004-08-13 Thread S . Isaac Dealey
> I have a money field that needs to be greater than $0.01.
> The field may
> or may not contain a dollar sign ($) and may or may not
> contain a period
> (.) as a dollar/cents split. When the form loads the
> default value is
> $0.00

> What would be the easiest way to verify the amount is
> greater than 1
> cent (0.01)... Using _javascript_ of course :-) ?

> Thanks!

> Mike

Well for starters, put the $ in the text outside the field and make
sure people enter floating point numbers when they enter something...
Once you've done that, you can use parseFloat() to turn the string
value of the field into a numeric or a "NaN"...

function checkDollarAmount(formfield) {
  var dollars = parseFloat(formfield.value);
  if (dollars == 'NaN') { alert("Moron!"); return false; }
  else if (dollars < 0.01) { alert("Miser!"); return false; }
  else { return true; }
}

s. isaac dealey 954.927.5117
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.sys-con.com/story/?storyid=44477&DE=1
http://www.sys-con.com/story/?storyid=45569&DE=1
http://www.fusiontap.com
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




OT: JavaScript Question.

2004-08-13 Thread Tangorre, Michael
I have a money field that needs to be greater than $0.01. The field may
or may not contain a dollar sign ($) and may or may not contain a period
(.) as a dollar/cents split. When the form loads the default value is
$0.00

What would be the easiest way to verify the amount is greater than 1
cent (0.01)... Using _javascript_ of course :-) ?

Thanks!

Mike
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: OT: Javascript question

2003-09-24 Thread Ben Doom
You should be able to just change screenX and screenY to place the upper 
left hand corner of the popup anywhere you want.

--Ben Doom


Eric Creese wrote:

> Here is the code I use to call a popupwindow. I want to beable to place the smaller 
> popup window where I want, pereferabley in the lower right corner. How do I do this?
> 
> 
>   myWin= open(url, "displayWindow", 
> 
> "width=415,height=400,status=no,scrollbars=yes,toolbar=no,menubar=no,location=yes,screenX=500,screenY=250");
> 
~|
Message: http://www.houseoffusion.com/lists.cfm?link=i:4:138311
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm


OT: Javascript question

2003-09-24 Thread Eric Creese
Here is the code I use to call a popupwindow. I want to beable to place the smaller 
popup window where I want, pereferabley in the lower right corner. How do I do this?


  myWin= open(url, "displayWindow", 

"width=415,height=400,status=no,scrollbars=yes,toolbar=no,menubar=no,location=yes,screenX=500,screenY=250");
~|
Message: http://www.houseoffusion.com/lists.cfm?link=i:4:138309
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com


Re: OT: JavaScript question??

2003-08-26 Thread Charlie Griefer
selectedIndex of -1 indicates that no options have been selected.

so if (document...selectedIndex < 0) { alert('no options have been
selected'); }

charlie

- Original Message - 
From: "Salvador Delacosta" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, August 26, 2003 9:35 AM
Subject: Re: OT: JavaScript question??


> Mario,
>
> try doing this.
> document.selectedIndex == null
>
> I believe that will tell check if the user has selected anything in the
> drop-down box.
>
> Hope this helps.
>
>
> >From: "Ciliotta, Mario" <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: CF-Talk <[EMAIL PROTECTED]>
> >Subject: OT: JavaScript question??
> >Date: Fri, 22 Aug 2003 18:07:16 -0400
> >
> >Hi all,
> >
> >Sorry for the OT on JavaScript but I cannot figure out how to tell if
> >someone has selected in option in the box.  I know how to do it if the I
> >add another option at the beginning: Please select
> >one... and then use : documentoptions[0].selected to
> >see if the first one is selected but I cannot figure out how to do it
> >below.  The users want the boxed sized to be the same a recordcount of
the
> >query.
> >
> >
> >
> > 1700 - CORPORATE
> >SERVICES
> >  1701 - BUILDING &
> >FACILITIES
> >   1702 - CSD
> >FINANCE & ACCOUNTS PAYABLE
> >   1703 - SECURITY
> > 1704 - INFORMATION
> >MANAGEMENT
> > 1706 - GSS
> > 1707 - ICSG
> > 1708 - GENERAL
> >SERVICES
> > 1710 - LIS & ARM
> >
> >
> >Thanks
> >Mario
> >
> >This message is for the named person's use only. It may contain sensitive
> >and private proprietary or legally privileged information. No
> >confidentiality or privilege is waived or lost by any mistransmission. If
> >you are not the intended recipient, please immediately delete it and all
> >copies of it from your system, destroy any hard copies of it and notify
the
> >sender. You must not, directly or indirectly, use, disclose, distribute,
> >print, or copy any part of this message if you are not the intended
> >recipient. CREDIT SUISSE GROUP and each legal entity in the CREDIT SUISSE
> >FIRST BOSTON or CREDIT SUISSE ASSET MANAGEMENT business units of CREDIT
> >SUISSE FIRST BOSTON reserve the right to monitor all e-mail
communications
> >through its networks. Any views expressed in this message are those of
the
> >individual sender, except where the message states otherwise and the
sender
> >is authorized to state them to be the views of any such entity.
> >Unless otherwise stated, any pricing information given in this message is
> >indicative  only, is subject to change and does not constitute an offer
to
> >deal at any price quoted. Any reference to the terms of executed
> >transactions should be treated as  preliminary only and subject to our
> >formal written confirmation.
> >
> >
> >
>
> 
~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm


Re: OT: JavaScript question??

2003-08-26 Thread Salvador Delacosta
Mario,

try doing this.
document.selectedIndex == null

I believe that will tell check if the user has selected anything in the 
drop-down box.

Hope this helps.


>From: "Ciliotta, Mario" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: CF-Talk <[EMAIL PROTECTED]>
>Subject: OT: JavaScript question??
>Date: Fri, 22 Aug 2003 18:07:16 -0400
>
>Hi all,
>
>Sorry for the OT on JavaScript but I cannot figure out how to tell if 
>someone has selected in option in the box.  I know how to do it if the I 
>add another option at the beginning: Please select 
>one... and then use : documentoptions[0].selected to 
>see if the first one is selected but I cannot figure out how to do it 
>below.  The users want the boxed sized to be the same a recordcount of the 
>query.
>
>
>
>   1700 - CORPORATE 
>SERVICES
>   1701 - BUILDING & 
>FACILITIES
>   1702 - 
> CSD 
>FINANCE & ACCOUNTS PAYABLE
> 1703 - SECURITY
>   1704 - 
> INFORMATION 
>MANAGEMENT
>   1706 - GSS
>   1707 - ICSG
>   1708 - GENERAL 
>SERVICES
>   1710 - LIS & ARM
>
>
>Thanks
>Mario
>
>This message is for the named person's use only. It may contain sensitive 
>and private proprietary or legally privileged information. No 
>confidentiality or privilege is waived or lost by any mistransmission. If 
>you are not the intended recipient, please immediately delete it and all 
>copies of it from your system, destroy any hard copies of it and notify the 
>sender. You must not, directly or indirectly, use, disclose, distribute, 
>print, or copy any part of this message if you are not the intended 
>recipient. CREDIT SUISSE GROUP and each legal entity in the CREDIT SUISSE 
>FIRST BOSTON or CREDIT SUISSE ASSET MANAGEMENT business units of CREDIT 
>SUISSE FIRST BOSTON reserve the right to monitor all e-mail communications 
>through its networks. Any views expressed in this message are those of the 
>individual sender, except where the message states otherwise and the sender 
>is authorized to state them to be the views of any such entity.
>Unless otherwise stated, any pricing information given in this message is 
>indicative  only, is subject to change and does not constitute an offer to 
>deal at any price quoted. Any reference to the terms of executed 
>transactions should be treated as  preliminary only and subject to our 
>formal written confirmation.
>
>
>

~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm


Re: OT: JavaScript question??

2003-08-26 Thread Salvador Delacosta
Mario,

try doing this.
document.selectedIndex == null

I believe that will tell check if the user has selected anything in the 
drop-down box.

Hope this helps.


>From: "Ciliotta, Mario" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: CF-Talk <[EMAIL PROTECTED]>
>Subject: OT: JavaScript question??
>Date: Fri, 22 Aug 2003 18:07:16 -0400
>
>Hi all,
>
>Sorry for the OT on JavaScript but I cannot figure out how to tell if 
>someone has selected in option in the box.  I know how to do it if the I 
>add another option at the beginning: Please select 
>one... and then use : documentoptions[0].selected to 
>see if the first one is selected but I cannot figure out how to do it 
>below.  The users want the boxed sized to be the same a recordcount of the 
>query.
>
>
>
>   1700 - CORPORATE 
>SERVICES
>   1701 - BUILDING & 
>FACILITIES
>   1702 - 
> CSD 
>FINANCE & ACCOUNTS PAYABLE
> 1703 - SECURITY
>   1704 - 
> INFORMATION 
>MANAGEMENT
>   1706 - GSS
>   1707 - ICSG
>   1708 - GENERAL 
>SERVICES
>   1710 - LIS & ARM
>
>
>Thanks
>Mario
>
>This message is for the named person's use only. It may contain sensitive 
>and private proprietary or legally privileged information. No 
>confidentiality or privilege is waived or lost by any mistransmission. If 
>you are not the intended recipient, please immediately delete it and all 
>copies of it from your system, destroy any hard copies of it and notify the 
>sender. You must not, directly or indirectly, use, disclose, distribute, 
>print, or copy any part of this message if you are not the intended 
>recipient. CREDIT SUISSE GROUP and each legal entity in the CREDIT SUISSE 
>FIRST BOSTON or CREDIT SUISSE ASSET MANAGEMENT business units of CREDIT 
>SUISSE FIRST BOSTON reserve the right to monitor all e-mail communications 
>through its networks. Any views expressed in this message are those of the 
>individual sender, except where the message states otherwise and the sender 
>is authorized to state them to be the views of any such entity.
>Unless otherwise stated, any pricing information given in this message is 
>indicative  only, is subject to change and does not constitute an offer to 
>deal at any price quoted. Any reference to the terms of executed 
>transactions should be treated as  preliminary only and subject to our 
>formal written confirmation.
>
>
>

~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm


Re: OT: JavaScript question??

2003-08-25 Thread Salvador Delacosta
Mario,

try doing this.
document.selectedIndex == null

I believe that will tell check if the user has selected anything in the 
drop-down box.

Hope this helps.


>From: "Ciliotta, Mario" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: CF-Talk <[EMAIL PROTECTED]>
>Subject: OT: JavaScript question??
>Date: Fri, 22 Aug 2003 18:07:16 -0400
>
>Hi all,
>
>Sorry for the OT on JavaScript but I cannot figure out how to tell if 
>someone has selected in option in the box.  I know how to do it if the I 
>add another option at the beginning: Please select 
>one... and then use : documentoptions[0].selected to 
>see if the first one is selected but I cannot figure out how to do it 
>below.  The users want the boxed sized to be the same a recordcount of the 
>query.
>
>
>
>   1700 - CORPORATE 
>SERVICES
>   1701 - BUILDING & 
>FACILITIES
>   1702 - 
> CSD 
>FINANCE & ACCOUNTS PAYABLE
> 1703 - SECURITY
>   1704 - 
> INFORMATION 
>MANAGEMENT
>   1706 - GSS
>   1707 - ICSG
>   1708 - GENERAL 
>SERVICES
>   1710 - LIS & ARM
>
>
>Thanks
>Mario
>
>This message is for the named person's use only. It may contain sensitive 
>and private proprietary or legally privileged information. No 
>confidentiality or privilege is waived or lost by any mistransmission. If 
>you are not the intended recipient, please immediately delete it and all 
>copies of it from your system, destroy any hard copies of it and notify the 
>sender. You must not, directly or indirectly, use, disclose, distribute, 
>print, or copy any part of this message if you are not the intended 
>recipient. CREDIT SUISSE GROUP and each legal entity in the CREDIT SUISSE 
>FIRST BOSTON or CREDIT SUISSE ASSET MANAGEMENT business units of CREDIT 
>SUISSE FIRST BOSTON reserve the right to monitor all e-mail communications 
>through its networks. Any views expressed in this message are those of the 
>individual sender, except where the message states otherwise and the sender 
>is authorized to state them to be the views of any such entity.
>Unless otherwise stated, any pricing information given in this message is 
>indicative  only, is subject to change and does not constitute an offer to 
>deal at any price quoted. Any reference to the terms of executed 
>transactions should be treated as  preliminary only and subject to our 
>formal written confirmation.
>
>
>
~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Get the mailserver that powers this list at 
http://www.coolfusion.com


OT: JavaScript question??

2003-08-22 Thread Ciliotta, Mario
Hi all,

Sorry for the OT on JavaScript but I cannot figure out how to tell if someone has 
selected in option in the box.  I know how to do it if the I add another option at the 
beginning: Please select one... and then use : 
documentoptions[0].selected to see if the first one is selected but I cannot 
figure out how to do it below.  The users want the boxed sized to be the same a 
recordcount of the query.



1700 - CORPORATE 
SERVICES 
1701 - BUILDING & 
FACILITIES
1702 - 
CSD FINANCE & ACCOUNTS PAYABLE 
  1703 - SECURITY
1704 - 
INFORMATION MANAGEMENT
1706 - GSS
1707 - ICSG
1708 - GENERAL 
SERVICES
1710 - LIS & ARM


Thanks
Mario

This message is for the named person's use only. It may contain sensitive and private 
proprietary or legally privileged information. No confidentiality or privilege is 
waived or lost by any mistransmission. If you are not the intended recipient, please 
immediately delete it and all copies of it from your system, destroy any hard copies 
of it and notify the sender. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the intended 
recipient. CREDIT SUISSE GROUP and each legal entity in the CREDIT SUISSE FIRST BOSTON 
or CREDIT SUISSE ASSET MANAGEMENT business units of CREDIT SUISSE FIRST BOSTON reserve 
the right to monitor all e-mail communications through its networks. Any views 
expressed in this message are those of the individual sender, except where the message 
states otherwise and the sender is authorized to state them to be the views of any 
such entity.
Unless otherwise stated, any pricing information given in this message is indicative  
only, is subject to change and does not constitute an offer to deal at any price 
quoted. Any reference to the terms of executed transactions should be treated as  
preliminary only and subject to our formal written confirmation.


~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm


Re: OT JavaScript question

2003-07-23 Thread Matthew Walker
Yeah, it's the only one I could think of without opening Topstyle. I guess
I'm colonised by Microsoft.

- Original Message - 
From: "Craig Dudley" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, July 24, 2003 1:04 AM
Subject: RE: OT JavaScript question


> Hand is not valid css2, use pointer, ie
>
> IMG {
> cursor : pointer;
> }
>
> I'm pretty sure 'hand' only works on ie. It deffinatley doesn't work on
> Mozilla/NS6+
>
> -Original Message-
> From: Matthew Walker [mailto:[EMAIL PROTECTED]
> Sent: 22 July 2003 22:20
> To: CF-Talk
> Subject: Re: OT JavaScript question
>
>
> Well,  the default behaviour is that you define a cursor e.g.
>
> IMG {
> cursor : hand;
> }
>
> in your stylesheet so that anything pointing to given screen element
> will use that pointer. Or do you want the pointer to stay permanently
> changed?
>
> Matthew Walker
> Electric Sheep Web
> http://www.electricsheep.co.nz/
>
>
> ----- Original Message - 
> From: "Ian Skinner" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Wednesday, July 23, 2003 3:17 AM
> Subject: OT JavaScript question
>
>
> > Is there a way in JavaScript to change the state of the mouse pointer
> > onMouseOver for example?
> >
> > --
> > Ian Skinner
> > Web Programmer
> > BloodSource
> > Sacramento, CA
> >
> >
>
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: OT JavaScript question

2003-07-23 Thread Craig Dudley
Hand is not valid css2, use pointer, ie

IMG {
cursor : pointer;
}

I'm pretty sure 'hand' only works on ie. It deffinatley doesn't work on
Mozilla/NS6+

-Original Message-
From: Matthew Walker [mailto:[EMAIL PROTECTED] 
Sent: 22 July 2003 22:20
To: CF-Talk
Subject: Re: OT JavaScript question


Well,  the default behaviour is that you define a cursor e.g.

IMG {
cursor : hand;
}

in your stylesheet so that anything pointing to given screen element
will use that pointer. Or do you want the pointer to stay permanently
changed?

Matthew Walker
Electric Sheep Web
http://www.electricsheep.co.nz/


- Original Message - 
From: "Ian Skinner" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, July 23, 2003 3:17 AM
Subject: OT JavaScript question


> Is there a way in JavaScript to change the state of the mouse pointer 
> onMouseOver for example?
>
> --
> Ian Skinner
> Web Programmer
> BloodSource
> Sacramento, CA
>
> 

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: OT JavaScript question

2003-07-22 Thread Ian Skinner
Nope yours and Tony's suggestions were exactly what I need to know.

HOF lists can answer anything!

Ian Skinner
Web Programmer
Sierra Outdoor Recreation
www.SierraOutdoorReceation.com <http://www.SierraOutdoorReceation.com>


  _

I've stopped 17,855 spam messages. You can too!
Get your free, safe spam protection at http://www.cloudmark.com/spamnetsig/}

-Original Message-
From: Matthew Walker [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 2:20 PM
To: CF-Talk
Subject: Re: OT JavaScript question


Well,  the default behaviour is that you define a cursor e.g.

IMG {
cursor : hand;
}

in your stylesheet so that anything pointing to given screen element will
use that pointer. Or do you want the pointer to stay permanently changed?

Matthew Walker
Electric Sheep Web
http://www.electricsheep.co.nz/


- Original Message -
From: "Ian Skinner" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, July 23, 2003 3:17 AM
Subject: OT JavaScript question


> Is there a way in JavaScript to change the state of the mouse pointer
> onMouseOver for example?
>
> --
> Ian Skinner
> Web Programmer
> BloodSource
> Sacramento, CA
>
>

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Re: OT JavaScript question

2003-07-22 Thread Matthew Walker
Well,  the default behaviour is that you define a cursor e.g.

IMG {
cursor : hand;
}

in your stylesheet so that anything pointing to given screen element will
use that pointer. Or do you want the pointer to stay permanently changed?

Matthew Walker
Electric Sheep Web
http://www.electricsheep.co.nz/


- Original Message - 
From: "Ian Skinner" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, July 23, 2003 3:17 AM
Subject: OT JavaScript question


> Is there a way in JavaScript to change the state of the mouse pointer
> onMouseOver for example?
>
> --
> Ian Skinner
> Web Programmer
> BloodSource
> Sacramento, CA
>
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: OT JavaScript question

2003-07-22 Thread Tony Weeg
supps. you can with css

http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=css+mouse+pointer
s

gives you this

http://www.stewshack.com/css/mouse.asp

tony weeg
uncertified advanced cold fusion developer
tony at navtrak dot net
www.navtrak.net
office 410.548.2337
fax 410.860.2337


-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 22, 2003 11:17 AM
To: CF-Talk
Subject: OT JavaScript question


Is there a way in JavaScript to change the state of the mouse pointer
onMouseOver for example?

--
Ian Skinner
Web Programmer
BloodSource
Sacramento, CA


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



OT JavaScript question

2003-07-22 Thread Ian Skinner
Is there a way in JavaScript to change the state of the mouse pointer
onMouseOver for example?

--
Ian Skinner
Web Programmer
BloodSource
Sacramento, CA

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: -OT- Javascript Question - follow up

2003-01-17 Thread Lofback, Chris
OK, now that I've seen your code, here's my suggestion.  Instead of the
VerifyCode() function, use this:

function onChangeHandler(oField) {
oField.value = oField.value.toUpperCase();
if (oField.value != "A") {
errorMsg = "Data "+oField.value+" in "+oField.name+" is
invalid.";
window.alert(errorMsg);
oField.value = "A";
oField.focus();
oField.select();
return false;
}
return true;
}

Then modify your form fields like this:



That should do it.

Chris Lofback
Sr. Web Developer

TRX Integration
28051 US 19 N., Ste. C
Clearwater, FL  33761
www.trxi.com


> -Original Message-
> From: Thane Sherrington [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 17, 2003 9:25 AM
> To: CF-Talk
> Subject: RE: -OT- Javascript Question - follow up
> 
> 
> At 11:41 AM 01/16/03 -0500, Lofback, Chris wrote:
> >Use "formField.focus();"
> 
> I tried this.  No soap.  Interestingly enough, it works in NS 
> 4.8, but not 
> in IE 6.0.2800.1106 (love that numbering scheme.)
> 
> And I just tried it on another machine with IE 5.5, and the same 
> thing.  The alert displays, but when one clicks OK, it moves 
> to the next 
> field.  The code looks like this:
> 
> 
>  function VerifyCode(formField)
>  {
>  if (formField.value != "A")
>  {
>  errorMsg="Data "+formField.value+" in 
> "+formField.name+" is invalid.";
>  window.alert(errorMsg);
>  formField.value="A";
>  formField.focus();
>  formField.select();
>  return false;
>  }
>  }
> 
> 
> And you can see the working code here:
> 
> http://www.stuffbythane.com/working/test2.cfm
> 
> Thanks for any advice.
> 
> T 
> 
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




RE: -OT- Javascript Question - follow up

2003-01-17 Thread Thane Sherrington
At 11:41 AM 01/16/03 -0500, Lofback, Chris wrote:
>Use "formField.focus();"

I tried this.  No soap.  Interestingly enough, it works in NS 4.8, but not 
in IE 6.0.2800.1106 (love that numbering scheme.)

And I just tried it on another machine with IE 5.5, and the same 
thing.  The alert displays, but when one clicks OK, it moves to the next 
field.  The code looks like this:


 function VerifyCode(formField)
 {
 if (formField.value != "A")
 {
 errorMsg="Data "+formField.value+" in 
"+formField.name+" is invalid.";
 window.alert(errorMsg);
 formField.value="A";
 formField.focus();
 formField.select();
 return false;
 }
 }


And you can see the working code here:

http://www.stuffbythane.com/working/test2.cfm

Thanks for any advice.

T 

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




RE: -OT- Javascript Question - follow up

2003-01-16 Thread Lofback, Chris
Use "formField.focus();"

Chris Lofback
Sr. Web Developer

TRX Integration
28051 US 19 N., Ste. C
Clearwater, FL  33761
www.trxi.com


> -Original Message-
> From: Thane Sherrington [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 16, 2003 10:40 AM
> To: CF-Talk
> Subject: RE: -OT- Javascript Question - follow up
> 
> 
> At 09:16 AM 01/16/03 -0500, Timothy Heald wrote:
> >function VerifyCode(thisField){
> > alert(thisField.name);
> >}
> 
> This worked, but now I'm having a problem with the focus.  
> I'm using the 
> following script.
> 
> 
>  function VerifyCode(formField)
>  {
>  if (formField.value != "A")
>  {
>  errorMsg="Data "+formField.value+" in 
> "+formField.name+" is invalid.";
>  window.alert(errorMsg);
>  document.Calendar.Day1.focus();
>  return false;
>  }
>  }
> 
> 
> I'm calling the script with this code:
>  onChange="this.value=this.value.toUpperCase();VerifyCode(this);">
> 
> If I put in the wrong code, then alert shows, but focus moves 
> to the next 
> field.
> 
> Any help would be appreciated.
> 
> T 
> 
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




RE: -OT- Javascript Question - follow up

2003-01-16 Thread Thane Sherrington
At 09:16 AM 01/16/03 -0500, Timothy Heald wrote:
>function VerifyCode(thisField){
> alert(thisField.name);
>}

This worked, but now I'm having a problem with the focus.  I'm using the 
following script.


 function VerifyCode(formField)
 {
 if (formField.value != "A")
 {
 errorMsg="Data "+formField.value+" in 
"+formField.name+" is invalid.";
 window.alert(errorMsg);
 document.Calendar.Day1.focus();
 return false;
 }
 }


I'm calling the script with this code:


If I put in the wrong code, then alert shows, but focus moves to the next 
field.

Any help would be appreciated.

T 

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




RE: -OT- Javascript Question

2003-01-16 Thread Thane Sherrington
tAt 09:16 AM 01/16/03 -0500, Timothy Heald wrote:
>say your What do you name the variable in your function definition?
>
>function VerifyCode(thisField){
> alert(thisField.name);
>}
>
>That should work.

Excellent.  Thanks.

T 

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




Re: -OT- Javascript Question

2003-01-16 Thread Marius Milosav
you can use this.name

Marius Milosav
www.scorpiosoft.com
It's not about technology, it's about people.
Virtual Company (VICO) Application Demo
www.scorpiosoft.com/vicodemo/login.cfm

- Original Message -
From: "Thane Sherrington" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, January 16, 2003 9:12 AM
Subject: -OT- Javascript Question


> I'm passing a field name to a javascript function like this:
> onchange="VerifyCode(this);"
>
> And I want to display the name of the field in the function, like this:
>
> var ErrorMsg="Code is wrong in"+PassedFieldName;
> Alert(ErrorMsg);
>
> But when I do that, I get [object] instead of the fieldname.  Is there a
> way to do this?
>
> T
>
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




RE: -OT- Javascript Question

2003-01-16 Thread Timothy Heald
say your What do you name the variable in your function definition?

function VerifyCode(thisField){
alert(thisField.name);
}

That should work.

Tim

-Original Message-
From: Thane Sherrington [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 16, 2003 9:13 AM
To: CF-Talk
Subject: -OT- Javascript Question


I'm passing a field name to a javascript function like this:
onchange="VerifyCode(this);"

And I want to display the name of the field in the function, like this:

var ErrorMsg="Code is wrong in"+PassedFieldName;
Alert(ErrorMsg);

But when I do that, I get [object] instead of the fieldname.  Is there a 
way to do this?

T 


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




-OT- Javascript Question

2003-01-16 Thread Thane Sherrington
I'm passing a field name to a javascript function like this:
onchange="VerifyCode(this);"

And I want to display the name of the field in the function, like this:

var ErrorMsg="Code is wrong in"+PassedFieldName;
Alert(ErrorMsg);

But when I do that, I get [object] instead of the fieldname.  Is there a 
way to do this?

T 

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




Re: Sorta OT: Javascript Question/PayPal question

2002-06-01 Thread Justin Scott

As someone else already pointed out, look into their IPN features for
automatic account upgrades, etc.  If you use the item purchase wizard on
their site, you can use the advanced section, IIRC, to define a URL to
direct to once the transaction is complete, aka "thank you" page.

-Justin Scott, Lead Developer
 Sceiron Internet Services, Inc.
 http://www.sceiron.com


- Original Message -
From: "Mark Smeets" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Saturday, June 01, 2002 8:25 PM
Subject: Sorta OT: Javascript Question/PayPal question


> Hello everyone,
>
> I've 2 questions, they are doozies too.
>
> Client wants to sell his little online e-book for 5$/chapter, decided to
go
> with PayPal beceause well, no funds to spend on things like verisign and
so
> forth. (Yes I know about some of the horror stories of PayPal.)
>
> First, I don't think you're able to re-direct the user back to a "thank
you"
> page after they've made the purchase.  So this leads to a problem, I've
got
> the e-book in question under a registration system, once you made the
> purchase, the registration is already complete and you can now login and
> read...that's the way I wish it was going to work but alas no.
>
> Here's what I've done.
>
> I've made an "instruction" screen that tells the user what to do. First go
> to paypal, then once you've paid, you can register and go on your merry
way.
>
> As some of you may have already guessed this leads to a huge
> problem...trust! So the script I am looking for does the following:
>
> The user cannot click on link 2 until he clicks on link 1.
>
> Again that still leaves the question of trust but right now that's the
best
> option I can come up with. I'm not too sure how I can track a user at a
> different website and make sure she/he's going through the PayPal site.
>
> Any feedback, ideas, ways to shoot myself in the foot would be
appreciated.
>
> --
> Mark Smeets / stranger0 / ICQ: 1062196
> [EMAIL PROTECTED]
> http://www.prowerks.com/stranger
>
> "Life is a series of small victories" - Gene Simmons
>
>
> FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
>

__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Sorta OT: Javascript Question/PayPal question

2002-06-01 Thread Jason Miller

Probably not much help - but in the least you can check the refering site with
#CGI.referer# and it if contains paypal.com or something - you can say thanks or
- please pay through paypal. But that assumes they are paying through paypal and
coming right back.

And of course - paypal did come up with some tools - View this link
http://www.paypal.com/cgi-bin/webscr?cmd=p/xcl/rec/ipn-intro-outside

THey will send you a verified response from their servers containing specific
information at which time you check and can welcome the customer back securely.

Enjoy
jay miller

Mark Smeets wrote:

> Hello everyone,
>
> I've 2 questions, they are doozies too.
>
> Client wants to sell his little online e-book for 5$/chapter, decided to go
> with PayPal beceause well, no funds to spend on things like verisign and so
> forth. (Yes I know about some of the horror stories of PayPal.)
>
> First, I don't think you're able to re-direct the user back to a "thank you"
> page after they've made the purchase.  So this leads to a problem, I've got
> the e-book in question under a registration system, once you made the
> purchase, the registration is already complete and you can now login and
> read...that's the way I wish it was going to work but alas no.
>
> Here's what I've done.
>
> I've made an "instruction" screen that tells the user what to do. First go
> to paypal, then once you've paid, you can register and go on your merry way.
>
> As some of you may have already guessed this leads to a huge
> problem...trust! So the script I am looking for does the following:
>
> The user cannot click on link 2 until he clicks on link 1.
>
> Again that still leaves the question of trust but right now that's the best
> option I can come up with. I'm not too sure how I can track a user at a
> different website and make sure she/he's going through the PayPal site.
>
> Any feedback, ideas, ways to shoot myself in the foot would be appreciated.
>
> --
> Mark Smeets / stranger0 / ICQ: 1062196
> [EMAIL PROTECTED]
> http://www.prowerks.com/stranger
>
> "Life is a series of small victories" - Gene Simmons
>
> FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Sorta OT: Javascript Question/PayPal question

2002-06-01 Thread Mark Smeets

Hello everyone,

I've 2 questions, they are doozies too.

Client wants to sell his little online e-book for 5$/chapter, decided to go
with PayPal beceause well, no funds to spend on things like verisign and so
forth. (Yes I know about some of the horror stories of PayPal.)

First, I don't think you're able to re-direct the user back to a "thank you"
page after they've made the purchase.  So this leads to a problem, I've got
the e-book in question under a registration system, once you made the
purchase, the registration is already complete and you can now login and
read...that's the way I wish it was going to work but alas no.

Here's what I've done.

I've made an "instruction" screen that tells the user what to do. First go
to paypal, then once you've paid, you can register and go on your merry way.

As some of you may have already guessed this leads to a huge
problem...trust! So the script I am looking for does the following:

The user cannot click on link 2 until he clicks on link 1.

Again that still leaves the question of trust but right now that's the best
option I can come up with. I'm not too sure how I can track a user at a
different website and make sure she/he's going through the PayPal site.

Any feedback, ideas, ways to shoot myself in the foot would be appreciated.

--
Mark Smeets / stranger0 / ICQ: 1062196
[EMAIL PROTECTED]
http://www.prowerks.com/stranger

"Life is a series of small victories" - Gene Simmons


FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: OT JavaScript Question

2001-12-13 Thread Alex

The to programming is not to repeat. Anyway, you can call a function from
a function. 
function a (){ 
b();
}
function b (){
alert "hi";
}

On Wed, 12 Dec 2001, Double Down wrote:

> I have several different Java Scripts that I want to run at once. All of
> them have to deal with checking a form.  I want to run all of them at
> once, but each one requires a different function, I want to combine all
> of them into one function and run them at the same time.
>  
> Can anyone help with this?
>  
> Thanks
>  
>  
> 
> 
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: OT JavaScript Question

2001-12-12 Thread Don Vawter

function master(){
f1();
f2();
..
fn();
}

or am I missing something?


- Original Message - 
From: "Double Down" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, December 12, 2001 6:31 PM
Subject: OT JavaScript Question


> I have several different Java Scripts that I want to run at once. All of
> them have to deal with checking a form.  I want to run all of them at
> once, but each one requires a different function, I want to combine all
> of them into one function and run them at the same time.
>  
> Can anyone help with this?
>  
> Thanks
>  
>  
> 
> 
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



OT JavaScript Question

2001-12-12 Thread Double Down

I have several different Java Scripts that I want to run at once. All of
them have to deal with checking a form.  I want to run all of them at
once, but each one requires a different function, I want to combine all
of them into one function and run them at the same time.
 
Can anyone help with this?
 
Thanks
 
 

~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



OT - Javascript question

2001-10-18 Thread Ryan Edgar

I have a dynamically generated form and I wish to do validation on some
of the fields using Javascript.
Basically I am ensuring that numeric data is entered  - simple enough to
validate, but the problem occurs when there are units such as currency
that need to be submitted along with the value.

For reasons that it will take too long to go into, it is imperitive that
the value field and the unit field are called the same thing.

Here is a sample of my code:


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



OT - Javascript question

2001-10-18 Thread Ryan Edgar

I have a dynamically generated form and I wish to do validation on some
of the fields using Javascript.
Basically I am ensuring that numeric data is entered  - simple enough to
validate, but the problem occurs when there are units such as currency
that need to be submitted along with the value.

For reasons that it will take too long to go into, it is imperitive that
the value field and the unit field are called the same thing.

Here is a sample of my code:


~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: OT: JavaScript Question: ADVANCED

2001-08-28 Thread Jon Hall

Javascript is client side so it is executed on after all CF code is 
executed, so cflocations are irrelavant to javascript. It doesn't matter 
if you cflocated, meta refreshed, or teleported to the currently loaded 
document. The document.location property will always return the current 
url.

jon

BT wrote:

>There is the JavaScript variable that gets the value of the Address bar of
>another frame (+parent.topwindow.document.location). Does anyone if the
>variable changes along with redirects and META refreshes or is only the
>value of the address when loaded?
>IF it does look at the "live" address would it recognize CFLOCATIONS?
>
>
>
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



OT: JavaScript Question: ADVANCED

2001-08-28 Thread BT

There is the JavaScript variable that gets the value of the Address bar of
another frame (+parent.topwindow.document.location). Does anyone if the
variable changes along with redirects and META refreshes or is only the
value of the address when loaded?
IF it does look at the "live" address would it recognize CFLOCATIONS?


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: OT Javascript question

2001-05-24 Thread Stuart Duncan


I had to do a lot of form mathematics with javascript, and in order to 
force the fields to recognize the fields as numerics instead of strings, I 
had to parsefloat() around the value.

So my form fields looked like this.

parseFloat(document.form.field.value) + 1;

In your case, you may have to set your field value into a variable first, 
and then parsefloat() around it.


fieldvalue = eval("document.forms[0].interest" + interest + ".value");
"document.forms[0].interest" + interest + ".value" =
parsefloat(fieldvalue) + 1;

I haven't tested that... but parsefloat has always worked for me.

Stuart Duncan
MaracasMedia Inc.


At 12:17 PM 24/05/2001 +0100, you wrote:
>I'm having a mind blankarghhh.  I'm trying to incremtnet the value of a
>control in a form by one where part of the controls name is poassed in as a
>variable.  Probably best I explain with the code snippet:
>
>function test(controlnum) {
>  "document.forms[0].interest" + interest + ".value" =
>eval("document.forms[0].interest" + interest + ".value") + 1;
>}
>
>I have tested using alert and the The RHS of the equation is computed
>correctly.  I need to let javasript know that the LHS of the equation is an
>object in the page rather than just a string but I can't remeber
>how!anyone help
>
>
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: OT Javascript question

2001-05-24 Thread Andy Ewings

Nick et all.

Thanks for all your help.  After a huge lunch and a MacDonalds Ice cream I
saw clearly again and realised that Nick's solution worked.just my
typing was pretty bad.  :)

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: 24 May 2001 14:15
To: CF-Talk
Subject: RE: OT Javascript question


parseInt() is a method of the String object, so try

elt.value = elt.value.parseInt() + 1;

-Original Message-
From: Andy Ewings [mailto:[EMAIL PROTECTED]]
Sent: 24 May 2001 13:58
To: CF-Talk
Subject: RE: OT Javascript question


MopeI tried this Nick but it kept complaining at the ParseInt line
saying object required.  I can't see why it shouldn't work as the object
definitely exists.  I'm sure I've made a blindingly silly mistake so I'll
persue with it after lunch :) 

-Original Message-
From: DeVoil, Nick [mailto:[EMAIL PROTECTED]]
Sent: 24 May 2001 12:32
To: CF-Talk
Subject: RE: OT Javascript question


Andy

Does this work?

function test(controlnum) {
  elt = document.forms[0]["interest" + interest];
  elt.value = parseInt(elt.value) + 1;
}

Nick

-Original Message-
From: Andy Ewings [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 24, 2001 12:18 PM
To: CF-Talk
Subject: OT Javascript question


I'm having a mind blankarghhh.  I'm trying to incremtnet the value of a
control in a form by one where part of the controls name is poassed in as a
variable.  Probably best I explain with the code snippet:

function test(controlnum) {
 "document.forms[0].interest" + interest + ".value" =
eval("document.forms[0].interest" + interest + ".value") + 1;
}

I have tested using alert and the The RHS of the equation is computed
correctly.  I need to let javasript know that the LHS of the equation is an
object in the page rather than just a string but I can't remeber
how!anyone help
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: OT Javascript question

2001-05-24 Thread alistair . davidson

parseInt() is a method of the String object, so try

elt.value = elt.value.parseInt() + 1;

-Original Message-
From: Andy Ewings [mailto:[EMAIL PROTECTED]]
Sent: 24 May 2001 13:58
To: CF-Talk
Subject: RE: OT Javascript question


MopeI tried this Nick but it kept complaining at the ParseInt line
saying object required.  I can't see why it shouldn't work as the object
definitely exists.  I'm sure I've made a blindingly silly mistake so I'll
persue with it after lunch :) 

-Original Message-
From: DeVoil, Nick [mailto:[EMAIL PROTECTED]]
Sent: 24 May 2001 12:32
To: CF-Talk
Subject: RE: OT Javascript question


Andy

Does this work?

function test(controlnum) {
  elt = document.forms[0]["interest" + interest];
  elt.value = parseInt(elt.value) + 1;
}

Nick

-Original Message-
From: Andy Ewings [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 24, 2001 12:18 PM
To: CF-Talk
Subject: OT Javascript question


I'm having a mind blankarghhh.  I'm trying to incremtnet the value of a
control in a form by one where part of the controls name is poassed in as a
variable.  Probably best I explain with the code snippet:

function test(controlnum) {
 "document.forms[0].interest" + interest + ".value" =
eval("document.forms[0].interest" + interest + ".value") + 1;
}

I have tested using alert and the The RHS of the equation is computed
correctly.  I need to let javasript know that the LHS of the equation is an
object in the page rather than just a string but I can't remeber
how!anyone help
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: OT Javascript question

2001-05-24 Thread Andy Ewings

MopeI tried this Nick but it kept complaining at the ParseInt line
saying object required.  I can't see why it shouldn't work as the object
definitely exists.  I'm sure I've made a blindingly silly mistake so I'll
persue with it after lunch :) 

-Original Message-
From: DeVoil, Nick [mailto:[EMAIL PROTECTED]]
Sent: 24 May 2001 12:32
To: CF-Talk
Subject: RE: OT Javascript question


Andy

Does this work?

function test(controlnum) {
  elt = document.forms[0]["interest" + interest];
  elt.value = parseInt(elt.value) + 1;
}

Nick

-Original Message-
From: Andy Ewings [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 24, 2001 12:18 PM
To: CF-Talk
Subject: OT Javascript question


I'm having a mind blankarghhh.  I'm trying to incremtnet the value of a
control in a form by one where part of the controls name is poassed in as a
variable.  Probably best I explain with the code snippet:

function test(controlnum) {
 "document.forms[0].interest" + interest + ".value" =
eval("document.forms[0].interest" + interest + ".value") + 1;
}

I have tested using alert and the The RHS of the equation is computed
correctly.  I need to let javasript know that the LHS of the equation is an
object in the page rather than just a string but I can't remeber
how!anyone help
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: OT Javascript question

2001-05-24 Thread DeVoil, Nick

Andy

Does this work?

function test(controlnum) {
  elt = document.forms[0]["interest" + interest];
  elt.value = parseInt(elt.value) + 1;
}

Nick

-Original Message-
From: Andy Ewings [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 24, 2001 12:18 PM
To: CF-Talk
Subject: OT Javascript question


I'm having a mind blankarghhh.  I'm trying to incremtnet the value of a
control in a form by one where part of the controls name is poassed in as a
variable.  Probably best I explain with the code snippet:

function test(controlnum) {
 "document.forms[0].interest" + interest + ".value" =
eval("document.forms[0].interest" + interest + ".value") + 1;
}

I have tested using alert and the The RHS of the equation is computed
correctly.  I need to let javasript know that the LHS of the equation is an
object in the page rather than just a string but I can't remeber
how!anyone help
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: OT Javascript question

2001-05-24 Thread alistair . davidson

Try

function test(controlnum) {

var theObject = eval( "document.forms[0].interest" + interest );
theObject.value = theObject.value + 1;

}

If it's a text input that you're using, you might have to convert the values
between string and integer, something like

theObject.value = (theObject.value.parseInt() + 1).toString();

Haven't tested the above code, it's just off the top of my head, but it's
something like that, anyway.

Hope that helps

Alistair Davidson
Senior Web Developer
Rocom New Media
www.rocomx.net


-Original Message-
From: Andy Ewings [mailto:[EMAIL PROTECTED]]
Sent: 24 May 2001 12:18
To: CF-Talk
Subject: OT Javascript question


I'm having a mind blankarghhh.  I'm trying to incremtnet the value of a
control in a form by one where part of the controls name is poassed in as a
variable.  Probably best I explain with the code snippet:

function test(controlnum) {
 "document.forms[0].interest" + interest + ".value" =
eval("document.forms[0].interest" + interest + ".value") + 1;
}

I have tested using alert and the The RHS of the equation is computed
correctly.  I need to let javasript know that the LHS of the equation is an
object in the page rather than just a string but I can't remeber
how!anyone help
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



OT Javascript question

2001-05-24 Thread Andy Ewings

I'm having a mind blankarghhh.  I'm trying to incremtnet the value of a
control in a form by one where part of the controls name is poassed in as a
variable.  Probably best I explain with the code snippet:

function test(controlnum) {
 "document.forms[0].interest" + interest + ".value" =
eval("document.forms[0].interest" + interest + ".value") + 1;
}

I have tested using alert and the The RHS of the equation is computed
correctly.  I need to let javasript know that the LHS of the equation is an
object in the page rather than just a string but I can't remeber
how!anyone help

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: OT Javascript question

2001-04-20 Thread Bryan LaPlante

In IE4  and up event.keyCode(13) is the enter key

- Original Message -
From: <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, April 20, 2001 12:45 PM
Subject: Re: OT Javascript question


>
> i know there is in NS but i'm not sure about IE
>
> in NS you can enable event capturing and inherent to that is the type of
> event.  i.e., a key stroke and the key depressed
> see developer.netscape.com for more on this
>
> 
> document.captureEvents(ONKEYPRESS);
>
> function myHandler(e){ //where e is the event type
> return e.type;
> }
>
> document.onkeypress=myHandler;
> 
>
>
>
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: OT Javascript question

2001-04-20 Thread savan . thongvanh


i know there is in NS but i'm not sure about IE

in NS you can enable event capturing and inherent to that is the type of
event.  i.e., a key stroke and the key depressed
see developer.netscape.com for more on this


document.captureEvents(ONKEYPRESS);

function myHandler(e){ //where e is the event type
return e.type;
}

document.onkeypress=myHandler;



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: OT Javascript question

2001-04-20 Thread Semrau, Steven L Mr SRA

Yes you can, it's call the 'Event Object'.  Although NN and MSIE are
dramatically different in the way that they handle this currently (not sure
about Netscape 6).

Steven Semrau
SRA International, Inc.
Senior Member, Professional Staff
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Com:  (703) 805-1095
DSN:  (703) 655-1095


-Original Message-
From: Will Swain [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 20, 2001 11:49 AM
To: CF-Talk
Subject: OT Javascript question



Hi,

Does anyone know if it is possible to capture key strokes with javascript.
In other words, can I create a onReturn event which fires when the user hits
the return button on their keyboard?

Cheers

Will Swain
Hot Horse Ltd
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



OT Javascript question

2001-04-20 Thread Will Swain


Hi,

Does anyone know if it is possible to capture key strokes with javascript.
In other words, can I create a onReturn event which fires when the user hits
the return button on their keyboard?

Cheers

Will Swain
Hot Horse Ltd


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



ot: javascript question

2001-04-19 Thread Bruce, Rodney


I am having a problem with running javascript on in a second(popup) window.

from the calling page I use:


windnow.open("file.cfm");


when the page first opens everything works fine,  but when I call a function
to rewrite the page, the next time I try to call any function, I get the
error message that its undefined.

sample:


Var 1;
Var 2;


function outsidefunction(){
Take new value and window.close;
}



MainFunction();

function MainFunction(){

var 3;
var 4;

function subfunction1(){
}

function subfunction2();{
}


subfunction2();
subfunction1();

more lines of code;

outsidefunction();

}


if I call the outside function first it works fine, but if I call one of the
subfunctions first,  
the subfunction will work the first time,  but then any function call get
the undefined error.

Help please
Thanks
Rodney








~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Slightly OT....Javascript question

2000-12-13 Thread Jay Brushett

Use the eval function.

eval("document.Slider" + i + ".GetValue()");

Roughly.

Jay

At 05:48 PM 12/13/2000 +, you wrote:
>OK guys and girls...slightly ot question but it's bugging me!  In part of a
>Javasript function I am trying to loop through a collection of controls and
>adding their value to a list which is then the value of a text box.  Here is
>the code:
>
>var i = 1;
>   while(i <= document.skills.slidercount.value)
>{
>document.skills.slidervalues.value =
>document.skills.slidervalues.value + "," + document.{"Slider" + value of
>i}.GetValue();
>i = i + 1;
>}
>
>'Skills' is a form.
>Slidercount.value = 34.
>Slidervalues is a textbox
>
>What I need to do is replace .{"Slider" + value of i} with Slider1, Slider2,
>Slider3, etc. until Slider.34.  Is there a way to dynamically create
>this variable name?
>--
>Andrew Ewings
>Project Manager
>Thoughtbubble Ltd
>http://www.thoughtbubble.net
>--
>United Kingdom
>http://www.thoughtbubble.co.uk/
>Tel: +44 (0) 20 7387 8890
>--
>New Zealand
>http://www.thoughtbubble.co.nz/
>Tel: +64 (0) 9 419 4235
>--
>The information in this email and in any attachments is confidential and
>intended solely for the attention and use of the named addressee(s). Any
>views or opinions presented are solely those of the author and do not
>necessarily represent those of Thoughtbubble. This information may be
>subject to legal, professional or other privilege and further distribution
>of it is strictly prohibited without our authority. If you are not the
>intended recipient, you are not authorised to disclose, copy, distribute, or
>retain this message. Please notify us on +44 (0)207 387 8890.
>
>
>
>
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Slightly OT....Javascript question

2000-12-13 Thread Andy Ewings

don't worry guys solved it!  Used the eval() function

-- 
Andrew Ewings
Project Manager
Thoughtbubble Ltd 
http://www.thoughtbubble.net 
-- 
United Kingdom 
http://www.thoughtbubble.co.uk/ 
Tel: +44 (0) 20 7387 8890 
-- 
New Zealand 
http://www.thoughtbubble.co.nz/ 
Tel: +64 (0) 9 419 4235 
-- 
The information in this email and in any attachments is confidential and
intended solely for the attention and use of the named addressee(s). Any
views or opinions presented are solely those of the author and do not
necessarily represent those of Thoughtbubble. This information may be
subject to legal, professional or other privilege and further distribution
of it is strictly prohibited without our authority. If you are not the
intended recipient, you are not authorised to disclose, copy, distribute, or
retain this message. Please notify us on +44 (0)207 387 8890. 



-Original Message-
From: Andy Ewings [mailto:[EMAIL PROTECTED]]
Sent: 13 December 2000 17:49
To: CF-Talk
Subject: Slightly OTJavascript question


OK guys and girls...slightly ot question but it's bugging me!  In part of a
Javasript function I am trying to loop through a collection of controls and
adding their value to a list which is then the value of a text box.  Here is
the code:

var i = 1;
  while(i <= document.skills.slidercount.value)
   {
   document.skills.slidervalues.value =
document.skills.slidervalues.value + "," + document.{"Slider" + value of
i}.GetValue();
   i = i + 1;
   }

'Skills' is a form.  
Slidercount.value = 34.  
Slidervalues is a textbox

What I need to do is replace .{"Slider" + value of i} with Slider1, Slider2,
Slider3, etc. until Slider.34.  Is there a way to dynamically create
this variable name?
-- 
Andrew Ewings
Project Manager
Thoughtbubble Ltd 
http://www.thoughtbubble.net 
-- 
United Kingdom 
http://www.thoughtbubble.co.uk/ 
Tel: +44 (0) 20 7387 8890 
-- 
New Zealand 
http://www.thoughtbubble.co.nz/ 
Tel: +64 (0) 9 419 4235 
-- 
The information in this email and in any attachments is confidential and
intended solely for the attention and use of the named addressee(s). Any
views or opinions presented are solely those of the author and do not
necessarily represent those of Thoughtbubble. This information may be
subject to legal, professional or other privilege and further distribution
of it is strictly prohibited without our authority. If you are not the
intended recipient, you are not authorised to disclose, copy, distribute, or
retain this message. Please notify us on +44 (0)207 387 8890.
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Slightly OT....Javascript question

2000-12-13 Thread Andy Ewings

OK guys and girls...slightly ot question but it's bugging me!  In part of a
Javasript function I am trying to loop through a collection of controls and
adding their value to a list which is then the value of a text box.  Here is
the code:

var i = 1;
  while(i <= document.skills.slidercount.value)
   {
   document.skills.slidervalues.value =
document.skills.slidervalues.value + "," + document.{"Slider" + value of
i}.GetValue();
   i = i + 1;
   }

'Skills' is a form.  
Slidercount.value = 34.  
Slidervalues is a textbox

What I need to do is replace .{"Slider" + value of i} with Slider1, Slider2,
Slider3, etc. until Slider.34.  Is there a way to dynamically create
this variable name?
-- 
Andrew Ewings
Project Manager
Thoughtbubble Ltd 
http://www.thoughtbubble.net 
-- 
United Kingdom 
http://www.thoughtbubble.co.uk/ 
Tel: +44 (0) 20 7387 8890 
-- 
New Zealand 
http://www.thoughtbubble.co.nz/ 
Tel: +64 (0) 9 419 4235 
-- 
The information in this email and in any attachments is confidential and
intended solely for the attention and use of the named addressee(s). Any
views or opinions presented are solely those of the author and do not
necessarily represent those of Thoughtbubble. This information may be
subject to legal, professional or other privilege and further distribution
of it is strictly prohibited without our authority. If you are not the
intended recipient, you are not authorised to disclose, copy, distribute, or
retain this message. Please notify us on +44 (0)207 387 8890. 



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: OT: Javascript Question

2000-09-15 Thread Stuart Duncan

You have to use Style sheets.





Stuart Duncan
MaracasMedia Inc.




At 12:41 PM 9/15/00 -0500, you wrote:
>Anyone know how code the size of the font for text in a dropdown box.
>
>I know it works for Netscape.but I'm looking for an IE solutions.
>
>Thanks
>
>Todd Everling
>--
>Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
>To Unsubscribe visit 
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or 
>send a message to [EMAIL PROTECTED] with 'unsubscribe' in 
>the body.


--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



OT: Javascript Question

2000-09-15 Thread Todd Everling

Anyone know how code the size of the font for text in a dropdown box.

I know it works for Netscape.but I'm looking for an IE solutions.

Thanks

Todd Everling
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: (OT) Javascript Question

2000-09-05 Thread John Andrichak IV

Not precisely, they CAN click again, but it won't do anything...

John Andrichak IV
Web Programmer
Dannemiller Memorial Educational Foundation

- Original Message -
From: "Robert Everland III" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 31, 2000 11:25 PM
Subject: RE: (OT) Javascript Question


> Now will this make it so they can't click the sumit image again?
>
> Bob Everland
>
> -Original Message-
> From: John Andrichak IV [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 31, 2000 12:54 PM
> To: [EMAIL PROTECTED]
> Subject: Re: (OT) Javascript Question
>
>
> Why don't you check to see if the image has already changed?  If it has...
> then don't change the image and cancel the form submission.
>
> Try something like:
>
> 
> 
> 
>
> with this JavaScript:
>
> 
>
>   var submitted = false;
>
>   function doChangeSubmit() {
> if(!submitted) {
>   submitted = true;
>   --- insert image change stuff...
> }
> else return false;
>   }
>
> 
>
> ----- Original Message -
> From: "Robert Everland" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, August 31, 2000 8:58 AM
> Subject: OT: Javascript Question
>
>
> > I can't remember where or the name of the javascript forum off of
> > cf-talk but I figured I may as well as my question and then have someone
> > tell me where to do. I have a form button that is an image. I put some
> > javascript in there so that when I click on it, it changes the image.
What
> I
> > want to do now is make it so that image is not clickable that way no one
> can
> > keep clicking on submit. Anyone know how to do this, it can't be a href
> tag
> > becuase I have to pass form variables.
> >
> >
> > Robert Everland III
> > Web Developer
> > Dixon Ticonderoga
>
> --
> 
> > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> > To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> the body.
> >
> >
>
> --
--
> --
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> the body.
>
> --

> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>

--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: (OT) Javascript Question

2000-09-01 Thread Robert Everland III

Now will this make it so they can't click the sumit image again?

Bob Everland

-Original Message-
From: John Andrichak IV [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 31, 2000 12:54 PM
To: [EMAIL PROTECTED]
Subject: Re: (OT) Javascript Question


Why don't you check to see if the image has already changed?  If it has...
then don't change the image and cancel the form submission.

Try something like:





with this JavaScript:



  var submitted = false;

  function doChangeSubmit() {
if(!submitted) {
  submitted = true;
  --- insert image change stuff...
}
else return false;
  }



- Original Message -
From: "Robert Everland" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 31, 2000 8:58 AM
Subject: OT: Javascript Question


> I can't remember where or the name of the javascript forum off of
> cf-talk but I figured I may as well as my question and then have someone
> tell me where to do. I have a form button that is an image. I put some
> javascript in there so that when I click on it, it changes the image. What
I
> want to do now is make it so that image is not clickable that way no one
can
> keep clicking on submit. Anyone know how to do this, it can't be a href
tag
> becuase I have to pass form variables.
>
>
> Robert Everland III
> Web Developer
> Dixon Ticonderoga
> --

> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>
>


--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



  1   2   >