Menu
  • HOME
  • TAGS

How to modify the content of WebRTC MediaStream video track?

javascript,html5,video,browser,webrtc

You need to use a canvas to route the video from getUserMedia to, modify it there, and then use canvas.captureStream() to turn it back into a MediaStream. This is great - except that canvas.captureStream(), while agreed to in the WG hasn't actually been included in the spec yet. (There's a...

Cordova- embed a external website into cordova app

cordova,browser,web-applications,website

Since You have already created cordova app, you need to add Inappbrowser plugin to app so you can open your website in it. [Add other necessary plugins] To add Inappbrowser plugin use following command. cordova plugin add org.apache.cordova.inappbrowser Add following line to index.js to open your website link. var url...

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

javascript,html,html5,browser

If it is on the same domain or the site supports Cross-Origin Resource Sharing then yes. You will want to look at javascript XMLHTTPRequest.

How to detect wake from sleep in the browser on iOS/Android?

javascript,android,ios,dom,browser

It turns out that the right answer is to listen for the visibilitychange event from the document, and then to test for the hidden property on the document. From MDN: // Set the name of the hidden property and the change event for visibility var hidden, visibilityChange; if (typeof document.hidden...

the nested while loop do not work, instead it displays unexpected '}'

php,mysql,apache,browser

<? // add here like <?php $SQLBill=mysql_query("SELECT * FROM billing WHERE Name='$name'"); while($subrow=mysql_fetch_array($SQLBill)){ ?> Here you can add php in opening. Remove the semicolons after } at closing loops </table> <div id="terms"> <h5>Terms</h5> <textarea>NET 30 Days. Cutting of service will be made on unpaid balances after 30 days.</textarea> </div> </div>...

Change browser proxy settings from Python in Ubintu?

python,linux,python-2.7,firefox,browser

Keep the browser settings as set the proxy as system proxy. Then your python script will be import os os.system('export http://<your proxy>:<your port>/') os.system('export https://<your proxy>:<your port>/') This will set the system proxy as your proxy and hence your browser will be using your system proxy....

Altering window.print() Javascript functionality [duplicate]

javascript,browser

Yes, add a class to the elements you don't want to print and in your style tag use the media="print" then adjust accordingly and you will have what you want. <style type="text/css" media="print"> .elementYoudontWanttoPrint { display:none; } </style> ...

Google Chrome Add Bookmark Image

html,html5,google-chrome,browser,web

It seems to be some datas included in the head part of the pages. You probably know that you can use meta tags to set some favicon, gps coordinates, and many other things. Some new tags, the Opengraph meta tags, are now used to define some informations to best describe...

How to show/hide a jquery script only on Firefox

javascript,jquery,firefox,browser,cross-browser

Try with navigator.userAgent used to detect the browser The userAgent property returns the value of the user-agent header sent by the browser to the server. The value returned, contains information about the name, version and platform of the browser. if(navigator.userAgent.toLowerCase().indexOf("firefox") > -1){ $("#about_me").addClass("red"); } else{ $("#about_me").addClass("blue"); } Fiddle About Naviagate...

Android webview: controlling which browser is used on redirection

android,browser,webview

Here is the solution: view.setWebViewClient(new WebViewClient() { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { if (url != null) { if (url.startsWith("http://")) { view.getContext().startActivity( new Intent(Intent.ACTION_VIEW, Uri.parse(url))); return true; } else { view.loadUrl(url); return false; } } else return false; } }); Long story short you override the method but...

Safely query size of element soon after inserting it to DOM

javascript,dom,browser

You can use the onload event which fires after everything in the document has been completely loaded. You can use it in your markup like this: <body onload="doStuffAfterEverythingIsLoaded()">...</body> or in your script: window.addEventListener("load", doStuffAfterEverythingIsLoaded); Reference: http://www.w3schools.com/jsref/event_onload.asp Hope this will help....

Javascript race condition?

javascript,dom,browser

Short answer: No. Longer answer: You don't seem to be using alert or confirm in your code, and so the couple of weird edge cases in Firefox (which may only be in older versions) related to alert and confirm don't come into play. This answer from 2010 goes into those...

How To Open A Website's (Built on Wordpress) PHP file in my browser?

php,wordpress,browser

It´s not possible. PHP files are executed on server side and can´t be downloaded like HTML files. More information on this can be found here: StackOverflow: Can a client view server-side PHP source code? Can someone steal my PHP script without hacking server? security.stackexchange.com: Is it possible for a hacker...

Unable to view changed text within WebBrowser control

c#,browser,text,replace

You're doing a replace then throwing away the result. String.Replace doesn't modify the original string, it returns an updated string. You'll need to use: webBrowser1.DocumentText = webBrowser1.DocumentText.Replace("10.86.190.30","KM"); ...

How often is garbage collected?

javascript,browser,garbage-collection

Refer to this link, your problem is not in garbage collector, i think that somewere in your code there is variables that is created and located in the memory and never released, review thees links for js best practices [1] JavaScript Best Practices [2] OOP in JS...

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

javascript,browser,architecture,software-design

User Actions Require Participation from JS Event Handlers User actions can trigger Javascript events (clicks, focus events, key events, etc...) that participate and potentially influence the user action so clearly the single JS thread can't be executing while user actions are being processed because, if so, then the JS thread...

place 1 label top, 1 input bottom and 2 buttons left

html,html5,css3,browser

Check this out.... * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; margin: 0px; padding: 0px; } #position { height: 500px; } .row-container { display: inline-block; text-align: justify; margin: 0px auto; width: 100%; margin-top:10px; margin-bottom:10px; border:5px solid #ccc; padding:10px; } .input-text-container { display: inline-block; width: 50%; } .input-text-container input { width:...

NPAPI retirement and the future of digital signature

java,google-chrome,browser,npapi

FireBreath 2 will allow you to write a plugin that works in NPAPI, ActiveX, or through Native Messaging; it's getting close to ready to go into beta. It doesn't have any kind of real drawing support, but would work for what you describe. The install process is a bit of...

is binary file(pdf, word, excel, ppt, mp3,…) download possible using XHR or fetch?

javascript,html5,browser,download,xmlhttprequest

The transfer encoding should be transparent to an application in a browser, don't worry about it. Below is a basic ajax file download solution, it uses XHR2, blobs and anchors with download properties. var xhr = new XMLHttpRequest(); xhr.onreadystatechange = function(){ if (this.readyState == 4 && this.status == 200){ var...

Elasticsearch PUT documents in strange order

c#,.net,browser,elasticsearch,order

ES is simply a document store, i.e. there's no inherent insertion order. I'd simply go with adding ?sort=yourdatefield:desc to your URL and you're all set. If you don't add any specific sort field, it will sort by score which defaults to 1.0, so the order is undefined actually....

How to run a .jar inside browser?

php,html,browser,jar

If that file does not contain an Applet, I do not think you will be able to start it in the browser (have a look here). Executing it via exec should work like executing it via the command line - but as you already noticed, it will be run on...

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

javascript,browser,google-chrome-extension

Firefox has an option Dom.max_script_run_time. I don't know if such a thing exists in Chrome, but I wouldn't bet on it. It's probably easiest just to run this script in FF. http://kb.mozillazine.org/Dom.max_script_run_time...

Disable browser adding overflow:hidden on touch screen enabled devices

html,css,google-chrome,browser,touch

I found my own answer. In Chrome, go to chrome://flags About 1/3 the way down, there is a setting called ‘Enable touch events’. Chrome Description: Enable touch events : Mac, Windows, Linux, Chrome OS Force touchscreen support to always be enabled or disabled, or to be enabled when a touchscreen...

Browser using c# in windows form applications

c#,html,windows,forms,browser

using System.Net; using System.Net.Http; WebRequest req = HttpWebRequest.Create("http://yourwebsite.com"); req.Method = "GET"; string source; using (StreamReader reader = new StreamReader(req.GetResponse().GetResponseStream())) { source = reader.ReadToEnd(); } System.IO.StreamWriter file = new System.IO.StreamWriter("c:\\test.txt"); file.WriteLine(source); file.Close(); ...

How to change favicon right align inside the browser address bar

html,browser,favicon

You cannot do this as style attribute is not available in link tag. Moreover you just can't change the browser look and feel unless they change its look and feel and move the icon to the right.

How to get particular controller scope list in console - angularjs?

javascript,jquery,angularjs,browser,console

@jonnyknowsbest Answer is correct but the main thing is site has disabled debug info, you need to first enable it using angular.reloadWithDebugInfo() this command will reload you page. After that you can access to controller object. And then you could do access angular scope in you console. angular.element(document.querySelector('[data-ng-controller=busTicketCheckoutCtrl]')).scope() ...

Change permissions to allow PHP script in browser to execute matplotlib operations in a python script

php,python-2.7,browser,permissions

I was able to make a plot with Python in cgi. No problems. http://wiki.scipy.org/Cookbook/Matplotlib/Using_MatPlotLib_in_a_CGI_script PHP <?php header('Location: cgi-bin/graph.py'); ?> PYTHON #!/usr/bin/python import os,sys import cgi import cgitb; cgitb.enable() os.environ[ 'HOME' ] = '/tmp/' import matplotlib matplotlib.use( 'Agg' ) import pylab form = cgi.FieldStorage() pylab.plot([1,2,3]) print "Content-Type: image/png\n" pylab.savefig( sys.stdout, format='png')...

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

javascript,python,browser,brython,skulpt

This might be helpful too: http://stromberg.dnsalias.org/~strombrg/pybrowser/python-browser.html It compares several Python-in-the-browser technologies....

How to STOP browsers from sharing session amongst tabs?

javascript,jsp,security,browser,spring-security

On successful login put some value in sessionStorage.setItem('userId',userId) and when ever user open new tab and tries to login check if sessionStorage.getItem('userId') is available if null it means it is a new tab / redirect to login page. Session storage is tab specific and data are not shared between different...

Whats the connection between the browser and the Internet?

browser

A browser is, in the most basic sense, a web page renderer. It's main job is to retrieve a page (usually a HTML text file) from the web and display it to you so you can interact with that page. Inside the HTML there can be references to images and...

Why do not these items appear on firefox browser?

html,css,browser

The issue is due to an extra " in the class .pozitie which is causing Firefox to ignore subsequent rules. Remove " and the rules should then take effect. Current incorrect syntax - Wont work in Firefox: .pozitie{position: absolute;top: 200px;left: 39;color:#f9f9f9;"} /* IMAGINI HOVER SOCIAL MEDIA */ #facebook { background-image:...

Dreamweaver can't connect to localhost

browser,xampp,localhost,dreamweaver

This path "localhost/~user/mySite/index.htm does not look correct. Usually on XAMPP goes as follows. If I consider that your files are located in a "mySite" folder inside htdocs and an index.html exists then you can access them by typing on the browser localhost/mySite. Note: Turn on Apache, and MySQL if you...

file_get_contents() function loads different page compared to broswer

php,html,file,browser,hyperlink

In the source of the original web site, the links have entity-encoded ampersands (See Do I encode ampersands in <a href…>?). The browser decodes them normally when you click the anchor, but your scraping code does not. Compare http://en.wikipedia.org/ ... &amp;pagefrom=Alexis%2C+Toya%0AToya+Alexis#mw-pages versus http://en.wikipedia.org ... &pagefrom=Alexis%2C+Toya%0AToya+Alexis#mw-pages This malformed querystring is what...

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

firefox,ssl,browser,ssl-certificate

Don't know why, but I removed the file cert8.db from within the profile folder, now it works again.

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

iis,browser,windows-10,microsoft-edge

So the issue is Spartan Edge doesn't have access to the loopback addresses, which is something that most Windows Store are blocked from accessing. The CheckNetIsolation tool can be used to add it to the LoopbackExempt list. Use this from an elevated command prompt: CheckNetIsolation LoopbackExempt -a -n=Microsoft.Windows.Spartan_cw5n1h2txyewy Microsoft.Windows.Spartan_cw5n1h2txyewy is...

How can I detect when the contents of a div are unloaded?

javascript,jquery,html,ajax,browser

You should call some function when you update your content. Since there is no "onchange" event for divs, you'll have to call your function after the ajax process: See this answer for more info. However, if your content doesn't change according to ajax calls, you should trigger some event when...

Angularjs is not working on some old browser

angularjs,internet-explorer,browser

Since Angular 1.3, support for IE8 and below was dropped AngularJS 1.3 has dropped support for IE8. Read more about it on our blog. AngularJS 1.2 will continue to support IE8, but the core team does not plan to spend time addressing issues specific to IE8 or earlier. you can...

Yii: Redirect in controller to external site in new tab

php,browser,yii,controller

Opening new tab on redirect isn't related to server. So you can't force server to open new tab when redirect. Therefore you should control it in your client side. For example you can add target: "_blank" attribute inside the links.

website not working on Internet Explorer

internet-explorer,browser,cross-browser,hover

The problem here is with the way you're positioning the sub-menu; you have it absolutely positioned, and then offset with margins. This works in Microsoft Edge (Internet Explorer's successor) the same as it does in Chrome, but for IE you'll need a different approach. Start by positioning the nested lists...

Java Selenium WebDriver with Yandex

java,selenium,browser,selenium-webdriver,yandex

From what I recall, there is no WebDriver for the Yandex ("Яндекс") browser. In other words, there is no way to automate this browser through selenium. Also, there are some performance tips and further links here: Selenium WebDriver works but SLOW (Java) ...

Cross-Browser simulator for testing

google-chrome,internet-explorer,firefox,browser,frontend

There are a number of tools BrowserStack SauceLabs BrowserLing Just to name a few....

Cannot find the CSS Errors in Chrome

css,google-chrome,browser,web-inspector

Click on the "Show Drawer" icon (it looks like >_) Those errors are displayed there under the Console tab.

Changing URL as long as you are scrolling the webpage

javascript,html,url,browser,browser-history

I looked at the HTML5 History API, and now I know I can do what I want.

Load javascript in consecutive order after browser load event

javascript,jquery,html,html5,browser

You're not the first to have this problem, thankfully. There's a lot of difficult solutions around this problem, including using a module loader as suggested in the comment (which I agree is the best long term solution, because they account for more browsers and flexibility, but it's a lot to...

Determine browser's default text highlight color using JavaScript or Dart

javascript,html,css,browser,dart

I would say that you can't. Both getComputedStyle(yourElement, '::selection').backgroundColor and getComputedStyle(yourElement, '::-moz-selection').backgroundColor will return transparent as default value and browser won't override os's default. (Worth to be mentioned that if you set it to transparent, default os' value will be overriden). I don't think browsers have access to os default...

How to make a browser console wait in a javascript

javascript,browser,console,wait

using setTimeout, which executes only once after the delay provided setTimeout(function(){ console.log('gets printed only once after 3 seconds') //logic },3000); using setInterval , which executes repeatedly after the delay provided setInterval(function(){ console.log('get printed on every 3 second ') },3000); clearTimeout is used to clear them up !!!...

I can't run my own applets in browser

java,security,browser,applet

We have to sign the applet before running it on the browser did you try signing your applet Jar. here is the signing commands. You should be in the same directory in command prompt. 1.keytool -genkey -keyalg rsa -alias m4key //m4key unique key 2.keytool -export -alias m4key -file bmcert.crt //bmcert.crt...

Why does my subdomain only work in Chrome?

php,.htaccess,google-chrome,browser,subdomain

I think that Chrome will make some magic and resolve all subdomain of localhost to 127.0.0.1. You have to add 127.0.0.1 sub.localhost to your host file Linux: /etc/hosts OSX: /private/etc/hosts Windows: %windows%/system32/drivers/etc/hosts ...

What do I need to do to my HTML to allow accented characters to properly display?

html,browser,html-escape-characters

It is important to specify the character set used for your page as some browsers might mess up displaying special characters or characters from different language. Add the below line within your <head>....</head> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> I tried your code with and without using the above line and I...

correct HTML pages won't load in IE10

javascript,jquery,html,internet-explorer,browser

I think IE uses caching. By adding a random parameter to the URL the caching will be circumvented. so e.g. www.mysite.nl?1 and then www.mysite.nl?2 etc....

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

php,android,browser,website,device

I dont think this is possible. This might lead to security issues. If this could have been possible, everybody would want to have a button like this. Lets take a scenario. I open a page and click on the button. The button sets a particular (unknown) page as the default...

How is this string processed by the browser?

javascript,jquery,browser

jQuery supports method chaining, because (almost) every method returns an object to which you can call another method. Many jQuery functions return the object they were called on, so object.addClass('x') would again return object, so you can add another class or hide it by just chainging the other method call....

Android Old Browser not Deeplinking mobile application

javascript,android,browser,deep-linking

(Full disclosure, I'm currently an engineer at Branch) Hey Visahan, This is something Branch links do for you. We do exactly what you have built out, which means our links upon clicking take a user to your application if that user has your application already, or they take them to...

How does the -tag work in Chrome?

html,browser

The server sends a Content-type header with every response that tells the browser what to expect. For example, an image might have a Content-type of image/jpeg. More details at Wikipedia or W3C The content itself may be binary, or encoded in some way (commonly base 64). The encoding used is...

Why is it so hard to style