Skip to content
Advertisement

Tag: browser

Throttling history state changes to prevent the browser from hanging

This is a beginner angular question. My Angular Application comprises of multiple feature modules.I used authguard by generating guard from the angular-cli and then I use CanActivate in my app-routing module like so : In my auth guard I have written the condition to prevent the user from accessing unauthorized routes : after building I get a warning WARNING in

Node js post request without refreshing

Is it possible to complete a post request without redirecting or refreshing the page? I am making a simple file browser in browser. The client side shows the USB stick content of the server. You know, when I open a folder, I send a string to server with the path data, so the server can send me the current folder’s

Alternative version for Object.values()

I’m looking for an alternative version for the Object.values() function. As described here the function is not supported in Internet Explorer. When executing the following example code: It works in both, Firefox and Chrome, but throws the following error in IE11: Object doesn’t support property or method “values” Here you can test it: Fiddle. So, what would be a quick

Communication between tabs or windows

I was searching for a way how to communicate between multiple tabs or windows in a browser (on the same domain, not CORS) without leaving traces. There were several solutions: using the window object postMessage cookies localStorage The first is probably the worst solution – you need to open a window from your current window and then you can communicate

Port Knocking UDP with Javascript in Browser

So I am trying to send a port knock sequence from javascript. The TCP part is simple enough with websockets. I’ve read that WebRTC is the closest thing the browser offers to sending a UDP packet… but WebRTC is a lot to digest just to attempt to send a UDP “knock”. Is it even possible to “knock” via UDP using

“The owner of this website has banned your access based on your browser’s signature” … on a url request in a python program

When doing a simple request, on python (Entought Canopy to be precise), with urllib2, the server denies me access : Error: This is a apparently a generic issue, so I found several clues on the web. https://support.cloudflare.com/hc/en-us/articles/200171806-Error-1010-The-owner-of-this-website-has-banned-your-access-based-on-your-browser-s-signature: A firewall, proxy, a browser plugin or extension may be throwing a false positive. Try visiting the site with a different browser as

Getting a browser’s name client-side

Is there any object or method that returns data about the browser, client-side? For example, I need to detect if the browser is IE (Interner Explorer). Following is the code snippet. Is there a better way? Answer EDIT: Since the answer is not valid with newer versions of jquery As jQuery.browser is deprecated in ver 1.9, So Use Jquery Migrate

Open Gmail on mailto: action

How to force web-browser to navigate to Gmail and create (if logged in) new letter with filled in field ‘To’ on click on mailto:SomeMail@blabla.example? Answer There’s a Greasemonkey script. The compose URL is: https://mail.google.com/mail/?view=cm&fs=1&to=email@domain.example

Advertisement