T
T
tamaki2010-11-24 16:02:37
JavaScript
tamaki, 2010-11-24 16:02:37

Problem with click event in ajax?

there is a code

$(document).ready(function(){<br/>
 $('.banner_stat').bind( 'click', <br/>
 function(event){<br/>
 $.get(&quot;index.phtml&quot;, { banner:$(this).attr(&quot;id&quot;)}); <br/>
 });<br/>
 <br/>
});


this code should fire when the element is clicked (in my case it's a div). In Mazil opera, everything works fine regardless of the contents of the div ... in chrome and ie it does not work when there is an embed inside the div. Is it possible to fix this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pxx, 2010-11-24
@pxx

As iStyx has already pointed out, clicks on an object inside an embed do not go to the client.
I see 2 solutions, each of which is no better than the other:
1. Process the click in the object (flash?) and pass it to the client.
2. Cover the object from above with a transparent div and catch a click on it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question