Welcome Guest, Not a member yet? Register   Sign In
Jquery anchor refreshing problems
#1

[eluser]theo_france[/eluser]
Hi all,


I'm using CI 1.7.2 and i wanted to use some Jquery scripts.
The problem is that when we use some scripts with anchor like :"#" , the page is refreshing instantly and we can't see the effet that we wanted to do.

Have you got a solution to bypass this problem ?

Thank you very much.
#2

[eluser]Alur[/eluser]
Hi,

I guess you should add "return false" at the end of your jquery function to prevent the browser from following the link / refreshing the page...

Just google "jquery return false" for examples...
#3

[eluser]theo_france[/eluser]
Thank you, i'll have a look.




Theme © iAndrew 2016 - Forum software by © MyBB