browser

sending sms from a mobile browser

寵の児 提交于 2019-12-25 09:13:12
问题 Is there any updates for sending sms from the browser(mobile)? I've seen similar posts on this topic from here and here (actually both share the same method of sending sms). Anyway the method of the above links is able to CREATE a message but not send it like so: <a href="sms:+123456789?body=TheMessage">SEND</a> When a user is browsing with a mobile device and clicks on the link it creates a new message ready to send to mobile number +123456789 with a message TheMessage . So it still requires

How do I open default browser to home page in C#?

别等时光非礼了梦想. 提交于 2019-12-25 09:04:31
问题 The question below has the answer to "How do I open the default Browser to a URL in C#?" But how do I open the default browser in C# without navigating to a URL? Desired behavior is for the default browser to open to the home page, or use the startup behavior (for example, defined in the Firefox option "When Firefox starts"). How to open in default browser in C# 回答1: This should do it: Process p = new Process(); p.StartInfo = new StartInfo(url) {UseShellExecute = true}; p.Start(); EDIT : This

browser showing progress bar as still progressing even when the page is loaded

你。 提交于 2019-12-25 08:57:46
问题 I have a spring based web application. The flow of the request is: jsp -> interceptor chain -> processor -> service -> dao -> database and back. Javascript is also used in JSP. Scenario: A list of clickable products is shown. On clicking any product, the details of the product are fetched and displayed on tabs on the same page. (Javascript Tabber) On clicking any other product, details of the new product will be fetched and displayed. However, even though all the details are loaded completely

Tell the browser to drop cache of image

拟墨画扇 提交于 2019-12-25 08:48:12
问题 I have the common problem where when users change their profile picture it will not immediately appear on the web page, they will keep seeing the old one until the browser decides to drop the cached version. The common solution for this problem is to add some unique query string so that the browser will not have it cached, like img.png?cache-breaker=rjqwrj0 . This causes another problem for me - it gets logged in the web server's access logs and when they are being parsed each request gets

what's the best way to pause loop while webBrowser is loading page?

折月煮酒 提交于 2019-12-25 08:47:24
问题 I need pause loop until that the webbrowser complete page load. string[] lines = (string[]) Invoke((ReadLine)delegate { return logins.Lines; }); foreach (string line in lines) { //.. if (TryParseUserDetails(line, false, out data) { //... wb.Navigate(url.Next()); } } how to wait the wb page load to before continue loop? I tried using polling-flags, setting an variable as true in WebBrowserDocumentCompletedEventHandler callback function. and then: wb.DocumentCompleted += new

Auto sizing Silverlight controls

我的梦境 提交于 2019-12-25 08:45:05
问题 I am using Silverlight 4 for a project. I want to know if there is a way I can get the main canvas to stretch to the height and width of the browser window it is hosted in? I want the controls within to resize in proportion to the main control that hosts all the rest of the controls in the host browser window. This is a Prism application which has a Shell.xaml and a ContentControl within the shell. In this prism case I want the content control to span to 100% of the screen height and width..

vb.net WebBrowser links to Default Web Browser

喜夏-厌秋 提交于 2019-12-25 08:28:11
问题 is there a way to detect a person clicking a link inside WebBrowser1, and then i can do Process.Start(TheURL) And then return the action as false so it doesn't click the link in the webbrowser object and just the process. 回答1: Here ya go: private void WebBrowser_Navigating(object sender, WebBrowserNavigatingEventArgs e) { e.Cancel = true; // Cancel the event to avoid default behavior System.Diagnostics.Process.Start(e.Url.ToString()); // Open the link in the default browser } EDIT: Meh, I had

MouseEvent undefined in .NET WebBrowser control

℡╲_俬逩灬. 提交于 2019-12-25 08:15:26
问题 Why this is happening and how to fix this issue ? Here is what's happening. A error is thrown by WebBrowser control which says : An error has occureed in the script in this page. Error: 'MouseEvent is undefined' SetFeatureBrowserFeature("FEATURE_BROWSER_EMULATION", 9999); //This forces my WebBrowser control to use IE9+ which in my case it's using IE 10 var anyScripts = webBrowser1.Document.GetElementsByTagName("script"); if (anyScripts == null || anyScripts.Count == 0) webBrowser1.Document

JavaScript for replacing text in the body tag of pages loaded into an open source browser for Android

混江龙づ霸主 提交于 2019-12-25 07:59:10
问题 I'm writing a JavaScript for an open source browser available for Android to replace the text in the body tag of the pages loaded into the browser with some different text. This should be worked in away that once a page get loaded into the browser, this JavaScript executes & the replacements take place & finally the page with replaced text is visible in the browser. This is the replacing part of the code: var textnodes, node, i; textnodes = document.evaluate("//body//text()[not(ancestor:

onBeforeUnload suddenly not working as expected

核能气质少年 提交于 2019-12-25 07:49:23
问题 I was using this snippet for almost 2 years. It was fine then, until I saw it was not working today on Google Chrome version 51.0.2704.103m . $(window).on('beforeunload', function () { return "Are you sure you want to exit this page?"; }); It doesn't show my custom message but instead just show: Changes you made may not be saved. Is overriding onbeforeunload message is still supported on our browsers? Because this issue is same with Mozilla Firefox version 47.0.1 . Or, am I doing it wrong?