try return false after the click handler...

$(document).ready(function(){
$("#show").click( function() {
$(".feeds").load("testjq.html");
return false;
} );
$("#showb").click( function() {
$(".feeds").load("testjqb.html");
return false;
} );
});

untested, and i know it is somewhat weird to try this, but the problem u r
facing is equally weird ;-).

-GTG

On 7/13/07, matt <[EMAIL PROTECTED]> wrote:


Well internet explorer comes up with a prompt to 'allow blocked
content'... if I click on the first link after that, it's fine, but
the second opens up window explorer for some reason.  In firefox...
the first link - fine.  The second for page 2 still shows page 1
content, and then appends page 2 content and then everything
disappears.  Any ideas?

On Jul 12, 6:00 pm, "Ganeshji Marwaha" <[EMAIL PROTECTED]> wrote:
> what error are u getting?
>
> On 7/12/07, matt <[EMAIL PROTECTED]> wrote:
>
>
>
> > I'm trying to set up a site so I can load a page based upon a certain
> > link clicked... but this is causing errors... any ideas?  This is my
> > first day using jquery... so I'm a newbee!  TIA!
>
> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://
> >www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> > <html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
> > <head>
> > <title>JQuery: Collapsible Menu</title>
> > <script type="text/javascript" src="jquery-1.1.3.1.pack.js"></script>
> > <script type="text/javascript">
> > $(document).ready(function(){
> >         $("#show").click( function() {  $(".feeds").load("testjq.html");
}
> > );
> >         $("#showb").click( function() { $(".feeds").load("testjqb.html
");}
> > );
> > });
> > </script>
> > <style type="text/css">
> >         #feeds {
> >                 display: block;
> >                 border: 4px inset #cd5c5c;
> >         }
> > </style>
> > </head>
> > <body>
> > <a href="#" id="show">Click to Show</a> <a href="" id="showb">Click to
> > show page 2</a>
> > <div class="feeds"></div>
> > </body>
> > </html>


Reply via email to