[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 a tag around an image.) If so: $(#i4).click(function() { document.location.href = 'index.php? whichPage=sliderwhichAct=0subPage=mixnmingle'; }); Or did you mean load an external page

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

2009-08-06 Thread Richard D. Worth
Use window.location = index.php?whichPage=sliderwhichAct=0subPage=mixnmingle; - Richard On Thu, Aug 6, 2009 at 2:35 PM, paul.mac paul.mcma...@uuconstruct.co.ukwrote: 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(){

[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 rdwo...@gmail.com wrote: Use window.location = index.php?whichPage=sliderwhichAct=0subPage=mixnmingle; - Richard On Thu, Aug 6, 2009 at 2:35 PM, paul.mac

[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 paul.mcma...@uuconstruct.co.uk wrote: Thanks guys - came to the same conclusion