On Dec 29, 3:31 pm, Ernest Delgado <[email protected]> wrote:
> Hi Bob,
> Do you mean that the state of the checkbox won't change if you click on it?
Exactly.
> The code looks fine for that purpose. If you are expecting any other action
> to happen you should post the code you are using to attach the listeners.
No, I WANT the user to be able to change the checkbox state, i.e., he
should be able to deselect it. As for event listeners, no I don;t have
any coded yet. Is that what I need?
>
> Thanks,
> Ernest
>
>
>
> On Tue, Dec 29, 2009 at 2:53 PM, FractalBob <[email protected]> wrote:
> > I suppose it would be nice if I provided the context of my content
> > script. My extension enhances Google Groups and the script interacts
> > with the post page:
> >http://groups.google.com/group/chromium-extensions/post
>
> > On Dec 29, 2:14 pm, FractalBob <[email protected]> wrote:
> > > Hi,
>
> > > My content script creates a checkbox OK, but when I try to manually
> > > change the state, nothing happens. Here's the code:
>
> > > var tables = document.getElementsByTagName("table");
> > > var checkbox_tbl = tables[tables.length - 2];
>
> > > var vmc_row = document.createElement("tr");
> > > vmc_row.vAlign = "top";
> > > var vmc_element = document.createElement("td");
>
> > > var vmc_box = document.createElement("input");
> > > vmc_box.id = "vmc";
> > > vmc_box.type = "checkbox";
> > > vmc_box.name = "vmc";
> > > vmc_box.checked = "checked";
>
> > > var vmc_label = document.createElement("label");
>
> > > vmc_label.appendChild(document.createTextNode
> > > ("\u00a0\u00a0\u00a0\u00a0Post\u00a0this\u00a0message\u00a0as
> > > \u00a0virtual\u00a0mail\u00a0content"));
> > > vmc_box.appendChild(vmc_label);
> > > vmc_element.appendChild(vmc_box);
> > > vmc_row.appendChild(vmc_element);
> > > checkbox_tbl.appendChild(vmc_row);
>
> > > Thanks.
>
> > > Bob
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Chromium-extensions" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<chromium-extensions%2Bunsu 
> > [email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/chromium-extensions?hl=en.

--

You received this message because you are subscribed to the Google Groups 
"Chromium-extensions" 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/chromium-extensions?hl=en.


Reply via email to