[thelist] string help

Tom Dell'Aringa pixelmech at yahoo.com
Thu Oct 31 14:33:01 CST 2002


--- ".jeff" <jeff at members.evolt.org> wrote:
> tom,
>
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> > From: Tom Dell'Aringa
> >
> > cell.innerHTML = '<a href="javascript: deleteDoc()">blah</a>'
> >
> > Forget about my poor link usage with JS and all that, I
> > have no choice. What I DO need to do is write this for
> > the parameter of the deleteDoc() function:
> >
> > "cb_3"
> >
> > now the number 3 is equal to a parameter in this function
> > of ID.
> >
> > The cb_ part is written before this, this is all working
> > on a checkbox. What I have in my doc is a checkbox like
> > this:
> >
> > <input type="checkbox" id="cb_3"> blah blah
> >
> > I have to pass this name in my deleteDoc() function as
> > a STRING. I cannot seem to get it right. Part of it is
> > this
> >
> > "cb_" + ID but I can't seem to get the quotes around
> > the string!
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
>
> i'm guessing this deleteDoc() function checks a checkbox, right?
> is there a
> reason you can't just use a <label> tag?

Actually no. This function is connected to an "X" graphic. When the
checkbox is checked and they click on the X, it deletes that item.
The function needs to grab the ID of the checkbox so it can whack it.
If I just pass cb_3 of course it thinks its a variable, not the iD...

T

=====
var me = tom.pixelmech.webDeveloper();

http://www.pixelmech.com/
http://www.maccaws.com/
[Making A Commercial Case for Adopting Web Standards]

__________________________________________________
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/



More information about the thelist mailing list