browser

jquery mobile, browser back button navigation

心不动则不痛 提交于 2019-12-23 02:36:40
问题 I have a multipage form with #p1,#p2,#p3. Once I submit the form, and when I try to click back browser button, it should go to #p1 with empty form fields. it is possible wiith Jquery Mobile? 回答1: I would override the backbutton and check for which page is the active page then based on the page do whatever house cleaning you need... I submitted an example to another question really similar to this: BackButton Handler Where I have Options, Popup and HomePage you might just need P3 and when the

Browser - file writer extension?

故事扮演 提交于 2019-12-23 02:17:37
问题 Is there any chrome or firefox extension that allows javascript to create write files in client's PC? 回答1: What do you want to do? HTML5 has a File API. This is the best solution because it allows selection of the file to be wholly under user control. If you must, you can make your own NPAPI plugin which exposes itself to scripting (aka NPRuntime) and performs native local file operations on behalf of Javascript in the page. Or, in IE, new ActiveXObject("Scripting.FileSystemObject") may yield

Weird error when calling document.GetElementsByTagName(“head”)

社会主义新天地 提交于 2019-12-23 01:43:21
问题 I have an application that uses the following code to inject JavaScript in a web page in a WebBrowser : HtmlElement head = document.GetElementsByTagName("head")[0]; HtmlElement scriptEl = document.CreateElement("script"); IHTMLScriptElement element = (IHTMLScriptElement)scriptEl.DomElement; element.text = CurrentFuncs; head.AppendChild(scriptEl); But I just got an error report from a customer that got an exception in the document.GetElementsByTagName("head")[0] piece of code that says: "Value

SSRS reports clipped in IE9 but fine in IE8

大兔子大兔子 提交于 2019-12-23 01:41:34
问题 I have one page called Reports.aspx which contains one IFrame and I have put one user control into that IFrame . That IFrame have the reports to show but in IE9 the report become clipped i.e. showing partially but if I run the same in IE8 then everything is fine. Now I want to render the Iframe part in IE8 but the rest aspx page in IE9 . Will it be possible? Hope so.... 回答1: Render the page using a meta tag seen hear <html> <head> <!-- Mimic Internet Explorer 8 --> <title>My Web Page</title>

SSRS reports clipped in IE9 but fine in IE8

谁说胖子不能爱 提交于 2019-12-23 01:41:28
问题 I have one page called Reports.aspx which contains one IFrame and I have put one user control into that IFrame . That IFrame have the reports to show but in IE9 the report become clipped i.e. showing partially but if I run the same in IE8 then everything is fine. Now I want to render the Iframe part in IE8 but the rest aspx page in IE9 . Will it be possible? Hope so.... 回答1: Render the page using a meta tag seen hear <html> <head> <!-- Mimic Internet Explorer 8 --> <title>My Web Page</title>

Disable link reference tooltip in browsers

白昼怎懂夜的黑 提交于 2019-12-23 01:41:27
问题 I would like to know if there is a way to remove the "tooltip" (I don't know if is the right name for that element) that appears at the bottom-left of the screen when I stop the mouse cursor on a link. I've taken this screenshot from my google search result page. As you can see the first site is underlined because the cursor is on it (you can't see the cursor because when I take a screenshot it disappears). The tooltip I'm talking about is the one at the bottom-left of the screen, surrounded

Disable link reference tooltip in browsers

对着背影说爱祢 提交于 2019-12-23 01:41:25
问题 I would like to know if there is a way to remove the "tooltip" (I don't know if is the right name for that element) that appears at the bottom-left of the screen when I stop the mouse cursor on a link. I've taken this screenshot from my google search result page. As you can see the first site is underlined because the cursor is on it (you can't see the cursor because when I take a screenshot it disappears). The tooltip I'm talking about is the one at the bottom-left of the screen, surrounded

How do I programmatically check for open browser instances on a Windows machine?

好久不见. 提交于 2019-12-23 01:28:07
问题 I wrote a GUI automation script in python that opens a web browser, does some tests in the browser and then closes the browser. It does so in a loop going up through hundreds of thousands of iterations. I've run into problems where the program would hang and I would get no browser instances open or sometimes up to 20 instances open. I would like to create an error check to make sure there is only one browser instance open at a time (kill the browser completely and restart the iteration if

CSS content counters breaks CSS in IE

冷暖自知 提交于 2019-12-22 18:38:39
问题 I do expect the site to require a few tweaks to work in IE although this time it appears like something is completely breaking the CSS in IE8 compatibility mode. To start at the top with the logo position, I have added a red background to check its location and this is not even displayed, although you can see this in firefox. How come this is not being read correctly? Website EDIT: I have narrowed this down to the exact code which causes IE to break: .content ol li:before { content: counters

Java - connection to ServerSocket via browser/URL

≯℡__Kan透↙ 提交于 2019-12-22 18:37:27
问题 I'm writing a piece of software, and I'm under the restriction of not being able to use socket to connect to a java application using a ServerSocket. I thought I'd try with an URL connection, since it's possible to define which port to connect to e.g: 127.0.0.1:62666 I have my server app listening for connections and writing the input out to a jTextArea. When connecting to the server (127.0.0.1:62666) through a browser, it outputs: GET / HTTP/1.1 GET /favicon.ico HTTP/1.1 I have another app