javascript is not working on 000webhost free service?
I am creating a web app using jqtouch and the ical project. When I test my progress locally it works like a charm but when I upload my files the javascript file that starts i cal does not work and there is nothing shown up.Furthermore the jqtouch javascript files work perfectly.I use 000webhost free service. My site is webstore.web44.net my code:
I am creating a web app using jqtouch and the ical project. When I test my progress locally it works like a charm but when I upload my files the javascript file that starts i cal does not work and there is nothing shown up.Furthermore the jqtouch javascript files work perfectly.I use 000webhost free service. My site is webstore.web44.net my code: <!DOCTYPE html> <html> <head> <meta charset="UTF-8" />
Something may not be supported, after all it is free. Assuming that you are doing it right, why are you asking us and not http://members.000webhost.com/login.php?
OK, I'm not sure without playing with the thing. However, the error '$('#any_id').getCalendar' [undefined] is not a function seems pretty straightforward. You haven't defined getCalendar, perhaps that is defined somewhere on your local machine, but not on the web-space?
This problem line contains the script of javascript that starts icalendar so it is not so easy for me to make changes. Also, the reference says that you just have to place the script that starts ical. It is really strange because my script works perfectly in local but it cannot run properly in the web.I also tried my script in other web hosting services.
Having never used javascript I can't be of much help, but here are some suggestions....
- Have you confirmed that the stuff in the jqtouch directory on your server is working correctly? Is there a setup file, example or an admin page within the directory that you can use to verify the installation of it?
- Does javascript have an error reporting function like php does? If you turn that on does your page display any errors? These might help.
Safari web inspector gives me an error. it says: TypeError: Result of expression '$('#any_id').getCalendar' [undefined] is not a function. Does anybody know what that means or how i could make it work?
. That indicates to me that the file is loading, so, for that file at least, you can forget my comment about bad file paths.
. I'm guessing that you copy/pasted some code and don't fully understand what it does. I'm also guessing that '#any_id' needs to be replaced with, well, some kind of id. Maybe it just needs to be set in one of the other included files. It's really difficult to tell without some idea of what is supposed to happen (or a look at the other code).
. My first _guess_ is that there is a difference in the directory structures. The script can't find the other files. . If possible, turn on debugging messages. . As per lemonie, your hosting service should be able to give a better answer.
PDF Downloads As a Pro member, you will gain access to download any Instructable in the PDF format.
You also have the ability to customize your PDF download.
Something may not be supported, after all it is free.
Assuming that you are doing it right, why are you asking us and not http://members.000webhost.com/login.php?
L
OK, I'm not sure without playing with the thing.
However, the error '$('#any_id').getCalendar' [undefined] is not a function seems pretty straightforward. You haven't defined getCalendar, perhaps that is defined somewhere on your local machine, but not on the web-space?
L
Well if it works on other hosting, I'd go back to my original answer:
Something may not be supported, after all it is free.
Tell us what the helpline said when they get back to you.
L
- Have you confirmed that the stuff in the jqtouch directory on your server is working correctly? Is there a setup file, example or an admin page within the directory that you can use to verify the installation of it?
- Does javascript have an error reporting function like php does? If you turn that on does your page display any errors? These might help.
it says:
TypeError: Result of expression '$('#any_id').getCalendar' [undefined] is not a function.
Does anybody know what that means or how i could make it work?
$('#any_id').getCalendar();
});
. I haven't used JS in many years, but that line of code looks wonky to me.
. It might also be caused by not loading in the file that contains the getCalendar functions. See my previous comment.
. I'm guessing that you copy/pasted some code and don't fully understand what it does. I'm also guessing that '#any_id' needs to be replaced with, well, some kind of id. Maybe it just needs to be set in one of the other included files. It's really difficult to tell without some idea of what is supposed to happen (or a look at the other code).
. If possible, turn on debugging messages.
. As per lemonie, your hosting service should be able to give a better answer.