Page 1 of 1

Bad HTML and the whole app stops working

Posted: Mon Jul 21, 2014 4:31 pm
by Alex Van Name

When I add bad HTML code , the whole app seems to stop working

Can you please help me? Weinre debugger gives me no information, but the Firefox browser gave me these errors:

Use of Mutation Events is deprecated. Use MutationObserver instead. target-script-min. js:1271
SyntaxError: syntax error jspdf.js:6
SyntaxError: syntax error downloadify.min.js:6
The stylesheet http://appery.io/404.htm was not loaded because its MIME type, "text/html", is not "text/css". loginScreen.html
SyntaxError: syntax error jspdf.min.js:1
SyntaxError: syntax error editor. js:1
Empty string passed to getElementById(). jquery.mobile-1.4.2.js:14927
TypeError: $.mobile is undefined mobilebase. js:29
ReferenceError: jsPDF is not defined loginScreen. html:3098
Use of getPreventDefault() is deprecated. Use defaultPrevented instead. jquery-1.9.1. js:3346
Use of attributes' nodeValue attribute is deprecated. Use value instead.
target-script-min.js:4299

Image Image Image


Bad HTML and the whole app stops working

Posted: Mon Jul 21, 2014 5:02 pm
by Evgene Karachevtsev

Hello Alex,

It seems that there were problems with loading external resources from the pages:
https://github.com/MrRio/jsPDF/blob/m...
https://github.com/dcneiner/Downloadi...
You should add them as custom JS (copy the contents and paste it into a new JS file):
http://devcenter.appery.io/documentat...


Bad HTML and the whole app stops working

Posted: Tue Jul 22, 2014 2:49 am
by Alex Van Name

Thank you Evgene Karachevtsev,

I know you have helped many people and I am still having problems with the java script even to do simple things like pre-load a pdf into local memory and then have it available for the user to click and get the document.

I know there are older documents, but I am having trouble following and installing javascripts.

They all are free, but they all have problems for something.

It is more than I can write on my own, but I wish there were tutorials about this. I am sure there are more being made, but printing is kind of basic I think for many apps that want to be both on the cloud and local. I know the future is going in this direction.

This is hard for me. Thanks for your patience. I will try to read more tomorrow.

Alex


Bad HTML and the whole app stops working

Posted: Tue Jul 22, 2014 3:00 am
by Alex Van Name

I see there are problems even with the login screen, which i copied from Appery.io and it works fine. I don't understand why there are errors like this.


Bad HTML and the whole app stops working

Posted: Tue Jul 22, 2014 4:45 pm
by Evgene Karachevtsev

Alex,

As far as I understand, you connect multiple external js files. Could you please check are all of them connected properly, you may have some dependencies? You should try to connect external files one by one, make one of them working and skip to the next.


Bad HTML and the whole app stops working

Posted: Wed Jul 23, 2014 12:49 am
by Alex Van Name

ok thanks, I have been trying to make this work. This is very hard for me. Thanks for your advice.

I have been trying different scripts.


Bad HTML and the whole app stops working

Posted: Thu Jul 24, 2014 12:40 pm
by Maryna Brodina

Hello Alex!

I am sorry, not sure I understand - do you need further help?