FAQ Database Discussion Community


Changing URL as long as you are scrolling the webpage

javascript,html,url,browser,browser-history
I was seeing the NASA's press release / image gallery, (you can see it here) and it has come to my attention that as I'm scrolling down the webpage and seeing different posts, the URL in the address bar was changing (I was using chrome, but tried in Internet Explorer...

Are background images loaded if container opacity is 0

html,css,browser
Does browser load elements background image if elements opacity is 0? .element { background-image: url("someurl"); opacity: 0; } ...

Elasticsearch PUT documents in strange order

c#,.net,browser,elasticsearch,order
How do set elasticsearch to be adding new documents with PUT method at the end (or the beginning). Now it's adding new ones sometimes at the end, sometimes in the middle. I know I can sort results by some field, but I want to see them in browser just ordered...

Add possibility to launch commands from browser

python,browser
I have a simple browser in python #!/usr/bin/env python import sys import gtk import webkit DEFAULT_URL = 'http://www.stackoverflow.com' # Change this as you Wish class SimpleBrowser: # needs GTK, Python, Webkit-GTK def __init__(self): self.window = gtk.Window(gtk.WINDOW_TOPLEVEL) self.window.set_position(gtk.WIN_POS_CENTER_ALWAYS) self.window.connect('delete_event', self.close_application) self.window.set_default_size(350, 20) vbox = gtk.VBox(spacing=5) vbox.set_border_width(5) self.txt_url = gtk.Entry() self.txt_url.connect('activate',...

How to STOP browsers from sharing session amongst tabs?

javascript,jsp,security,browser,spring-security
How to NOT share session between multiple browser tabs ? I am using Spring Security in JSP/Servlet application and I want to know "How can we achieve the behavior with Spring Security where user is forced to login again whenever he changes the browser tab ?". Disclaimer Question is similar...

file_get_contents() function loads different page compared to broswer

php,html,file,browser,hyperlink
I am trying to find next page's link of a particular page(i call that particular page as current page here).The current page in program i am using is http://en.wikipedia.org/wiki/Category:1980_births The next page link which i am extracting from the current page is the below one http://en.wikipedia.org/w/index.php?title=Category:1980_births&pagefrom=Alexis%2C+Toya%0AToya+Alexis#mw-pages But ,, when file_get_contents()...

Creating meta-data for binary chunks for sending via WebRTC datachannel

javascript,browser,blob,webrtc,rtcdatachannel
I have a datachannel connection between two browsers, and would like to break a file into chunks and send them to/from the clients. I can read the file and break it up into chunks just fine. However I need a way for the receiving client to know which file the...

Open popup window in specific keyboard language

javascript,jquery,html,browser
I have code like this that open new window in javascript: window.open(URL); But although browser keyboard language at opennig moment for example is 'fa' but new window opens in 'en'. Is there a way that I can open new window in the same keyboard language that browser uses? Thanks....

Change browser proxy settings from Python in Ubintu?

python,linux,python-2.7,firefox,browser
Is there any way to change the firefox and chrome proxy through a python script. System is Ubuntu or any other linux distro

Altering window.print() Javascript functionality [duplicate]

javascript,browser
This question already has an answer here: Print <div id=printarea></div> only? 21 answers This question is mostly out of academic interests(and partly because I faced an issue like this before and simply found a workaround, but I want to know the proper way to do it). How does the...

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...

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?...

Selenium catch popup on close browser

java,selenium,browser
I'm trying to test that when I close my window a popup shows with a warning message. I've tried both driver.close() and driver.quit() after making sure I'm on the proper window but this just terminates the process since my popup doesn't show. I could test it by using the awt...

How to prevent loading image from cache when the src is a redirect url to the actual image file

html,image,google-chrome,browser
All: When I try to solve the problem that when load image from cache, I got some answers from this post:How to force a web browser NOT to cache images It talks about add a timestamp to the src like <img src="picture.jpg?1222259157.415" alt=""> But in my case, it is not...

I can't run my own applets in browser

java,security,browser,applet
I can't run my Java applet in any browser - Java blocks it for security reason. I have Java 8, so I can't set security settings to medium. What I have to do? (in my own applets I mean applets that I wrote and it can't harm anything)

Android Old Browser not Deeplinking mobile application

javascript,android,browser,deep-linking
I have a mobile app which is available for Android and IPhone. For this i have a website where I have a javascript method which checks whether the user is accessing the website from mobile device or other. If it's a mobile device, i'm invoking my installed mobile app, if...

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

php,mysql,apache,browser
I used a nested while loop for retrieving data from 2 different tables in sql using php but the browser only displays unexpected '}'. I also tried setting the nested while loop as comment, it executes in the browser fine. I checked every "}" , ";" ," " ", and...

Browser using c# in windows form applications

c#,html,windows,forms,browser
i have developed a browser using c# in windows form applications, now i want to put a button to store html code in a text document, how do i do that, thanks namespace browser { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button3_Click(object...

How to make Google Chrome and iOS remember scroll position in div after returning back?

css,browser,scroll,position,back
The problem is that the scroll container is a div, not body. And that causes Google Chrome and iOS to fail to remember scroll position of the div after users go to another page and then return back. The related CSS code is as follows. The scroll container is #container....

Dreamweaver can't connect to localhost

browser,xampp,localhost,dreamweaver
I can't preview what I'm programming in Dreamweaver in any browser anymore. The message I get (e.g. from Safari) is: Safari can't open the page "localhost/~user/mySite/index.htm", Safari can't connect to the server "localhost" I just couldn't find any answers in the internet which could solve this. What I did since...

CSS Font Fallback for Missing Glyphs

css,browser,fonts
CSS: p { font-family: Gill Sans, SFU GillSans; } "SFU GillSans" is a font for Vietnamese language. According to this link, if p contains a Vietnamese character that is not in Gill Sans font, then the browser will look for it in "SFU GillSans" font. Is it possible to switch...

Responsive HTML not reacting as expected in different browsers [closed]

html,css,browser,responsive-design
So I am making a website but some weird thing is happening. Like, you can see it happen by yourself, it's pretty staight forward; try opening this link into Chrome and Firefox (for example). Chrome reacting just fine, and not Firefox. As the two files are pretty long, I pasted...

Open a html document with php

php,browser
I have a strange setup at the moment (busy with a migration) I have a 4th Dimension application which calls php scripts (which is our soon to be, only application. Dropping 4D) This script thats called from 4D needs to open a html file in the browser. Is this possible?...

Android webview: controlling which browser is used on redirection

android,browser,webview
So I wanted when I use window.location in my webview, the page to be shown on the same page and to not open a new window with the default browser, so I added this code: view.setWebViewClient(new WebViewClient() { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { view.loadUrl(url); return false; }...

Why is it so hard to style