Thanks for the reply, T.J. i'm going to read through that article.
Hopefully i can figure this out.

John

On Oct 29, 2:38 am, "T.J. Crowder" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> > I know doing event handlers like this is bad, bad, and frowned upon,
> > but even if i do it unobtrusively it still doesn't work in IE6 or 7.
>
> I don't know what the problem with the obtrusive one is, but I'm
> guessing this will address the issue with doing the unobtrusive
> version where you use Element.observe after doing the 
> update:http://proto-scripty.wikidot.com/prototype:tip-scripting-dynamically-...
>
> HTH,
> --
> T.J. Crowder
> tj / crowder software / com
>
> On Oct 28, 11:52 pm, johnrails <[EMAIL PROTECTED]> wrote:
>
> > Hi all,
>
> > I'm having a small issue with generated content using prototype's
> > Element object. Here's the gist of what i'm doing
>
> > var para = new Element('p',
> > {'class':'button',onclick:'alert("hello");'}).update("Alert You?");
>
> > after i just insert this into a div on my page. When i go to the page
> > i do get the text "Alert You?" but the onclick only works in firefox.
> > I get nothing out of IE not even an error.
>
> > It seems to work if i do this: var para = '<p class="button"
> > onclick="alert(\'Alert You?\');">Alert You?</p>';
> > then i insert the p into my container div.
>
> > I know doing event handlers like this is bad, bad, and frowned upon,
> > but even if i do it unobtrusively it still doesn't work in IE6 or 7.
>
> > Any help would be much appreciated.
>
> > John
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to