Your comments

That's weird. Unfortunately, the error message probably isn't related.

Where is the problematic file saved? Is it in Dropbox?

Did you reload the file with Cmd-R in Safari and it didn't show the changes?
Hi, I don't think those messages are related. Please look for messages that start with "Textastic: ".
Is that the actual code? There should be a space between "new" and "Image". Also, parentheses are missing:

var newImg = new Image();
Hello, do you see any errors logged in the "Console" app when this happens?
Thanks for the sample code.

The problem is that jQuery UI is designed for desktop computers and not touch UIs.
Please have a look at this Stackoverflow discussion: http://stackoverflow.com/questions/3026915/how-ca...

"jQuery UI Touch Punch" at https://github.com/furf/jquery-ui-touch-punch seems to be the solution.

It worked as expected after I downloaded the file https://github.com/furf/jquery-ui-touch-punch/blo... and added this line to the HTML file:

<script src="jquery.ui.touch-punch.min.js"></script>
Can you maybe send me an example project to support@textasticapp.com so I can try to reproduce the issue?
You can add your own syntax definitions to Textastic using TextMate bundles.

I've created a bundle derived from the syntax file at http://adamv.googlecode.com/svn/editors/e/bundles/Windows%20Cmd.tmbundle/Syntaxes/Shell%20Script.tmLanguage

You can download the bundle here:
http://www.textasticapp.com/support/Batch.tmbundle.zip

Have a look at the manual to see how can you install it in Textastic:
http://www.textasticapp.com/v4/manual/lessons/How_can_I_add_my_own_syntax_definitions__themes_and_templates.html

Once you install it, the "Batch File" syntax should be automatically selected when you open .bat or .cmd files.

This syntax definition will be built-in in the next update.
Sorry, but that's not possible due to sandboxing. Safari cannot open local files. You would need to upload the files to a server and enter the URL in Safari.

That's why Textastic has the local web preview feature.
This uses private APIs (private method setScriptDebugDelegate), so I can't really use it.