Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
We have an ASP.NET MVC website and the problem we have is this:
When the website is deployed, we see some strange Javascript related bugs, that never occur when running the website locally (on any of our computers).
For example:
An accordion menu opens and closes itself immediately when clicked, instead of just remaining open normally.
Some links that have their click event handled by Javascript suddenly ignore the event handlers, and just do nothing when clicked.
We have checked the files on our integration machine, and checked the build process many times, and we deploy the correct version of the files each time.
Where else could we check to fix this issue?
Any and all suggestions are welcome !
Thanks.
Thanks everyone !
We use Cassette for bundling our scripts, and as it turns out, I didn't notice that when we deploy, the cassette obtains one the the javascript files using a url.
That url pointed to a script we no longer use, and that was the cause for all of the weird bugs.
Thanks again.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I'm rendering one PDF in my website using the Canvas so that the user can view but not download. I have disabled the right click and the disable the download button and disable the printout too on any of the browsers. However there are still ways to get into the F12 mode and get the PDF downloaded. IF any one can help to achieve my logic to disable the developer mode on that particular webpage.
Thanks in advance.
Even if you could, it won't matter.
The pdf document data, unless generated by your client, has been downloaded, which means even if a website had control over a client's dev tools (which it does not), the client could just intercept all the packages containing your file going to his machine.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I know I could utilize client-side storage, cookies, WebSQL to make an app independent of the internet if the tablet/phone went offline for a bit. But at the end of the day if the user refreshes the browser, the site will try to load the HTML/CSS/JS and it's going to fail to load. I haven't been keeping up on HTML5 enhancements in the last year so I'm wondering if something like this exists. For instance specifically telling the browser to cache the static assets and use them again upon reload unless newer versions exist.
NOTE: I'm only interested in how to allow the page to go through a reload with the site offline if such thing exists.
I believe that #NickZuber has answer my question with his link. The thing I was looking for is
Application Cache
Works on most (90%+) modern browsers Best suited for storing
application code
The only option to reliably load a website from nothing offline
Can storage a significant amount of data (50mb+)
Very difficult use without causing unintended consequences for most
websites
Here is a working example of it in action. You can essentially turn off your internet, hit refresh on the browser, close the browser and re-open it. Whatever you want and the app loads up just fine complete with Images, CSS Styles, and Javascript.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Is it possible to manipulate a loaded page of an open tab of Firefox, through a script that does this through a Firefox addon/extension? My goal is to fill out a form on a page, and then click submit.
Note: This cannot be done through readily available, 'user friendly' alternatives (for example Selenium), and can only be done with addon code, as the Firefox addon continuously calls a .dll file, waiting for an 'all clear, go ahead' from another program, that communicates with the .dll file. Also, solutions such as Selenium, take up too much processing time (even when we are dealing with seconds), which do not suit my case (i have already attempted using Selenium; it completes the task too slowly, and the .dll workaround is 'awkward').
So the question is, is possible to achieve something like this, and what will be required to do so, could you also please provide an example if possible. Thanks
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
The first time I load the page it's a mess and JavaScript functions don't work. The second time it looks ok and works.
Any brief idea what might be causing this behaviour? I'm using Backbone.js and jQUery Mobile if that makes a difference.
Sorry for no code, but I need to go to a meeting in a moment and the website is huge so I don't really know what part to show you.
If anybody knows why this is happening and doesn't need to see the code, please help.
UPDATE:
Here's what seems to be the answer: https://forum.jquery.com/topic/script-not-running-unless-i-refresh-page
Thank you for suggestions, I upvoted the ones that seem relevant.
It sounds like unmet dependencies: some of your functions probably run before the document is fully loaded and can't get their job done correctly (missing elements, etc..). The second time the function work beacuse the page is cached and so loaed in time before the function starts.
I'd start looking at the JavaScript console and post the errors here if you can't figure it out alone, but without proper informations what we could do is just poor absumptions.
Might be javascript source could not be fetched from the url given. You can do inspect element and see what's happening on console or network tab.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
Question regarding to nopCommerce website.
I have created a ECommerce website using nopCommerce.
nopCommerce is a open source ECommerce web application.
SevenSpikes providing a plug-ins for nopCommerce web site.
I'm using two free version plug-ins from SevenSpikes. But the plugin throwing an error on every third to fourth of reload of website. The error as
'You are running a Trial version of SevenSpikes.Nop.Plugins.MegaMenu'
'You are running a Trial version of SevenSpikes.Nop.Plugins.InstantSearch'
I had checked the network and console using Developer tools in browser, but every thing is fine. I think plug-in [authors of plugin] is intentionally showing an error on every third to fourth reload of the page.
I'm doing it in localhost, but here is the sample url has same issue. [Re-Load 3 to 4 times]
Any one has any thoughts to solve this error is very useful.
From nop forum:
Please note that the trial version of the Menu is for evaluation
purposes only. We understand that the trial message could be
frustrating during development and we will consider showing it less
often. As you have already started to modify the styles of the Menu
then it seems like you are going to use the plugin, so it would be
best for you to get the full version now rather than later and get rid
of the trial message.
So if you want to remove trial warnings, buy the full licence.
Link: http://www.nop-templates.com/boards/topic/366/trial-messege