With Chrome, you can add
//# sourceURL=/js/dynamicFile.js
to enable the ability to debug a file that is loaded via ajax. But it does not appear to work on Firefox. Is there another method?
Related
Can you please explain How Load and send a file to print dialogue without opening it. It should work in IEie and Firefox firefox browser
How can I make dynamically changed user script using Tampermonkey in Safari without actually open Tampermonkey and edit some code manually? I want to change the contents of a script on the fly. I used to do this in Chrome with #require attribute pointing to a javascript file in my file system. Then I programatically changed that javascript file accordingly. Worked like a charm. This doesn't work with Safari, due to it's security.
I tried manually changing the /Users/mainuser/Library/Preferences/com.apple.Safari.Extensions.plist file, but that results in corruption of Tampermonkey, since Safari doesn't like to see users changing it's preferences manually. It does some checks to see if someone tempered with it. Don't know which file should also be edited to avoid this. So the question remains, how can I dynamically change content of user script in Safari?
I have a jQuery mobile site. one of the tags in the body is a javascript script tag with a src param . The Javascript does some magic and returns an embedded shockwave object in an iframe in the page (this is a 3rd party script so I have no control over what or how it works). This works fine on a non-Ajax loaded page, but even in my desktop browser this will not work with a page in the JQuery mobile app. I do not get an error of any sort and I can see in the Network tab that the Javascript is found successfully.
I am caching the dynamic content using the ETAG. There is javascript in tag which in turn located at the end of body tag. This script tag make changes in DOM elements. But when DOM/HTML is loaded from browser cache, javascript is not getting executed.
Any work around to make this work?
Also I am observing caching is working fine with Chrome and mozilla, but not with OPERA. Is there any specific reason/bug in opera, which is causing this issue?
I am developing a website with CSS and JS modifications.
While testing the website, it is working fine in IE-8 and Firefox browsers. But in Google Chrome and Safari the web page is loading without CSS.
I checked all the CSS paths on browser and all files are loading perfectly. But on the HTML page, these CSS files are not loading. So the webpage is displaying the contents without any CSS properties.
What changes do we need to make in Chrome and Safari in order to make the website work perfectly.
As for Chrome, it probably the cache. Chrome assumes that he has cache of the css that's why he will not load it. Deleting cache helps in troubleshooting unloaded css problems . Same things happens on Safari base on my experience with it