Questions tagged [browser]

15980 questions
1

votes
1

answer
301

Views

Is there any way to run Node.js in a <script> tag?

I would like to run Node.js in my webpage, the same way that you would with PHP or ASP.NET. The reason for this is I would like to use require()'d modules from NPM in my browser javascript, however vanilla JS doesn't seem to support this. Is there any way I can run Node.js in my tags? If not, would...
Thomas Jowsey
0

votes
0

answer
2

Views

Browser cache of index.html file

I have a CRM app. It's created in angular so when I change something in scripts it creates new index.html file with reference to new js files (with different hashes). But some browsers seem to cache index.html file, so clients still have old version. I have those headers: Cache-Control => max-age=0,...
piernik
1

votes
3

answer
2.5k

Views

How to avoid being detected as bot on Puppeteer and Phantomjs?

Puppeteer and PhantomJS are similar. The issue I'm having is happening for both, and the code is also similar. I'd like to catch some informations from a website, which needs authentication for viewing those informations. I can't even access home page because it's detected like a 'suspicious activit...
1

votes
2

answer
41

Views

How can i set the page size that would not be changeable

I am working on an electron app recently My problem is that I don't want users to be able to change the page size How can I do that?
amirhosein majidi
1

votes
3

answer
153

Views

Azure data factory not loading

I am not able to open Azure data factory in any browser, it just keep loading from past 1 hour. I have tried refreshing and using other browser, is there any specific reason why it happens? All other services on azure portal is working fine. Browsers which I have tried: Mozilla Firefox 65.0.2 Intern...
Zerotoinfinity
1

votes
2

answer
51

Views

Is there any way to open local file directly from 'Elements > Styles' tab in Chrome devtools?

I'm using the Chrome devtools persistence feature with browser-sync and sass. I set a Workspace pointing to my scss folder and I can edit scss files from Chrome and have all css files created correctly, applied to browser real-time and saved in hard drive. However when I select an element on the Ele...
Goblin
0

votes
0

answer
3

Views

When updating the transform of an SVG element, Firefox moves the clip-path while Chromium doesn't - which is right and what is a portable solution?

Firefox and Chromium have different behaviors when the transform of a clipped SVG element is updated. Firefox moves the clip path, whereas Chromium does not. Example code: Click to translate var b = document.getElementById('button'); var g = document.getElementById('group'); b.onclick = function(eve...
TAH
0

votes
0

answer
6

Views

How do we pass authentication token in headless chrome in google puppeteer?

I want to pass authentication token(JWT) in puppeteer headers, for the pdf view with headless chrome in my application? We are using react as our front-end UI. And using puppeteer we are able to generate pdf, but the link to pdf we need to authorize using JWT How do we pass the jwt in headers, does...
uppu
1

votes
4

answer
1.9k

Views

Node js refresh browser

I am pretty new to node js...so this question is very basic question.... lets say this is my simple node js code... var http = require('http'); http.createServer(function(req,res){ res.writeHead(200,{'content-type':'text/html'}); res.write('testing node ...'); res.end(); }).listen(8888,'127.0....
Your Friend
-1

votes
2

answer
15

Views

How to simulate specific code part as if previous ones were executed

I'm writing automation code by using selenium web driver in eclipse. as per my assumption, whole case execution time probably will take about five minutes but once my code got error, i have to run it from the beginning after changing the code to see whether changing part is working fine or not. Is t...
santino87
0

votes
0

answer
3

Views

iMacros cannot insert content in to text field

While recording iMacros, I got this code TAG POS=1 TYPE=DIV ATTR=CLASS:checker__title-inputjs_checker__title-inputjs_checker_module__input&&NAME:text-title&&DATA-PLACEHOLDER:PasteYourTitleHere&&CONTENTEDITABLE:true&&TXT: Now, I want to add data from col1 of my csv. How can I insert that code into th...
user3906629
1

votes
1

answer
193

Views

Why does Git have a 'Check ✓' mark in its querystring?

I was searching about something on Git when I noticed that in the query string, there's a parameter utf8 and its value is ✓! Not utf8=yes or utf8=true. The full URL is following in Chrome and Firefox: https://github.com/Modernizr/Modernizr/search?utf8=✓&q=browser&type= But following in IE: https...
Nisarg
1

votes
1

answer
447

Views

Angular Animation not transitioning in IE11 and Firefox (works in Chrome)

My Angular animation attached to a div works in Chrome (increasing the a height of 0 to height: '*'). I have imported all the necessary polyfills and installed web-animations-js The height increases, however there is no animation transition happening in IE and Firefox. animations.ts import { trigger...
FakeEmpire
1

votes
2

answer
2.2k

Views

Qt - How to open a website in a particular browser

I am coding one project, which needs to launch some webbrowsers with the given url. I saw some QT examples, but they explained how to launch the default browser, not a particular browser. Any helping suggestions will be appreciated. Edit1: Below is the code I use currently QString temp='C:/Program F...
prabhakaran
1

votes
0

answer
78

Views

lite-server with BrowserSync hosted on Heroku production ready?

I currently have an Angular 2 project that I'm trying to use for production hosted on heroku. It is currently being hosted on heroku and the start script heroku uses is: 'scripts': { 'start': 'tsc && concurrently \'npm run tsc:w\' \'npm run lite\' ', 'lite': 'lite-server', 'tsc': 'tsc', 'tsc:w': 't...
Vishnu Murale
1

votes
0

answer
189

Views

asynchronously use window.open in Angular

I have the following code that when the user presses the button in the form below it makes a server request and accordingly open a new tab or display an error search() { const serial = this.searchForm.get('searchValue').value; this.service.check(serial) .subscribe(resp => { if (resp) { this.denied...
callback
1

votes
0

answer
60

Views

Queuing of Request taking around 1-3 sec delay in chrome browser for angular2 and RX js

I am currently working in angular-2 project and using RX js. During performance analysis get some issue for HTTP calls,Below is the details about the problem. There is 1-3 sec delay for queuing the two subsequent request. below is the screen shot for the same can anyone help me out why this delay oc...
gourab
1

votes
0

answer
39

Views

Escaped double quotes by slashes make browser load it enormously slow

I have recently faced with a very odd problem. I don't have any ideas where even look for a solution. When I generate or upload static file with a textual content that contains a lot of escaped double quotes by slashes, it makes a browser load it very-very slowly. You can check it yourself. For exam...
Adam Moore
1

votes
2

answer
70

Views

autoplay not working when browser zoom is above 75%

more or less a complete noob here, so apologies in advance if this question is completely ridiculous! Effectively I'm building a one page site (artistic purposes) - contained on this site is a video-bg set to autoplay. The autoplay function works fine across all browsers (minus IE) and all devices I...
divisive
1

votes
1

answer
47

Views

Different behaviour for setInterval if callback is blocked

I run much the same code in Firefox 58 and Chrome 63 on Linux count = 0 intv = 0 function f(){ let a console.log('start', performance.now()) for (let i=0;i
Austaras
1

votes
0

answer
873

Views

AWS CloudFront Leverage browser caching not working

I am trying to set following Origin Custom Headers Header Name: Cache-Control Value: max-age=31536000 But it is giving com.amazonaws.services.cloudfront.model.InvalidArgumentException: The parameter HeaderName : Cache-Control is not allowed. (Service: AmazonCloudFront; Status Code: 400; Error Code:...
Sudipta Dhara
1

votes
1

answer
45

Views

in mozilla by default scroll thumb and track is not displaying -mac OS

.scroll-wrapper { height: auto; max-height: 200px; overflow: auto; width: 100%; overflow: -moz-scrollbars-vertical; } .scroll-wrapper::-webkit-scrollbar { -webkit-appearance: none; width: 7px; } .scroll-wrapper::-webkit-scrollbar-thumb { border-radius: 4px; background-color: rgba(0, 0, 0, 0.5); -web...
midhun k
1

votes
0

answer
89

Views

Cross-browser box shadow on tbody elements

Is there a cross-browser way of adding a CSS box-shadow to multiple tbody elements in an HTML table? Directly adding tbody {box-shadow: ...} does not work in Internet Explorer and Safari. Pseudoelements act differently across browsers, too, when attached to tbody elements. A few notes: The table lay...
user9027325
1

votes
1

answer
53

Views

Is it possible to save and load JavaScript or Stylesheet (CSS) to/from browser's local db?

We're trying to maximize the performance of our web architecture. We're developing a special way of creating Angular applications, that is based on loading UMD files in old web school by adding them to the head section of a web page: Of course one barrier to this architecture is the amount of bytes...
1

votes
0

answer
206

Views

How to get geo location in UC Browser For PC (Automatically) on Load of Page?

I have set the geolocation on my page. Its working on fine on all browser except UC Browser. Its working fine on UC Browser Mobile but not for PC Broswer. Here is sample code for getting latitude and longitude on click. This is not working for UC Browser PC. Click the button to get your coordinates....
Darsh
1

votes
1

answer
34

Views

How are POST requests constructed?

How does a web browser construct a valid HTTP POST request from HTML source code? For example, the login form on https://stackexchange.com/users/login looks like: Email [email protected] Password Password If I intercept the request my browser sends, I can see the full POST request to be: POST /affili...
Michal Nerek
1

votes
0

answer
259

Views

How to set default language programmatically in OpenCart 3?

I'm trying to set the default language programmatically in OpenCart 3 when user for the first time visit the website. I tried a lot but I have 2 problems which I can't find a solution for them: I don't know how to set the default language programmatically How to detect if the website / page loads...
Kardo
1

votes
0

answer
35

Views

Popups are not suppressed if the delay <= 1000 ms

I've tested on various browsers executing code snippet below and they have all get blocked by default. setTimeout(() => window.open('https://google.com'), 1001); But if the delay is
theJian
1

votes
1

answer
750

Views

Run a ruby cucumber feature file from command prompt

I have a bunch of Ruby cucumber feature files that are running from Ruby mine IDE. I am trying to run the same from the command prompt which is failing. Please find the run configuration setting of the successful run from the ruby cucumber from Ruby Mine IDE and suggest me a command to run from the...
sai charan
1

votes
0

answer
169

Views

Chrome Cache issue - Angularjs Web application

I am developing an angularjs web application and facing some cache related issues as follows: When any changes are made in the angularjs code and pushed to the server, the changes don't reflect in the application unless the users clears cache. This is because my html files are cached. I cannot disab...
Z.T
1

votes
1

answer
67

Views

Saving an S3 buffer to file through AWS Javascript SDK

I'm using the AWS Javascript SDK to download a file from S3 var s3 = new AWS.S3(); var params = { Bucket: 'MYBUCKET', Key: file }; s3.getObject(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else { //code to save file from data's byte array here } }); This...
Nerrickk
1

votes
1

answer
33

Views

JLabel tooltip is not visible on top of BrowserView

I have this problem: tooltip of the label (JLabel) is hidden by a BrowserView. The tooltip properly shown top of any other java component, but gets hidden by BrowserView. What I want is to make the tooltip visible on top of BrowserView. Anyone knows the reason for it and a way to get the tooltip vis...
user2486029
1

votes
0

answer
69

Views

chrome heap snapshot statistics is wrong?

I am debugging my website, Wanted to know how much actual memory it is taking after fully loaded. In chrome Inspect>memory> statistics , Total shows 21458KB but individual is not sum up to total. What does it mean ? where is the remaining memory used ?
Rilwan
1

votes
1

answer
279

Views

Sass compiling and browser-sync

I have this code for sass compiling: gulp.task('scss', function () { return gulp.src('./src/scss/**/*.scss') .pipe(scss().on('error', scss.logError)) .pipe(autoprefixer({ flexbox: true, grid: true, browsers: ['> 1%', 'last 5 years', 'Firefox > 20'] })) .pipe(gulp.dest('./src/styles')) .pipe(browserS...
Nat Davydova
1

votes
1

answer
515

Views

Visual Studio Code change browser

I am following an react.js tutorial and i am using visual studio code for the IDE. I want to change the default browser to chrome. I tried doing this below but it doesn't recognize the command and i tried using view-in browser packages etc. Press Ctrl+Shift+P to open the Command Palette. Type “ct...
Great Khan 2016
1

votes
0

answer
61

Views

css before element disappearing only in chrome

Do someone know why, in Chrome, I can't see this before elements and in Firefox everything is fine ? I don't know what other information should I add here to make it more understandable. div.control-2 { position: absolute; margin-top: 70px; margin-left: 146px; } div.control-2:before { positi...
Andnever Will
1

votes
0

answer
177

Views

Visual Studio 2017 Browser Link with custom url

I work on a few websites in different solutions that integrate with each other. To get them to work properly locally, I have to override the URLs. When I change the url from localhost:[port] to local.mydomain.com:[port], browser link no longer works. Can I assume this is a security feature and visua...
Dan Miller
1

votes
2

answer
454

Views

React - How to pass props via react-router v4 from one page to another?

I want to pass props not from parent to child but from one page to another using react router. I wasnt sure its even possible but found a few articles/posts here where it does seem possible. Based on what read my code should work, but it doesnt. Could anyone help? index.jsx: ReactDOM.render( ,docume...
2018code2018
1

votes
0

answer
46

Views

Scrolling of 10000 divs is pretty slow in Chrome — any ways to speed it up?

I have a page with static 10000 divs (in a column). Scrolling goes pretty slow (fps < 15) in Chrome 65 (Firefox 59 on Servo is OK). Update Layer Tree in the profiler consumes most time. Are there any ways to speed it up? https://jsfiddle.net/Reiser/mn2e9f94/
TotalAMD
1

votes
1

answer
278

Views

How do I know if an message has been sent successfully when using raw WebSocket?

Unlike websocket/ws which accepts an optional ack callback, raw WebSocket.prototype.send only accepts a single message.
Zen

View additional questions