[web2py] Re: Weird Javascript Behavior -- 2 clicks to fire (Sorry, Dont know where else to turn)

2016-05-02 Thread Mark Billion
Ok. So here is the hackity-hack solution I came up with (if you cant beat em, join em): parent.document.getElementsByClassName("iframe_input")[0].click(); I just force a click on the first input element when the modal hides and this seems to resolve the behavior. That being said, this seems re

[web2py] Re: Weird Javascript Behavior -- 2 clicks to fire (Sorry, Dont know where else to turn)

2016-04-29 Thread Stuart Rolinson
Hi Mark, Can you pull together a simple example showing this with your HTML, CSS and Javascript. I understand what you are trying to do but I need to see more in order to understand when the click event is being applied to the .iframe_add objects. Thanks Stuart On Friday, April 29, 2016 at 1

[web2py] Re: Weird Javascript Behavior -- 2 clicks to fire (Sorry, Dont know where else to turn)

2016-04-29 Thread Massimo Di Pierro
Hello Mark, can you explain one moment the big picture. What do you want your app to do? Massimo On Friday, 29 April 2016 15:17:24 UTC-5, Mark Billion wrote: > > Here's the script. When I click it on load, works like a charm. When I > click it via a dynamically created element, the first cli