October 9, 201312 yr Hi all, I am working on a new site and as part of one of the pages I wanted a class to be added when someone scrolled a certain amount. I had posted in another forum where somebody had coded up some jQuery that was working better than what I was using. On the demo page of this new jQuery it was working fine. When I had added the code to my development site it seemed to be removing a small amount of code. I'm not familiar with jQuery so I don't really know what is going on. Screenshots attached of what is going on. error-message.png is what is displayed on the page. dreamweaver-code.png is what the code looks like in Dreamweaver. source-code.png is what is missing on the page. It works when I upload a .html file with basic code in but when I add to my site the errors get displayed and what looks like, code removed. Because of that I would think that it has something to do with other code on the site but I'm not too sure. Thought that somebody here might have an idea. Cheers. Al.
October 9, 201312 yr Remove the $ sign from the variable in both cases. Looks like a weird PHP environment that doesn't require <?php tags to execute.
October 13, 201312 yr Author Hi andy, thanks for the reply, sorry just getting back now. If I remove $ the error is gone alright but the functionality doesn't work - as in the add class at specific scroll.
Create an account or sign in to comment