Hi brandags,

I eventually ended up check for browsers and initializing scripts only
if it IE. For me, IE7 works well and as desired and the problem is
with firefox.

bingo



On May 30, 3:47 pm, brandags <[EMAIL PROTECTED]> wrote:
> I'm having the exact same problem.
> I section of the page is loaded dynamically via ajax, and it contains
> the following:
>
> <input type="button" id="btntest" value="Test" />
> <script type="text/javascript">
> $(document).ready(function(){
>         $('#btntest').click(function(){
>                 alert("HEY");
>         });});
>
> </script>
>
> And when you click the button, "HEY" is alerted twice! This seems to
> happen whether or not it is enclosed within document.ready. If you put
> the javascript inline then it only does it once, but I'd rather not do
> that. The event should not be firing twice in Firefox.
>
> Brandon
>
> On May 28, 5:13 am, "Jean Nascimento" <[EMAIL PROTECTED]> wrote:
>
> > i dont have problems with that, how u call the website2?? Try dont use
> > the same id for the elements or something like that.
>
> > On 5/28/07, bingo <[EMAIL PROTECTED]> wrote:
>
> > > hi..
>
> > > I tried some debugging and found that IE7 is not having any problem
> > > with it..the problem is with firefox....this definitely shows that
> > > there is some bug in Jquery itself
>
> > > Regards,
> > > bingo
>
> > > On May 27, 8:25 pm, bingo <[EMAIL PROTECTED]> wrote:
> > > > hi,
>
> > > > I have a webpage (say webpage1) that include another webpage (say
> > > > webpage2). Both the pages have $(document).ready(......to attach
> > > > jquery function to elements of their page. However, since webpage2 is
> > > > included within webpage1, the functions within webpage2 are getting
> > > > calledtwice. Is there a way to avoid calling a functiontwice
>
> > > > I want to keep $(document).ready in both the pages as, sometime the
> > > > webpage2 can be directly called..
>
> > > > Please help me with this
>
> > > > Regards,
> > > > bingo
>
> > --
>
> > []´s Jeanwww.suissa.info
>
> >    Ethereal Agencywww.etherealagency.com

Reply via email to