Textillate works locally but not on live site - javascript

I am using the plugin Textillate to animate some text on my site.
I have developed the site locally to my liking and today I decided I wanted to transfer it to a live site. After doing so , textillate breaks. I've double checked my localhost and my live server are running the same version of php.
Why is this happening? What could cause an error on the live site, but not locally? It doesn't make much sense to me. All files are included, everything is word for word the same.

Related

Google Rich Text Editor Demo not running on localhost

I'm trying to run the google editor demo on my local machine to see if I can use it in my project.
https://google.github.io/closure-library/source/closure/goog/demos/editor/editor.html
I've downloaded the latest stable source code:
https://github.com/google/closure-library/releases
Unzipped the source code on my local machine and went to folder closure\goog\demos\editor
And Opened editor.html without changing any source code.
I get an incomplete editor with no buttons and not working as per the demo on github, maybe I'm missing something.
This is a node.js project and not a single HTML page.
You should follow the official tutorial to use it.

SharePoint not always loading jquery in Word 365 "Online" add -in

I have created an Office add-in which side loads Documents in SharePoint into Word.
To debug I use Word online, and open a more or less blank Word document in the same folder in SharePoint.
I then "Upload" my manifest file and initialise the add-in.
The add-in makes extensive use of jquery - and to avoid pitfalls I access a jquery file in the same folder set in SharePoint (hardcoded URL for now) rather than using the default SharePoint jquery.
So in SharePoint I have folders
Main Hosting folder
followed by
ContentDOCX has 1..n Word documents
Images all the images I use in the add-in (+ and - treeview for jquery)
Scripts Office js 1, jquery latest stable, and my add-in js
generated.aspx (the add-in html) with references to above scripts and images and sp.js from SharePoint /_layouts/15/ folder
and a nearly empty testGen.docx - which I am using to debug the code - up to Word.run, at which point the browser naturally errors, but I can test the last in Word locally.
When I load using Word online, I can happily run, view debug, and Word locally all works fine.
But when I ask one of the team to test the add-in fails to load jquery treeview, so they get an ugly badly designed bullet list, and a broken up web page in their add-in. Both online Word, via a browser and local Word.
Comparing browser settings in IE 11, they look identical.
We all have the same level of access to the SharePoint folders
Any suggestions regarding what might be preventing the scripts from running on the team machines? (Antivirus and firewall have both been checked)
One of the team can load a locally based copy I built, and jquery treeview works, but SharePoint fails - so it seems to point at remote web or SharePoint access.
Turned out to be a stupid error on my part!
When you copy sets of files to SharePoint using OneDrive for business they load as "checked in" - so all the html, JavaScript files etc. were safely checked in.
What I didn't know is that css files dragged into "Custom" folder in the sites Style library are not checked in.
Here's the odd part, not checked in files will work for the creator, but not for anyone else.
Once I was able to get to another users machine with debugging, I could see the CSS files were not being found (this was the misleading part, as jQuery was available, but tree-view is reliant on the CSS!) A quick browse on the same users machine to the Style Library and I noticed the CSS files were not visible! A quick check-in and all immediately worked fine!
Oh well you live and you learn!
Thanks to all who took time to look at this.

How can you get Smaato ads to open in system Browser when building mobile apps in Monaca?

I've got a couple apps that I want to place ads in. I've tried using a couple different ad platforms but have decided on Smaato (inmobi was my first choice, but I've not had any success with my getting account activated). Smaato integrates well and it works, however it's js (hosted on their site) has the links opening with target="_blank". This would be great if I was using this on a website instead of an app, however all this does on my app is open it in the inapp browser. I tried downloading a local copy of the js and changing the function to build with target="_system" instead, but this breaks it somehow.
If anyone has done anything similar to this please let me know what you did to get it working.
Thank you

Zero ClipBoard issue

I am trying to integrate Zero Clipboard into tornado web application and I am running into some problems.
http://jonrohan.github.io/ZeroClipboard/#demo this page works perfectly, but when I try to view same page on my local machine ('Save page as..' to get all the files locally) after opening HTML file I get http://snag.gy/sT1y2.jpg . And this happens (same error) even if I do everything what is written in tutorial (only required lines of code).
Maybe some one had similar problem?
Thanks
I had the similar problem and I made it to work by uploading it to server where it worked fine.
Instead of testing it on local, please test it some where on server.

Javascript not working on localhost, but it is working on Live site

I am facing JavaScript problems on XAMPP Localhost. The Collapse Buttons, go to top button and jQuery news feed are not working on every site on my localhost.
But Facebook, Twitter, Plusone buttons load correctly from remote server i.e. from the respective Social Sites.
So, I think it narrows me to the point that the JavaScript files hosted locally are not executed while those from Facebook etc. are getting executed.
I tried reinstalling XAMPP but didn't work.
I know this is old but, I had the same problem and found this question while searching a solution. But I have lampp installed on ubuntu and since Linux asks permission to execute ANYTHING, the local js files which resided in htdocs were without permission. After:
sudo chmod 777 -R /opt/lampp/htdocs
... everything was OK. Hope this helps future wanabee web developers.
It should not matter whether your files are local or not...javascript should still get executed. Try using some debugging tool like to see if you get any errors that only occur on your local machine. Because it could be that you are running some code that is depending on a domain or whatever.
I know this post is old and the answer is already given, I just wanted to give an answer of a possible reason that I encountered in case someone else finds this and it does not help.
Make sure your entire html code gets executed by viewing your page source. With me, half my code was not being executed due to a PHP error that was working on localhost with the local database but not on live with the live database. This caused the HTML to cut of from that point above my javascript.
So check your page source. If it is being cut of somewhere, find out why :)
I had the same problem. I try a lot but finally solved. The main problem was my browser cache that prevents from loading the new JavaScript file. My recommendation is that clear your browser cache data then close the browser and reopen your site again it will work perfectly.
remove any (pre in post ) blank spaces from filenames of your namespace example : localhost:port/dir /index.html
localhost:port/dir/index.html
In similar cases,
If web project site runs JS on Live Server but not on locally opened index.html,
try to check validity of HTML File Paths,
e.g you may have written:
<script src="script.js"></script>
instead of:
<script src="./script.js"></script>
Try to add ./ before file name.
./ means Current directory.

Categories

Resources