sobiguy
04-21-2016, 12:05 AM
I hope someone can help me. I new to js but vet with html.
I have been trying to use this [I though] simple js from here.
http://javascriptkit.com/script/script2/fpslideshow/index.shtml
I have followed the instructions to the letter for what feels like hundreds of times. Yet it never works!
I tried it on two different servers and always the same thing. their demo works when you link the demo.htm to their fpslidershowvar.php but not mine.
I have debugged via firefox brower and it shows that it's finding my fpslidershowvar.php but it never gets a response back
from browser debug:
GET http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js [HTTP/1.1 200 OK 0ms]
GET http://10.168.201.52/pictures/fpslideshowvar.php [HTTP/1.1 200 OK 16ms]
GET http://10.168.201.52/fpslideshow.js [HTTP/1.1 200 OK 16ms]
SyntaxError: expected expression, got '<' fpslideshow.js:137
ReferenceError: fpslideshowvar is not defined fpslideshow.js:137:2
The demo works but the code provided doesn't .
Can someone please try it and let me know if the code provided is faulty.
I'm honestly not good enough with js yet to just look at it and see if it has a period or a coma out of place some where.
I'm currently trying to run this on raspberry pi using apache2 and php5. But i have also tested it on my godaddy server and it does the exact same thing.
Ive been beating my head against a wall here for a week and just can't see what has to be obviously wrong.
Thank you for you help!
Sobiguy
I have been trying to use this [I though] simple js from here.
http://javascriptkit.com/script/script2/fpslideshow/index.shtml
I have followed the instructions to the letter for what feels like hundreds of times. Yet it never works!
I tried it on two different servers and always the same thing. their demo works when you link the demo.htm to their fpslidershowvar.php but not mine.
I have debugged via firefox brower and it shows that it's finding my fpslidershowvar.php but it never gets a response back
from browser debug:
GET http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js [HTTP/1.1 200 OK 0ms]
GET http://10.168.201.52/pictures/fpslideshowvar.php [HTTP/1.1 200 OK 16ms]
GET http://10.168.201.52/fpslideshow.js [HTTP/1.1 200 OK 16ms]
SyntaxError: expected expression, got '<' fpslideshow.js:137
ReferenceError: fpslideshowvar is not defined fpslideshow.js:137:2
The demo works but the code provided doesn't .
Can someone please try it and let me know if the code provided is faulty.
I'm honestly not good enough with js yet to just look at it and see if it has a period or a coma out of place some where.
I'm currently trying to run this on raspberry pi using apache2 and php5. But i have also tested it on my godaddy server and it does the exact same thing.
Ive been beating my head against a wall here for a week and just can't see what has to be obviously wrong.
Thank you for you help!
Sobiguy