browser

create switch for changing theme intead of browser page style html

丶灬走出姿态 提交于 2020-01-06 07:10:26
问题 I added a theme in my HTML page by: <link rel="alternate stylesheet" href="css/dark.css" title="dark"> this creates an option to switch theme from view>style in browser as it is expected to. I want to create a switch in the page itself for changing the theme. <button>Switch Theme</button> will create a button but how do I make it switch theme? 回答1: You should trigger a change in the href attribute of the <link> tag on the click of the button, as demonstrated: HTML <link rel="stylesheet" href=

Stretching background to 100% in firefox

元气小坏坏 提交于 2020-01-06 06:09:04
问题 I am currently working with a javascript background script that changes the background on a timer and and in reference to day and night this works great but I'm trying to make the background stretch to 100% of the browser width, I've done this through CSS. It works in safari and chrome but not firefox (maybe IE too) instead it see's the 100% as showing the image at 100% of it's size, can anybody help? I'm not sure if there is a hack to work with body or I'll have to rewrite the javascript to

finding which form the input field belongs to delphi

谁都会走 提交于 2020-01-06 05:46:08
问题 Follow my previous question which i managed to answer myself. I am able to place text in an input field on a website served on webbrowser in a delphi application. sometimes there are multiple forms on a website, most of the time its around 2, but it could head up to a faire few. Now my question is. How can I 'test' or find out which form the selected input field belongs. Lets just take an example. For example, gmail.com there are 2 input fields: 'Email' and 'Passwd' I also know that there are

Getting jQuery to work with Netscape 7 and 8

淺唱寂寞╮ 提交于 2020-01-06 05:16:04
问题 Netscape fails to read a lot of jQuery written. What steps do you take to overcome these, and how much of the market do netscape users take up? 回答1: Steps I would take: Let it fail Wait for Netscape users to notice they are using a long dead browser with security holes in it The market share for Netscape is as close to zero as makes no matter. 回答2: Umm, 0%? Having said that, I have to admit that jquery fails on a lot of sites while prototype works, in my ancient Konqueror 3.5.10, so maybe

Getting jQuery to work with Netscape 7 and 8

隐身守侯 提交于 2020-01-06 05:16:03
问题 Netscape fails to read a lot of jQuery written. What steps do you take to overcome these, and how much of the market do netscape users take up? 回答1: Steps I would take: Let it fail Wait for Netscape users to notice they are using a long dead browser with security holes in it The market share for Netscape is as close to zero as makes no matter. 回答2: Umm, 0%? Having said that, I have to admit that jquery fails on a lot of sites while prototype works, in my ancient Konqueror 3.5.10, so maybe

Scrolling problem with a WebBrowser control contained in a Panel control

旧街凉风 提交于 2020-01-06 05:10:49
问题 I have a .Net Panel control that contains a single child control that is a WebBrowser. I won't go into the reasons for me doing that, but it is related to printing out the control. The panel control has its AutoScroll property set to "true" and I am sizing the WebBrowser to fit its own content (by using the .Document.Body.ScrollRectangle.Size property of the WebBrowser when the NavigateComplete2 event fires). In this way, the scrollbar on the panel appears and you can scroll the panel up and

What's the difference between a “GET” request and a “page refresh”?

冷暖自知 提交于 2020-01-06 05:00:54
问题 Is there any difference between doing a "GET" request (type URL and Enter ) compared to simply refreshing ( Ctrl R ) the page? 回答1: No, it is not simply a get request, because on a page that you've POSTed to (from a separate form), the browser will confirm with you that you want to refresh the page because it is a POST request. As for your question, you'll need to provide specifics for debugging purposes. 回答2: It is simply telling the browser to repeat the page load, which implies repeating

How does wttr.in respond differently to browsers than it does curl?

天涯浪子 提交于 2020-01-06 04:19:25
问题 If you go to http://wttr.in/ in your browser you'll see a page which is wrapped in a tag, has links, and is colored using spans. If you then go to terminal and type curl http://wttr.in/ you'll get pretty much exactly the same looking page, but the code is very different. How does wttr.in differentiate between these two? I'm aware of this existing question (How can I tell a curl request vs browser request), but as the answer is "you can't" and I'm seeing proof you can, it seemed like a poor

By default, mobile browsers use HTTPS. How can I force mobile browers(Chrome and Firefox) to use HTTP?

橙三吉。 提交于 2020-01-06 03:48:11
问题 I have a web applicaton hosted on my laptop which does not use encryption. The site works fine when accessed from laptop browsers. When I try to access same(using IP-ADDRESS/site-name or http://IP-ADDRESS/site-name) using Firefox and Chrome from mobile, I get a warning stating that the local site is not secure. I bypassed the warning and tried to access the site but, both browsers still try to connect to the site over HTTPS and report an error that requested page does not exist. By default,

Browser file download not working for a file stored on server

时光毁灭记忆、已成空白 提交于 2020-01-06 03:32:05
问题 I have a file on server which is to be downloaded using the browser download. No error is being thrown but no download window appears for the file download. Please help. My controller code is: @RequestMapping(value = "download", method = RequestMethod.GET) public void downloadFile( @ModelAttribute("path") final String path, HttpServletRequest request, HttpServletResponse response) throws Exception { try { logger.error("inside download get try"); ServletContext context = request