[ACFUG Discuss] Another Question From Rip Van Winkle

2008-02-18 Thread Peyton Todd
Hello again from the CF5 programmer trying to catch up.

I always used to write for Internet Explorer, and did so again after my return 
to programming a few months ago, resulting in what is by now a rather complex 
site. Many CF (and other internet-based) programmers have told me since then 
that I should have written for Firefox, and I now wish I had, because of it's 
debugging abilities. But...

How easy will it be to convert my existing code to run on Firefox? 
Specifically, there are three functions I'm making heavy use of:

1. getElementById
2. parentElement
3. children[]

According to my latest DOM book (O'Reilly, published 1998 - yes, I know I need 
a new one) none of these exists in Netscape (same as Firefox, right?). And sure 
enough I get error messages at least with the first one (I never get past there 
to the others). So my question is: 

What is the Firefox way to do each of them? (According to my O'Reilly book, 
document.all[] doesn't exist in Netscape, either.)

One catch is: I would very much like to avoid giving unique names to 
everything, for two reasons:

1. There are lots and lots of them. This is a roll-my-own HIERARCHICAL grid of 
sorts with buttons to insert and delete new rows on both of two levels.

2. All my update code makes heavy use of the fact that, when items in a form 
have the same name (as they do in each successive row in my grid), CF sends up 
the values as a comma-delimited list of values which I then loop through.

Any ideas?

Thanks for your help,
Peyton


-
Annual Sponsor FigLeaf Software - http://www.figleaf.com

To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-





Re: [ACFUG Discuss] Another Question From Rip Van Winkle

2008-02-18 Thread Steven Ross
First go get firebug for firefox... that will help you with the dom
navigation.
Firefox parentElement = parentNode



On Mon, Feb 18, 2008 at 9:16 AM, Peyton Todd <[EMAIL PROTECTED]>
wrote:

> Hello again from the CF5 programmer trying to catch up.
>
> I always used to write for Internet Explorer, and did so again after my
> return to programming a few months ago, resulting in what is by now a rather
> complex site. Many CF (and other internet-based) programmers have told me
> since then that I should have written for Firefox, and I now wish I had,
> because of it's debugging abilities. But...
>
> How easy will it be to convert my existing code to run on Firefox?
> Specifically, there are three functions I'm making heavy use of:
>
> 1. getElementById
> 2. parentElement
> 3. children[]
>
> According to my latest DOM book (O'Reilly, published 1998 - yes, I know I
> need a new one) none of these exists in Netscape (same as Firefox, right?).
> And sure enough I get error messages at least with the first one (I never
> get past there to the others). So my question is:
>
> What is the Firefox way to do each of them? (According to my O'Reilly
> book, document.all[] doesn't exist in Netscape, either.)
>
> One catch is: I would very much like to avoid giving unique names to
> everything, for two reasons:
>
> 1. There are lots and lots of them. This is a roll-my-own HIERARCHICAL
> grid of sorts with buttons to insert and delete new rows on both of two
> levels.
>
> 2. All my update code makes heavy use of the fact that, when items in a
> form have the same name (as they do in each successive row in my grid), CF
> sends up the values as a comma-delimited list of values which I then loop
> through.
>
> Any ideas?
>
> Thanks for your help,
> Peyton
>
>
> -
> Annual Sponsor FigLeaf Software - http://www.figleaf.com
>
> To unsubscribe from this list, manage your profile @
> http://www.acfug.org?fa=login.edituserform
>
> For more info, see http://www.acfug.org/mailinglists
> Archive @ http://www.mail-archive.com/discussion%40acfug.org/
> List hosted by http://www.fusionlink.com
> -
>
>
>
>


-- 
Steven Ross
web application & interface developer
http://blog.stevensross.com
[mobile] 404-488-4364 [fax] 267-482-4364
[ AIM / Yahoo! : zeriumsteven ] [googleTalk : nowhiding ]



-
Annual Sponsor FigLeaf Software - http://www.figleaf.com

To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-



Re: [ACFUG Discuss] Another Question From Rip Van Winkle

2008-02-18 Thread Peyton Todd
First, I believe I already have Firebug: when Firefox tells me I have an error (lower righthand corner) I can click on that and see lots of info about it; and which I click on the '^' in that panel, it morphs into a window with 'Firebug' in its title. But I don't see how that helps me with navigation in the actual code I'm writing. Or do you mean navigation as in exploring the document while I'm debugging?Second, Doug, which of those frameworks would you recommend? In its documentation, Adobe refers to Spry from time to time...I still have my question about how to re-write my particular functions (or properties to be precise) Firefox-style. Thanks for the info that parentNode = parentElement, but what about the other two?Incidentally, to most of you write web pages full of code like 'if IE to this, if NS do that'? I hope there's a way to escape from that! I've had a free ride on this so far since all my websites belonged to an INTRAnet inside a NYC goverment agency which  standardized on IE...Or is that what a framework would encapsulate? And if I use that, would I be able to read my own code? -Original Message-
From: Douglas Knudsen <[EMAIL PROTECTED]>
Sent: Feb 18, 2008 9:55 AM
To: discussion@acfug.org
Subject: Re: [ACFUG Discuss] Another Question From Rip Van Winkle

I suggest looking at using a framework.  This would be a Good Thing as it would encapsulate these issues for you.  Frameworks for JS include Spry, Dojo, JQuery, and the list could go on and on.DK
On Feb 18, 2008 9:44 AM, Steven Ross <[EMAIL PROTECTED]> wrote:
First go get firebug for firefox... that will help you with the dom navigation.Firefox parentElement = parentNode 
On Mon, Feb 18, 2008 at 9:16 AM, Peyton Todd <[EMAIL PROTECTED]> wrote:

Hello again from the CF5 programmer trying to catch up.

I always used to write for Internet Explorer, and did so again after my return to programming a few months ago, resulting in what is by now a rather complex site. Many CF (and other internet-based) programmers have told me since then that I should have written for Firefox, and I now wish I had, because of it's debugging abilities. But...



How easy will it be to convert my existing code to run on Firefox? Specifically, there are three functions I'm making heavy use of:

1. getElementById
2. parentElement
3. children[]

According to my latest DOM book (O'Reilly, published 1998 - yes, I know I need a new one) none of these exists in Netscape (same as Firefox, right?). And sure enough I get error messages at least with the first one (I never get past there to the others). So my question is:



What is the Firefox way to do each of them? (According to my O'Reilly book, document.all[] doesn't exist in Netscape, either.)

One catch is: I would very much like to avoid giving unique names to everything, for two reasons:

1. There are lots and lots of them. This is a roll-my-own HIERARCHICAL grid of sorts with buttons to insert and delete new rows on both of two levels.

2. All my update code makes heavy use of the fact that, when items in a form have the same name (as they do in each successive row in my grid), CF sends up the values as a comma-delimited list of values which I then loop through.



Any ideas?

Thanks for your help,
Peyton


-
Annual Sponsor FigLeaf Software - http://www.figleaf.com

To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-



-- Steven Rossweb application & interface developerhttp://blog.stevensross.com[mobile] 404-488-4364 [fax] 267-482-4364

[ AIM / Yahoo! : zeriumsteven ] [googleTalk : nowhiding ]




-
Annual Sponsor - Figleaf Software

To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by FusionLink
-

-- Douglas Knudsenhttp://www.cubicleman.comthis is my signature, like it?



-
Annual Sponsor - Figleaf Software

To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by FusionLink
-




-Annual Sponsor FigLeaf Software - http://www.figleaf.comTo unsubscribe f

Re: [ACFUG Discuss] Another Question From Rip Van Winkle

2008-02-18 Thread Steven Ross
I have been using YUI (yahoo) library, it works well and has some nice built
in cross browser functionality.
firefox supports getElementByID and the childNodes property... they performa
a little differently than in IE.

On Mon, Feb 18, 2008 at 10:11 AM, Peyton Todd <[EMAIL PROTECTED]>
wrote:

> First, I believe I already have Firebug: when Firefox tells me I have an
> error (lower righthand corner) I can click on that and see lots of info
> about it; and which I click on the '^' in that panel, it morphs into a
> window with 'Firebug' in its title. But I don't see how that helps me with
> navigation in the actual code I'm writing. Or do you mean navigation as in
> exploring the document while I'm debugging?
>
> Second, Doug, which of those frameworks would you recommend? In its
> documentation, Adobe refers to Spry from time to time...
>
> I still have my question about how to re-write my particular functions (or
> properties to be precise) Firefox-style. Thanks for the info that parentNode
> = parentElement, but what about the other two?
>
> Incidentally, to most of you write web pages full of code like 'if IE to
> this, if NS do that'? I hope there's a way to escape from that! I've had a
> free ride on this so far since all my websites belonged to an INTRAnet
> inside a NYC goverment agency which  standardized on IE...
>
> Or is that what a framework would encapsulate? And if I use that, would I
> be able to read my own code?
>
> -Original Message-----
> From: Douglas Knudsen
> Sent: Feb 18, 2008 9:55 AM
> To: discussion@acfug.org
> Subject: Re: [ACFUG Discuss] Another Question From Rip Van Winkle
>
> I suggest looking at using a framework.  This would be a Good Thing as it
> would encapsulate these issues for you.  Frameworks for JS include Spry,
> Dojo, JQuery, and the list could go on and on.
>
> DK
>
> On Feb 18, 2008 9:44 AM, Steven Ross <[EMAIL PROTECTED]> wrote:
>
> > First go get firebug for firefox... that will help you with the dom
> > navigation.
> > Firefox parentElement = parentNode
> >
> >
> >
> > On Mon, Feb 18, 2008 at 9:16 AM, Peyton Todd <[EMAIL PROTECTED]>
> > wrote:
> >
> > > Hello again from the CF5 programmer trying to catch up.
> > >
> > > I always used to write for Internet Explorer, and did so again after
> > > my return to programming a few months ago, resulting in what is by now a
> > > rather complex site. Many CF (and other internet-based) programmers have
> > > told me since then that I should have written for Firefox, and I now wish 
> > > I
> > > had, because of it's debugging abilities. But...
> > >
> > > How easy will it be to convert my existing code to run on Firefox?
> > > Specifically, there are three functions I'm making heavy use of:
> > >
> > > 1. getElementById
> > > 2. parentElement
> > > 3. children[]
> > >
> > > According to my latest DOM book (O'Reilly, published 1998 - yes, I
> > > know I need a new one) none of these exists in Netscape (same as Firefox,
> > > right?). And sure enough I get error messages at least with the first one 
> > > (I
> > > never get past there to the others). So my question is:
> > >
> > > What is the Firefox way to do each of them? (According to my O'Reilly
> > > book, document.all[] doesn't exist in Netscape, either.)
> > >
> > > One catch is: I would very much like to avoid giving unique names to
> > > everything, for two reasons:
> > >
> > > 1. There are lots and lots of them. This is a roll-my-own HIERARCHICAL
> > > grid of sorts with buttons to insert and delete new rows on both of two
> > > levels.
> > >
> > > 2. All my update code makes heavy use of the fact that, when items in
> > > a form have the same name (as they do in each successive row in my grid), 
> > > CF
> > > sends up the values as a comma-delimited list of values which I then loop
> > > through.
> > >
> > > Any ideas?
> > >
> > > Thanks for your help,
> > > Peyton
> > >
> > >
> > > -
> > > Annual Sponsor FigLeaf Software - http://www.figleaf.com
> > >
> > > To unsubscribe from this list, manage your profile @
> > > http://www.acfug.org?fa=login.edituserform
> > >
> > > For more info, see http://www.acfug.org/mailinglists
> > > Archive @ http://www.mail-archive.com/discussion%40

Re: [ACFUG Discuss] Another Question From Rip Van Winkle

2008-02-18 Thread Douglas Knudsen
I suggest looking at using a framework.  This would be a Good Thing as it
would encapsulate these issues for you.  Frameworks for JS include Spry,
Dojo, JQuery, and the list could go on and on.

DK

On Feb 18, 2008 9:44 AM, Steven Ross <[EMAIL PROTECTED]> wrote:

> First go get firebug for firefox... that will help you with the dom
> navigation.
> Firefox parentElement = parentNode
>
>
>
> On Mon, Feb 18, 2008 at 9:16 AM, Peyton Todd <[EMAIL PROTECTED]>
> wrote:
>
> > Hello again from the CF5 programmer trying to catch up.
> >
> > I always used to write for Internet Explorer, and did so again after my
> > return to programming a few months ago, resulting in what is by now a rather
> > complex site. Many CF (and other internet-based) programmers have told me
> > since then that I should have written for Firefox, and I now wish I had,
> > because of it's debugging abilities. But...
> >
> > How easy will it be to convert my existing code to run on Firefox?
> > Specifically, there are three functions I'm making heavy use of:
> >
> > 1. getElementById
> > 2. parentElement
> > 3. children[]
> >
> > According to my latest DOM book (O'Reilly, published 1998 - yes, I know
> > I need a new one) none of these exists in Netscape (same as Firefox,
> > right?). And sure enough I get error messages at least with the first one (I
> > never get past there to the others). So my question is:
> >
> > What is the Firefox way to do each of them? (According to my O'Reilly
> > book, document.all[] doesn't exist in Netscape, either.)
> >
> > One catch is: I would very much like to avoid giving unique names to
> > everything, for two reasons:
> >
> > 1. There are lots and lots of them. This is a roll-my-own HIERARCHICAL
> > grid of sorts with buttons to insert and delete new rows on both of two
> > levels.
> >
> > 2. All my update code makes heavy use of the fact that, when items in a
> > form have the same name (as they do in each successive row in my grid), CF
> > sends up the values as a comma-delimited list of values which I then loop
> > through.
> >
> > Any ideas?
> >
> > Thanks for your help,
> > Peyton
> >
> >
> > -
> > Annual Sponsor FigLeaf Software - http://www.figleaf.com
> >
> > To unsubscribe from this list, manage your profile @
> > http://www.acfug.org?fa=login.edituserform
> >
> > For more info, see http://www.acfug.org/mailinglists
> > Archive @ http://www.mail-archive.com/discussion%40acfug.org/
> > List hosted by http://www.fusionlink.com
> > -
> >
> >
> >
> >
>
>
> --
> Steven Ross
> web application & interface developer
> http://blog.stevensross.com
> [mobile] 404-488-4364 [fax] 267-482-4364
> [ AIM / Yahoo! : zeriumsteven ] [googleTalk : nowhiding ]
>
> -
> Annual Sponsor - Figleaf Software 
>
> To unsubscribe from this list, manage your profile @
> http://www.acfug.org?fa=login.edituserform
>
> For more info, see http://www.acfug.org/mailinglists
> Archive @ http://www.mail-archive.com/discussion%40acfug.org/
> List hosted by FusionLink 
> -




-- 
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?



-
Annual Sponsor FigLeaf Software - http://www.figleaf.com

To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-



RE: [ACFUG Discuss] Another Question From Rip Van Winkle

2008-02-18 Thread Dusty Hale
I escape this by avoiding JavaScript if possible or any script that relies
on the browser and prefer to handle things on the server side. I guess
sometimes you can't get around it though and that may not be logical for
you.
 
Dusty

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peyton Todd
Sent: 02/18/2008 10:12 AM
To: discussion@acfug.org
Subject: Re: [ACFUG Discuss] Another Question From Rip Van Winkle


First, I believe I already have Firebug: when Firefox tells me I have an
error (lower righthand corner) I can click on that and see lots of info
about it; and which I click on the '^' in that panel, it morphs into a
window with 'Firebug' in its title. But I don't see how that helps me with
navigation in the actual code I'm writing. Or do you mean navigation as in
exploring the document while I'm debugging?

Second, Doug, which of those frameworks would you recommend? In its
documentation, Adobe refers to Spry from time to time...

I still have my question about how to re-write my particular functions (or
properties to be precise) Firefox-style. Thanks for the info that parentNode
= parentElement, but what about the other two?

Incidentally, to most of you write web pages full of code like 'if IE to
this, if NS do that'? I hope there's a way to escape from that! I've had a
free ride on this so far since all my websites belonged to an INTRAnet
inside a NYC goverment agency which  standardized on IE...

Or is that what a framework would encapsulate? And if I use that, would I be
able to read my own code? 



-Original Message- 
From: Douglas Knudsen 
Sent: Feb 18, 2008 9:55 AM 
To: discussion@acfug.org 
Subject: Re: [ACFUG Discuss] Another Question From Rip Van Winkle 

I suggest looking at using a framework.  This would be a Good Thing as it
would encapsulate these issues for you.  Frameworks for JS include Spry,
Dojo, JQuery, and the list could go on and on.

DK


On Feb 18, 2008 9:44 AM, Steven Ross <[EMAIL PROTECTED]> wrote:


First go get firebug for firefox... that will help you with the dom
navigation. 

Firefox parentElement = parentNode 




On Mon, Feb 18, 2008 at 9:16 AM, Peyton Todd <[EMAIL PROTECTED]>
wrote:


Hello again from the CF5 programmer trying to catch up.

I always used to write for Internet Explorer, and did so again after my
return to programming a few months ago, resulting in what is by now a rather
complex site. Many CF (and other internet-based) programmers have told me
since then that I should have written for Firefox, and I now wish I had,
because of it's debugging abilities. But...

How easy will it be to convert my existing code to run on Firefox?
Specifically, there are three functions I'm making heavy use of:

1. getElementById
2. parentElement
3. children[]

According to my latest DOM book (O'Reilly, published 1998 - yes, I know I
need a new one) none of these exists in Netscape (same as Firefox, right?).
And sure enough I get error messages at least with the first one (I never
get past there to the others). So my question is:

What is the Firefox way to do each of them? (According to my O'Reilly book,
document.all[] doesn't exist in Netscape, either.)

One catch is: I would very much like to avoid giving unique names to
everything, for two reasons:

1. There are lots and lots of them. This is a roll-my-own HIERARCHICAL grid
of sorts with buttons to insert and delete new rows on both of two levels.

2. All my update code makes heavy use of the fact that, when items in a form
have the same name (as they do in each successive row in my grid), CF sends
up the values as a comma-delimited list of values which I then loop through.

Any ideas?

Thanks for your help,
Peyton


-
Annual Sponsor FigLeaf Software - http://www.figleaf.com

To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-








-- 
Steven Ross
web application & interface developer
http://blog.stevensross.com
[mobile] 404-488-4364 [fax] 267-482-4364
[ AIM / Yahoo! : zeriumsteven ] [googleTalk : nowhiding ] 

- 
Annual Sponsor - Figleaf  <http://www.figleaf.com> Software 


To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform 

For more info, see http://www.acfug.org/mailinglists 
Archive @ http://www.mail-archive.com/discussion%40acfug.org/ 

List hosted by FusionLink <http://www.fusionlink.com>  
- 




-- 
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it? 
---

Re: [ACFUG Discuss] Another Question From Rip Van Winkle

2008-02-18 Thread Douglas Knudsen
On Feb 18, 2008 10:11 AM, Peyton Todd <[EMAIL PROTECTED]> wrote:

> First, I believe I already have Firebug: when Firefox tells me I have an
> error (lower righthand corner) I can click on that and see lots of info
> about it; and which I click on the '^' in that panel, it morphs into a
> window with 'Firebug' in its title. But I don't see how that helps me with
> navigation in the actual code I'm writing. Or do you mean navigation as in
> exploring the document while I'm debugging?
>
> Second, Doug, which of those frameworks would you recommend? In its
> documentation, Adobe refers to Spry from time to time...
>

I'm not really a JS expert anymore these days, but Spry seems pretty cool to
me, has that neat tag like approach akin to CF. YUI Steven mentioned is
pretty good too.  Spry is delivered to you by Adobe, check labs.adobe.com,
DW CS3 has Spry stuff built in too.  I seem to recall the CF8's Ajax stuff
uses YUI, but again I'm a bit behind in this area of late as I'm drowning in
Flex Koolaid :)



>
> I still have my question about how to re-write my particular functions (or
> properties to be precise) Firefox-style. Thanks for the info that parentNode
> = parentElement, but what about the other two?
>
> Incidentally, to most of you write web pages full of code like 'if IE to
> this, if NS do that'? I hope there's a way to escape from that! I've had a
> free ride on this so far since all my websites belonged to an INTRAnet
> inside a NYC goverment agency which  standardized on IE...
>

This is precisely what a framework will do for you, handle the  differences
for you.

DK


>
> Or is that what a framework would encapsulate? And if I use that, would I
> be able to read my own code?
>
>
> -----Original Message-
> From: Douglas Knudsen
> Sent: Feb 18, 2008 9:55 AM
> To: discussion@acfug.org
> Subject: Re: [ACFUG Discuss] Another Question From Rip Van Winkle
>
> I suggest looking at using a framework.  This would be a Good Thing as it
> would encapsulate these issues for you.  Frameworks for JS include Spry,
> Dojo, JQuery, and the list could go on and on.
>
> DK
>
> On Feb 18, 2008 9:44 AM, Steven Ross <[EMAIL PROTECTED]> wrote:
>
> > First go get firebug for firefox... that will help you with the dom
> > navigation.
> > Firefox parentElement = parentNode
> >
> >
> >
> > On Mon, Feb 18, 2008 at 9:16 AM, Peyton Todd <[EMAIL PROTECTED]>
> > wrote:
> >
> > > Hello again from the CF5 programmer trying to catch up.
> > >
> > > I always used to write for Internet Explorer, and did so again after
> > > my return to programming a few months ago, resulting in what is by now a
> > > rather complex site. Many CF (and other internet-based) programmers have
> > > told me since then that I should have written for Firefox, and I now wish 
> > > I
> > > had, because of it's debugging abilities. But...
> > >
> > > How easy will it be to convert my existing code to run on Firefox?
> > > Specifically, there are three functions I'm making heavy use of:
> > >
> > > 1. getElementById
> > > 2. parentElement
> > > 3. children[]
> > >
> > > According to my latest DOM book (O'Reilly, published 1998 - yes, I
> > > know I need a new one) none of these exists in Netscape (same as Firefox,
> > > right?). And sure enough I get error messages at least with the first one 
> > > (I
> > > never get past there to the others). So my question is:
> > >
> > > What is the Firefox way to do each of them? (According to my O'Reilly
> > > book, document.all[] doesn't exist in Netscape, either.)
> > >
> > > One catch is: I would very much like to avoid giving unique names to
> > > everything, for two reasons:
> > >
> > > 1. There are lots and lots of them. This is a roll-my-own HIERARCHICAL
> > > grid of sorts with buttons to insert and delete new rows on both of two
> > > levels.
> > >
> > > 2. All my update code makes heavy use of the fact that, when items in
> > > a form have the same name (as they do in each successive row in my grid), 
> > > CF
> > > sends up the values as a comma-delimited list of values which I then loop
> > > through.
> > >
> > > Any ideas?
> > >
> > > Thanks for your help,
> > > Peyton
> > >
> > >
> > > -
> > > Annual Sponsor FigLeaf Software - http://www.figleaf.com
&g

Re: [ACFUG Discuss] Another Question From Rip Van Winkle

2008-02-18 Thread Peyton Todd
Steven, did mean Firefox supports *parentNode* instead of getElementById? My Firefox always complains of an error whenever it sees getElementById. Or is there perhaps a different spelling for Firefox? (not likely, right?) The last letter in getElementById is lower case, not upper case as you have it. But of course you meant to type it as lower case, right? -Original Message-
From: Steven Ross <[EMAIL PROTECTED]>
Sent: Feb 18, 2008 10:16 AM
To: discussion@acfug.org
Subject: Re: [ACFUG Discuss] Another Question From Rip Van Winkle

I have been using YUI (yahoo) library, it works well and has some nice built in cross browser functionality.firefox supports getElementByID and the childNodes property... they performa a little differently than in IE.
On Mon, Feb 18, 2008 at 10:11 AM, Peyton Todd <[EMAIL PROTECTED]> wrote:
First, I believe I already have Firebug: when Firefox tells me I have an error (lower righthand corner) I can click on that and see lots of info about it; and which I click on the '^' in that panel, it morphs into a window with 'Firebug' in its title. But I don't see how that helps me with navigation in the actual code I'm writing. Or do you mean navigation as in exploring the document while I'm debugging?
Second, Doug, which of those frameworks would you recommend? In its documentation, Adobe refers to Spry from time to time...I still have my question about how to re-write my particular functions (or properties to be precise) Firefox-style. Thanks for the info that parentNode = parentElement, but what about the other two?
Incidentally, to most of you write web pages full of code like 'if IE to this, if NS do that'? I hope there's a way to escape from that! I've had a free ride on this so far since all my websites belonged to an INTRAnet inside a NYC goverment agency which  standardized on IE...
Or is that what a framework would encapsulate? And if I use that, would I be able to read my own code? 
-Original Message-
From: Douglas Knudsen 
Sent: Feb 18, 2008 9:55 AM
To: discussion@acfug.org
Subject: Re: [ACFUG Discuss] Another Question From Rip Van Winkle

I suggest looking at using a framework.  This would be a Good Thing as it would encapsulate these issues for you.  Frameworks for JS include Spry, Dojo, JQuery, and the list could go on and on.DK

On Feb 18, 2008 9:44 AM, Steven Ross <[EMAIL PROTECTED]> wrote:

First go get firebug for firefox... that will help you with the dom navigation.Firefox parentElement = parentNode 
On Mon, Feb 18, 2008 at 9:16 AM, Peyton Todd <[EMAIL PROTECTED]> wrote:


Hello again from the CF5 programmer trying to catch up.

I always used to write for Internet Explorer, and did so again after my return to programming a few months ago, resulting in what is by now a rather complex site. Many CF (and other internet-based) programmers have told me since then that I should have written for Firefox, and I now wish I had, because of it's debugging abilities. But...




How easy will it be to convert my existing code to run on Firefox? Specifically, there are three functions I'm making heavy use of:

1. getElementById
2. parentElement
3. children[]

According to my latest DOM book (O'Reilly, published 1998 - yes, I know I need a new one) none of these exists in Netscape (same as Firefox, right?). And sure enough I get error messages at least with the first one (I never get past there to the others). So my question is:




What is the Firefox way to do each of them? (According to my O'Reilly book, document.all[] doesn't exist in Netscape, either.)

One catch is: I would very much like to avoid giving unique names to everything, for two reasons:

1. There are lots and lots of them. This is a roll-my-own HIERARCHICAL grid of sorts with buttons to insert and delete new rows on both of two levels.

2. All my update code makes heavy use of the fact that, when items in a form have the same name (as they do in each successive row in my grid), CF sends up the values as a comma-delimited list of values which I then loop through.




Any ideas?

Thanks for your help,
Peyton


-
Annual Sponsor FigLeaf Software - http://www.figleaf.com

To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-



-- Steven Rossweb application & interface developerhttp://blog.stevensross.com[mobile] 404-488-4364 [fax] 267-482-4364


[ AIM / Yahoo! : zeriumsteven ] [googleTalk : nowhiding ]




-
Annual Sponsor - Figleaf Software

To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=lo

Re: [ACFUG Discuss] Another Question From Rip Van Winkle

2008-02-18 Thread Steven Ross
never had any issues using getElementById (yes casing was wrong)...

On Mon, Feb 18, 2008 at 10:37 AM, Peyton Todd <[EMAIL PROTECTED]>
wrote:

> Steven, did mean Firefox supports *parentNode* instead of getElementById?
> My Firefox always complains of an error whenever it sees getElementById.
>
> Or is there perhaps a different spelling for Firefox? (not likely, right?)
> The last letter in getElementById is lower case, not upper case as you have
> it. But of course you meant to type it as lower case, right?
>
> -Original Message-
> From: Steven Ross
> Sent: Feb 18, 2008 10:16 AM
> To: discussion@acfug.org
> Subject: Re: [ACFUG Discuss] Another Question From Rip Van Winkle
>
> I have been using YUI (yahoo) library, it works well and has some nice
> built in cross browser functionality.
> firefox supports getElementByID and the childNodes property... they
> performa a little differently than in IE.
>
> On Mon, Feb 18, 2008 at 10:11 AM, Peyton Todd <[EMAIL PROTECTED]>
> wrote:
>
> > First, I believe I already have Firebug: when Firefox tells me I have an
> > error (lower righthand corner) I can click on that and see lots of info
> > about it; and which I click on the '^' in that panel, it morphs into a
> > window with 'Firebug' in its title. But I don't see how that helps me with
> > navigation in the actual code I'm writing. Or do you mean navigation as in
> > exploring the document while I'm debugging?
> >
> > Second, Doug, which of those frameworks would you recommend? In its
> > documentation, Adobe refers to Spry from time to time...
> >
> > I still have my question about how to re-write my particular functions
> > (or properties to be precise) Firefox-style. Thanks for the info that
> > parentNode = parentElement, but what about the other two?
> >
> > Incidentally, to most of you write web pages full of code like 'if IE to
> > this, if NS do that'? I hope there's a way to escape from that! I've had a
> > free ride on this so far since all my websites belonged to an INTRAnet
> > inside a NYC goverment agency which  standardized on IE...
> >
> > Or is that what a framework would encapsulate? And if I use that, would
> > I be able to read my own code?
> >
> > -Original Message-
> > From: Douglas Knudsen
> > Sent: Feb 18, 2008 9:55 AM
> > To: discussion@acfug.org
> > Subject: Re: [ACFUG Discuss] Another Question From Rip Van Winkle
> >
> > I suggest looking at using a framework.  This would be a Good Thing as
> > it would encapsulate these issues for you.  Frameworks for JS include Spry,
> > Dojo, JQuery, and the list could go on and on.
> >
> > DK
> >
> > On Feb 18, 2008 9:44 AM, Steven Ross <[EMAIL PROTECTED]> wrote:
> >
> > > First go get firebug for firefox... that will help you with the dom
> > > navigation.
> > > Firefox parentElement = parentNode
> > >
> > >
> > >
> > > On Mon, Feb 18, 2008 at 9:16 AM, Peyton Todd <
> > > [EMAIL PROTECTED]> wrote:
> > >
> > > > Hello again from the CF5 programmer trying to catch up.
> > > >
> > > > I always used to write for Internet Explorer, and did so again after
> > > > my return to programming a few months ago, resulting in what is by now a
> > > > rather complex site. Many CF (and other internet-based) programmers have
> > > > told me since then that I should have written for Firefox, and I now 
> > > > wish I
> > > > had, because of it's debugging abilities. But...
> > > >
> > > > How easy will it be to convert my existing code to run on Firefox?
> > > > Specifically, there are three functions I'm making heavy use of:
> > > >
> > > > 1. getElementById
> > > > 2. parentElement
> > > > 3. children[]
> > > >
> > > > According to my latest DOM book (O'Reilly, published 1998 - yes, I
> > > > know I need a new one) none of these exists in Netscape (same as 
> > > > Firefox,
> > > > right?). And sure enough I get error messages at least with the first 
> > > > one (I
> > > > never get past there to the others). So my question is:
> > > >
> > > > What is the Firefox way to do each of them? (According to my
> > > > O'Reilly book, document.all[] doesn't exist in Netscape, either.)
> > > >
> > > > One catch is: I would very much like to avoid giving unique names to
> >

Re: [ACFUG Discuss] Another Question From Rip Van Winkle

2008-02-18 Thread Peyton Todd
H. I'll definitely look into Spry. But just as a guess, that would mostly help me for future projects, right? Short of re-writing what I have done so far (a major task!), I still need to find a way our of my present dilemma. Lucky for me, this app is an INTRAnet just like all my previous ones were, so it might be feasible to switch to Firefox code for the relevant parts of my app if only I knew how to do that. So far I have the information that Firefox will support parentNode and childNodes[ ]. Have others had the same experience as Steven has with getElementById? Is it just me, and the browser's ability to sense my aura and reject getElementById only from me while accepting it from others?Strangely, I don't even find getElementById in my O'Reilly Dynamic HTML book. As of now I don't remember where I picked it up from...-Original Message-
From: Steven Ross <[EMAIL PROTECTED]>
Sent: Feb 18, 2008 10:41 AM
To: discussion@acfug.org
Subject: Re: [ACFUG Discuss] Another Question From Rip Van Winkle

never had any issues using getElementById (yes casing was wrong)...On Mon, Feb 18, 2008 at 10:37 AM, Peyton Todd <[EMAIL PROTECTED]> wrote:
Steven, did mean Firefox supports *parentNode* instead of getElementById? My Firefox always complains of an error whenever it sees getElementById. 
Or is there perhaps a different spelling for Firefox? (not likely, right?) The last letter in getElementById is lower case, not upper case as you have it. But of course you meant to type it as lower case, right? 
-Original Message-
From: Steven Ross 
Sent: Feb 18, 2008 10:16 AM
To: discussion@acfug.org
Subject: Re: [ACFUG Discuss] Another Question From Rip Van Winkle

I have been using YUI (yahoo) library, it works well and has some nice built in cross browser functionality.firefox supports getElementByID and the childNodes property... they performa a little differently than in IE.

On Mon, Feb 18, 2008 at 10:11 AM, Peyton Todd <[EMAIL PROTECTED]> wrote:

First, I believe I already have Firebug: when Firefox tells me I have an error (lower righthand corner) I can click on that and see lots of info about it; and which I click on the '^' in that panel, it morphs into a window with 'Firebug' in its title. But I don't see how that helps me with navigation in the actual code I'm writing. Or do you mean navigation as in exploring the document while I'm debugging?

Second, Doug, which of those frameworks would you recommend? In its documentation, Adobe refers to Spry from time to time...I still have my question about how to re-write my particular functions (or properties to be precise) Firefox-style. Thanks for the info that parentNode = parentElement, but what about the other two?

Incidentally, to most of you write web pages full of code like 'if IE to this, if NS do that'? I hope there's a way to escape from that! I've had a free ride on this so far since all my websites belonged to an INTRAnet inside a NYC goverment agency which  standardized on IE...

Or is that what a framework would encapsulate? And if I use that, would I be able to read my own code? 

-Original Message-----
From: Douglas Knudsen 
Sent: Feb 18, 2008 9:55 AM
To: discussion@acfug.org
Subject: Re: [ACFUG Discuss] Another Question From Rip Van Winkle

I suggest looking at using a framework.  This would be a Good Thing as it would encapsulate these issues for you.  Frameworks for JS include Spry, Dojo, JQuery, and the list could go on and on.DK


On Feb 18, 2008 9:44 AM, Steven Ross <[EMAIL PROTECTED]> wrote:


First go get firebug for firefox... that will help you with the dom navigation.Firefox parentElement = parentNode 
On Mon, Feb 18, 2008 at 9:16 AM, Peyton Todd <[EMAIL PROTECTED]> wrote:



Hello again from the CF5 programmer trying to catch up.

I always used to write for Internet Explorer, and did so again after my return to programming a few months ago, resulting in what is by now a rather complex site. Many CF (and other internet-based) programmers have told me since then that I should have written for Firefox, and I now wish I had, because of it's debugging abilities. But...





How easy will it be to convert my existing code to run on Firefox? Specifically, there are three functions I'm making heavy use of:

1. getElementById
2. parentElement
3. children[]

According to my latest DOM book (O'Reilly, published 1998 - yes, I know I need a new one) none of these exists in Netscape (same as Firefox, right?). And sure enough I get error messages at least with the first one (I never get past there to the others). So my question is:





What is the Firefox way to do each of them? (According to my O'Reilly book, document.all[] doesn't exist in Netscape, either.)

One catch is: I would very much like to avoid giving unique names to everything, for two reasons:

1. There are lots and lots of them. This is 

Re: [ACFUG Discuss] Another Question From Rip Van Winkle: Oh, they meant ID!

2008-02-18 Thread Peyton Todd
Red-faced, I am now compelled to report that my mistake with getElementById was that the elements reporting this error had no ID, but only a NAME. Duh! Internet Explorer evidently decided to be more forgiving on this point - at least that's my excuse for not noticing it...-Original Message-
From: Steven Ross <[EMAIL PROTECTED]>
Sent: Feb 18, 2008 10:41 AM
To: discussion@acfug.org
Subject: Re: [ACFUG Discuss] Another Question From Rip Van Winkle

never had any issues using getElementById (yes casing was wrong)...On Mon, Feb 18, 2008 at 10:37 AM, Peyton Todd <[EMAIL PROTECTED]> wrote:
Steven, did mean Firefox supports *parentNode* instead of getElementById? My Firefox always complains of an error whenever it sees getElementById. 
Or is there perhaps a different spelling for Firefox? (not likely, right?) The last letter in getElementById is lower case, not upper case as you have it. But of course you meant to type it as lower case, right? 
-Original Message-
From: Steven Ross 
Sent: Feb 18, 2008 10:16 AM
To: discussion@acfug.org
Subject: Re: [ACFUG Discuss] Another Question From Rip Van Winkle

I have been using YUI (yahoo) library, it works well and has some nice built in cross browser functionality.firefox supports getElementByID and the childNodes property... they performa a little differently than in IE.

On Mon, Feb 18, 2008 at 10:11 AM, Peyton Todd <[EMAIL PROTECTED]> wrote:

First, I believe I already have Firebug: when Firefox tells me I have an error (lower righthand corner) I can click on that and see lots of info about it; and which I click on the '^' in that panel, it morphs into a window with 'Firebug' in its title. But I don't see how that helps me with navigation in the actual code I'm writing. Or do you mean navigation as in exploring the document while I'm debugging?

Second, Doug, which of those frameworks would you recommend? In its documentation, Adobe refers to Spry from time to time...I still have my question about how to re-write my particular functions (or properties to be precise) Firefox-style. Thanks for the info that parentNode = parentElement, but what about the other two?

Incidentally, to most of you write web pages full of code like 'if IE to this, if NS do that'? I hope there's a way to escape from that! I've had a free ride on this so far since all my websites belonged to an INTRAnet inside a NYC goverment agency which  standardized on IE...

Or is that what a framework would encapsulate? And if I use that, would I be able to read my own code? 

-Original Message-
From: Douglas Knudsen 
Sent: Feb 18, 2008 9:55 AM
To: discussion@acfug.org
Subject: Re: [ACFUG Discuss] Another Question From Rip Van Winkle

I suggest looking at using a framework.  This would be a Good Thing as it would encapsulate these issues for you.  Frameworks for JS include Spry, Dojo, JQuery, and the list could go on and on.DK


On Feb 18, 2008 9:44 AM, Steven Ross <[EMAIL PROTECTED]> wrote:


First go get firebug for firefox... that will help you with the dom navigation.Firefox parentElement = parentNode 
On Mon, Feb 18, 2008 at 9:16 AM, Peyton Todd <[EMAIL PROTECTED]> wrote:



Hello again from the CF5 programmer trying to catch up.

I always used to write for Internet Explorer, and did so again after my return to programming a few months ago, resulting in what is by now a rather complex site. Many CF (and other internet-based) programmers have told me since then that I should have written for Firefox, and I now wish I had, because of it's debugging abilities. But...





How easy will it be to convert my existing code to run on Firefox? Specifically, there are three functions I'm making heavy use of:

1. getElementById
2. parentElement
3. children[]

According to my latest DOM book (O'Reilly, published 1998 - yes, I know I need a new one) none of these exists in Netscape (same as Firefox, right?). And sure enough I get error messages at least with the first one (I never get past there to the others). So my question is:





What is the Firefox way to do each of them? (According to my O'Reilly book, document.all[] doesn't exist in Netscape, either.)

One catch is: I would very much like to avoid giving unique names to everything, for two reasons:

1. There are lots and lots of them. This is a roll-my-own HIERARCHICAL grid of sorts with buttons to insert and delete new rows on both of two levels.

2. All my update code makes heavy use of the fact that, when items in a form have the same name (as they do in each successive row in my grid), CF sends up the values as a comma-delimited list of values which I then loop through.





Any ideas?

Thanks for your help,
Peyton


-
Annual Sponsor FigLeaf Software - http://www.figleaf.com

To unsubscribe from this list, manage your profile @
http://www.acfug.or

Re: [ACFUG Discuss] Another Question From Rip Van Winkle: Oh, they meant ID!

2008-02-18 Thread Steven Ross
You gotta love IE's "interpretation" of coding errors... i hate stuff like
that.

On Mon, Feb 18, 2008 at 2:03 PM, Peyton Todd <[EMAIL PROTECTED]>
wrote:

> Red-faced, I am now compelled to report that my mistake with
> getElementById was that the elements reporting this error had no ID, but
> only a NAME. Duh!
>
> Internet Explorer evidently decided to be more forgiving on this point -
> at least that's my excuse for not noticing it...
>
>
> -Original Message-
> From: Steven Ross
> Sent: Feb 18, 2008 10:41 AM
> To: discussion@acfug.org
> Subject: Re: [ACFUG Discuss] Another Question From Rip Van Winkle
>
> never had any issues using getElementById (yes casing was wrong)...
>
> On Mon, Feb 18, 2008 at 10:37 AM, Peyton Todd <[EMAIL PROTECTED]>
> wrote:
>
> > Steven, did mean Firefox supports *parentNode* instead of
> > getElementById? My Firefox always complains of an error whenever it sees
> > getElementById.
> >
> > Or is there perhaps a different spelling for Firefox? (not likely,
> > right?) The last letter in getElementById is lower case, not upper case as
> > you have it. But of course you meant to type it as lower case, right?
> >
> > -Original Message-----
> > From: Steven Ross
> > Sent: Feb 18, 2008 10:16 AM
> > To: discussion@acfug.org
> > Subject: Re: [ACFUG Discuss] Another Question From Rip Van Winkle
> >
> > I have been using YUI (yahoo) library, it works well and has some nice
> > built in cross browser functionality.
> > firefox supports getElementByID and the childNodes property... they
> > performa a little differently than in IE.
> >
> > On Mon, Feb 18, 2008 at 10:11 AM, Peyton Todd <[EMAIL PROTECTED]>
> > wrote:
> >
> > > First, I believe I already have Firebug: when Firefox tells me I have
> > > an error (lower righthand corner) I can click on that and see lots of info
> > > about it; and which I click on the '^' in that panel, it morphs into a
> > > window with 'Firebug' in its title. But I don't see how that helps me with
> > > navigation in the actual code I'm writing. Or do you mean navigation as in
> > > exploring the document while I'm debugging?
> > >
> > > Second, Doug, which of those frameworks would you recommend? In its
> > > documentation, Adobe refers to Spry from time to time...
> > >
> > > I still have my question about how to re-write my particular functions
> > > (or properties to be precise) Firefox-style. Thanks for the info that
> > > parentNode = parentElement, but what about the other two?
> > >
> > > Incidentally, to most of you write web pages full of code like 'if IE
> > > to this, if NS do that'? I hope there's a way to escape from that! I've 
> > > had
> > > a free ride on this so far since all my websites belonged to an INTRAnet
> > > inside a NYC goverment agency which  standardized on IE...
> > >
> > > Or is that what a framework would encapsulate? And if I use that,
> > > would I be able to read my own code?
> > >
> > > -Original Message-
> > > From: Douglas Knudsen
> > > Sent: Feb 18, 2008 9:55 AM
> > > To: discussion@acfug.org
> > > Subject: Re: [ACFUG Discuss] Another Question From Rip Van Winkle
> > >
> > > I suggest looking at using a framework.  This would be a Good Thing as
> > > it would encapsulate these issues for you.  Frameworks for JS include 
> > > Spry,
> > > Dojo, JQuery, and the list could go on and on.
> > >
> > > DK
> > >
> > > On Feb 18, 2008 9:44 AM, Steven Ross <[EMAIL PROTECTED]> wrote:
> > >
> > > > First go get firebug for firefox... that will help you with the dom
> > > > navigation.
> > > > Firefox parentElement = parentNode
> > > >
> > > >
> > > >
> > > > On Mon, Feb 18, 2008 at 9:16 AM, Peyton Todd <
> > > > [EMAIL PROTECTED]> wrote:
> > > >
> > > > > Hello again from the CF5 programmer trying to catch up.
> > > > >
> > > > > I always used to write for Internet Explorer, and did so again
> > > > > after my return to programming a few months ago, resulting in what is 
> > > > > by now
> > > > > a rather complex site. Many CF (and other internet-based) programmers 
> > > > > have
> > > > > told me since then that I should have written for Firefox, and I now 
&