Alex Van Name
Posts: 0
Joined: Mon Jun 30, 2014 7:36 pm

Bad HTML and the whole app stops working

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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Bad HTML and the whole app stops working

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...

Alex Van Name
Posts: 0
Joined: Mon Jun 30, 2014 7:36 pm

Bad HTML and the whole app stops working

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

Alex Van Name
Posts: 0
Joined: Mon Jun 30, 2014 7:36 pm

Bad HTML and the whole app stops working

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.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Bad HTML and the whole app stops working

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.

Alex Van Name
Posts: 0
Joined: Mon Jun 30, 2014 7:36 pm

Bad HTML and the whole app stops working

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.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Bad HTML and the whole app stops working

Hello Alex!

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

Return to “Issues”