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:17:24 PM UTC-7, 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 click sees the actual
> html shift (kind of stretch and go back). It does however work on the
> second click consistently.
>
> <script>
> $(document).on('click', '.iframe_add', function(){
> var element = $(this).attr('name');
> $('#iframe_target').html('<iframe src="
> https://104.131.18.58/t3/default/ajax_new_secured_asset_debt_creator?all='+element
>
> +'" frameborder="0" width="580" height="300" scrolling="yes"
> id="myFrame"></iframe>');
> });
>
>
> </script>
>
> Only thing I found is:
> http://stackoverflow.com/questions/24487664/jquery-on-click-doesnt-work-on-first-click-with-a-dynamic-element
>
> I dont really get whats going on and Id appreciate any help.
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.