On Mon, 2006-18-12 at 14:41 +0800, Bob Ippolito wrote:
> On 12/18/06, iain duncan <[EMAIL PROTECTED]> wrote:
> >
> > > > Ok, I've established that getting the element is working, it's changing
> > > > it's text child by doing
> > > >
> > > > .innerHTML = "Foobar"
> > > >
> > > > that is not working. In this case, the element in question is an input
> > > > box in a form. On Firefox, I can change the text in the input that way,
> > > > but IE won't let me.
> > >
> > > input tags don't have innerHTML, that's why it's not doing anything.
> > >
> > > $("input").value = "foo";
> >
> > Thanks Bob, that fixed that problem. Guess I should really be learning
> > to use mochikit with all the browsers at the same time and not just
> > trying stuff out randomly, Firefox is making me a lazy programmer! :/
> 
> s/mochikit/javascript/. This is basic DOM and HTML stuff. innerHTML
> means literally what it says. There is no HTML inside an input tag,
> they're empty. Why would you expect innerHTML to change the value
> attribute?

Only because in firefox it does! I do not mean that I am complaining out
Mochikit, merely pointing out at my own expense that trying stuff out
without checking whether it's valid is a bad habit as I'm finding out
that you can get away with sloppy/improper use of the mochikit tools in
firefox without realizing it won't work in IE.

Iain



--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to