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 1 year ago.
Improve this question
We use Lawson software. It is proprietary and we do not have access to the code. Recently, there has been an update to Lawson and we are not seeing the Alert() windows that come from JavaScript. Lawson people are asking us to figure it out. I downloaded Fiddler to see if I could tell if the event was firing. I have very little Fiddler experience and don't know if I'm approaching how to answer this question correctly. How can I tell if a JavaScript event is firing without debugging the source code? Would Fiddler be able to tell me that?
No, Fiddler won't be able to tell you that. Fiddler is a tool used for viewing HTTP requests, but javascript alerts are unrelated to HTTP requests. I'm not aware of a way you can debug javascript code in an arbitrary application without access to the source code.
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 17 days ago.
Improve this question
Well, I made a little research and decided to remove dead code with Tree Shivering, but it turned out that all JS scripts with HTML are sent by PHP to the browser and it doesn't work with npm run build or something. I don't know how to remove dead code, if only manually. The project runs on Open Server and I can't see what is going on on my terminal. Any suggestions?
The PHP runs serverside, the JavaScript clientside.
The JavaScript is never called by PHP. Instead, it's send to the client (the browser) together with the HTML generated by PHP. The browser executes the JavaScript.
A method like Tree Shivering, will not be able to tell you what part of the JS is not used.
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 want to check if a user has already been into my site and downloaded the custom certificate (self-signed). I understand that javascript can't do that, but was thinking maybe a way it can check for Chrome? Since Chrome maintains a keystore?
I guess, the only way I was able to figure it out so far is by checking that the URL has https and then subsequently checking the content of the page (e.g. if certificate is untrusted the content would mention something ...) for the absence of errors related to certificate or t=for the existence of the normal content I would expect to be there... Doing that I was abel to overcome this and prompt users to download a package with the custom certificate and instructions etc... Please suggest if anyone has come across a better option.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
So I recently stumbled upon jscrambler.com
This tool actually allows you to protect your javascript code, its fascinating. However, the service is cloud based and im wondering if this is really ok. Since im actually posting code on their servers. While others cant steal my code, it is still vurnerable to theft from within the the guys behind jscrambler.
Maybe im worrying too much. Is it safe to use jscrambler services?
You're right. Giving your code to a 3rd party to protect it is as counter-productive as it is counter-intuitive.
That said, browser users always have access to the underlying Javascript code. The most you can do is wrangle the source code by making syntactic changes that produce the same functionality but result in harder-to-read text.
This process is known as uglification or minification (since it reduces file size). UglifyJS is the most frequently used tool for this.
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 7 years ago.
Improve this question
Im currently playing with the following thing: http://cgbystrom.com/articles/deconstructing-spotifys-builtin-http-server/, I want to be able to access the SpotifyWebHelper with Javascript, people have build this in NodeJS but I wonder if this is possible in plain JavaScript. Can anyone give me some pointers to start with? Or is this not possible at all?
NodeJS version:
https://github.com/onetune/spotify-web-helper/blob/master/index.js
Node.js is "plain Javascript", the only difference between Node.js and everything else is it has access to the actual computer instead of being trapped in a web sandbox.
If you mean "can I make this work in a browser?" the answer is no. It needs to be able to spawn processes, which you can't do in a browser.
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
I am interested in automation on the internet. I own a NAS server and have a website at a webhotel.
Let's start out slow. If i wanted to call a webpage a few times a day, what would my options be? On my NAS server i can write custom batch files, but I don't really want to learn how to do this, it doesn't seem too easy to get into (correct me if wrong). Are there any frameworks that can help me do this? I looked a little into Node.js, and it seems pretty good. Can i put a Node.js script on my server, and have it call a website at specified times?
So, my question is this:
what are the most widely used options, when it comes to automation on the internet?
EDIT: When I say "call a website", i mean call a webresource via a url, which would then do whatever it is instructed to do. Such as write to a database with php.
Usually lightweight varsion of linux can be accessed on NAS servers. In this case you can install any web server on it. But considering phrases "but I don't really want to learn how to do this" and "what would my options be" I would say: Hire specialist.