[jQuery] Re: Click event to load a new page

2009-08-06 Thread Simon
This is something that was bothering me too, and I came to the same conclusion. How is this for SEO though? Redirecting with Javascript that is? Does it recognize the link? Cheers, Simon On Aug 6, 3:52 pm, "paul.mac" wrote: > Thanks guys - came to the same conclusion shortly after posting the >

[jQuery] Re: Click event to load a new page

2009-08-06 Thread paul.mac
Thanks guys - came to the same conclusion shortly after posting the question. Thanks Paul On Aug 6, 7:52 pm, "Richard D. Worth" wrote: > Use > window.location > = "index.php?whichPage=slider&whichAct=0&subPage=mixnmingle"; > - Richard > > On Thu, Aug 6, 2009 at 2:35 PM, paul.mac > wrote: > >

[jQuery] Re: Click event to load a new page

2009-08-06 Thread Richard D. Worth
Use window.location = "index.php?whichPage=slider&whichAct=0&subPage=mixnmingle"; - Richard On Thu, Aug 6, 2009 at 2:35 PM, paul.mac wrote: > > I want to add a click function to an image to laod a new page > > Tried this but it doesn't work > > $("#i4").click(function(){ >$(document).attr("hr

[jQuery] Re: Click event to load a new page

2009-08-06 Thread James
Do you mean that when someone clicks on an image, it just goes to a different page? (Similar to a normal tag around an image.) If so: $("#i4").click(function() { document.location.href = 'index.php? whichPage=slider&whichAct=0&subPage=mixnmingle'; }); Or did you mean "load" an external page