FAQ Database Discussion Community


Python in Browser: How to choose between brython, pypy.js and skulpt?

javascript,python,browser,brython,skulpt
EDIT: Please note I'm NOT asking for a (subjective) product recommendation. I am asking for objective information -- that I can then use to make my own decision. I'm very excited to see that it is now possible to code Python inside a browser page. The main candidates appear to...

Socket.IO/Node.JS execution

javascript,node.js,sockets,browser,socket.io
I'm new to both Node.JS and Socket.IO, so I decided to pick up a simple chat client as my first project. To my knowledge, it structured correctly, but I'm being thrown an object expected error whenever I try to run index.js. Anyone know what's up? (if it helps, I'm running...

How is it possible that browserify can make server code run in the browser when servers need access to things like sockets?

javascript,node.js,browser,browserify
Am I simply ignorant of the features that some browsers offer or does this library use some strange workaround to implement these features?

Is it possible to get specific static contents of a webpage only using client side technology?

javascript,html,html5,browser
I am only allowed to use client side technologies such as HTML5 Javascript ect.. Is it possible to get specific contents of a webpage using these technologies alone?

Can't open localhost in Project Spartan in Windows 10 preview

iis,browser,windows-10,microsoft-edge
I installed Windows 10 preview and installed IIS. Open "http://localhost" in Project Spartan can't connect. IE has no problem. What's the problem?...

How to make a browser console wait in a javascript

javascript,browser,console,wait
I'm trying to make a script that clicks on a page button, waits X seconds (for the result of the click to take place), and then continues. How can I do that? (only the wait part)...

Java Selenium WebDriver with Yandex

java,selenium,browser,selenium-webdriver,yandex
At the moment, I use Firefox as browser for my Java Application with Selenium. But Firefox is slow. Is it possible to use Yandex as browser? Didn't find anything in Google. Does Selenium supports Yandex? For Chrome I need the .exe for using Chrome as browser. Is this possible with...

How to enable HTML5 videos in qutebrowser?

html5,browser,plugins,archlinux
qutebrowser is not that popular, so I couldn't google an answer to my question, I want to be able to watch youtube etc... Please help this is the only thing stopping me from using a great browser

set my website as homepage for android device browser using PHP code

php,android,browser,website,device
I need to define a button on top of my website which when a user open my website with android device and click on that button, my website set as his homepage on his android device browser. I need to do this with PHP or javaScript if possible.

IE11 slow / freeze with AngularJS's ng-repeat rendering

javascript,angularjs,internet-explorer,browser
Currently I have a very sublte problem to solve with IE11 and AngularJS. My page consists of two nested ng-repeat to create a tabset with a table inside any tab. Here the code: http://pastebin.com/0fffPz5Z In the code, each application's object have around 1.000 item's related objects. With a Chrome, Safari...

Why doesn't JavaScript get its own thread in common browsers?

javascript,browser,architecture,software-design
Not enough that JavaScript isn't multithreaded, apparently JavaScript doesn't even get its own but shares a thread with a load of other stuff. Even in most modern browsers JavaScript is typically in the same queue as painting, updating styles, and handling user actions. Why is that? From my experience an...

Why do not these items appear on firefox browser?

html,css,browser
I have this page: http://paul.dac-proiect.ro/ In Chrome all is well but look as displayed in Firefox. <div class="social" style="float:right"> <div id="facebook"></div> <div id="twitter"></div> <div id="link"></div> </div> .pozitie{position: absolute;top: 200px;left: 39;color:#f9f9f9;"} /* IMAGINI HOVER SOCIAL MEDIA */ #facebook { background-image: url("http://placehold.it/26x26"); width:26px; height:26px; float:left; margin-right:5px; } #facebook:hover { background-image:...

Cordova- embed a external website into cordova app

cordova,browser,web-applications,website
I have a website. it run good in server I'm building a cordova app to embed this website and I want to open this website into this cordova app. I use window.open(..., "_blank").. window.open(..., "_selt") modify config.xml <access origin.... but when I run app in my device, website auto open...

Own protocol in browser

c#,.net,browser,protocols,neodynamic
I try to implement WebClientPrinter by Neodynamic. This library makes request by this format: webclientprint:http://localhost:1294/wcp.axd?sid=cm50pdi0tyfsm0feejnzjtsk&wcppping it is similar to this notation. javascript: method() My question is why browser know what to do with this protocol?...

Can't get Python to download webpage source code: “browser version not supported”

python,html,browser,urllib2,source
So I'm trying to write a program that would download the source-code of a webpage in Python 2.7. The code looks like this: import urllib2 url = "https://scrap.tf/stranges/47" req = urllib2.Request(url, headers={'User-Agent' : "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.30 (KHTML, like Gecko) Ubuntu/11.04 Chromium/12.0.742.112 Chrome/12.0.742.112 Safari/534.30"}) con = urllib2.urlopen(req) data =...

Javascript race condition?

javascript,dom,browser
var len1 = $("div").length // can a new div inserted here? var len2 = $("div").length console.log(len1 === len2) // always true? Is it possible for some rogue script to insert a new div between jQuery calls?...

Firefox and SSL pages - takes very long on certain sites [closed]

firefox,ssl,browser,ssl-certificate
I use openSUSE 13.1 and Firefox 38.0.1. On some pages with ssl it takes minutes until the connection is established. It only happens on sites whose ssl certificate is not trusted by firefox, so that it asks you if you really want to enter the site. But even this security...

Looking for tool that prevent script to become unresponsive [on hold]

javascript,browser,google-chrome-extension
For a side project I need to generate a lot of data from a WebGL Application. This Web App is mostly a personal tool and I really don't care if my browser become unresponsive (I mean, I know it will). Does someone know a browser/tool/plugin that could allow me to...

Open a PDF in a new window of the browser with angularjs

angularjs,http,pdf,browser,get
I'm new to angular js and I wish to open a PDF document in a new window of the browser after pressing a button. I make a GET request with $http.get() at front end, at backend there is a Java rest service that respond to the GET and generates a...

How to display text in browsers tab bar in a javaserver page [closed]

html,jsp,browser,text,tabs
I have heard of being able to display images in a browsers tab bar here: http://stackoverflow.com/questions/120420/image-icon-beside-the-site-url But I was wondering if there might be an easier way to do this for just some simple text? I am trying to display just two lines, last login and IP address in this...

Does {} consume less memory than [] for nested objects in Javascript?

javascript,browser,requirejs
I had some legacy JS code that creates a giant nested object structure with []. The code goes some like this var data = []; data ["first"] = []; data ["first"]["second"] = []; data ["first"]["second2"] = "hello"; It is about 250+ KB of javascript, which is fairly large. When I...

Why is it so hard to style