webpage

Android showing progress bar for webview in android

主宰稳场 提交于 2019-12-24 22:09:22
问题 In my apps loading webpage in Web view till that webpage loads need to show progress bar after that progress bar should go..i am using an activity....reply me soon waiting for your answer 04-26 18:02:36.791: D/AndroidRuntime(25114): Shutting down VM 04-26 18:02:36.791: W/dalvikvm(25114): threadid=1: thread exiting with uncaught exception (group=0x41250438) 04-26 18:02:36.811: E/AndroidRuntime(25114): FATAL EXCEPTION: main 04-26 18:02:36.811: E/AndroidRuntime(25114): java.lang.RuntimeException

Is there a way to obtain the HTML of a web page using the .NET compact framework?

元气小坏坏 提交于 2019-12-24 21:18:19
问题 As the WebBrowser control does not expose a get accessor for the DocumentText property you cannot use it to obtain the HTML that was loaded into this control. Does anyone know a way to obtain the HTML as a string? I am using .NET CF3.5. 回答1: Use HttpWebRequest class. Here is an example on how to do that. 回答2: Have you tried WebBrowser.Document? System.Windows.Forms.HtmlDocument document = this.webBrowser1.Document; It's exposed as: [BrowsableAttribute(false)] public HtmlDocument Document {

Display timer in titlebar of webpage

断了今生、忘了曾经 提交于 2019-12-24 17:26:12
问题 How I can display timer in titlebar of a webpage using javascript or any other method? 回答1: <!-- STEP ONE: Paste this code into the HEAD of your HTML document--> <head> <script language="javascript" type="text/javascript"> function clock() { var date = new Date() var year = date.getYear() var month = date.getMonth() var day = date.getDate() var hour = date.getHours() var minute = date.getMinutes() var second = date.getSeconds() var months = new Array("", "JAN", "FEB", "MAR", "APR", "MAY",

Android WebView - Text Selection Listener in 2018

本秂侑毒 提交于 2019-12-24 07:35:41
问题 I will create an app that user will be enter the website url to my app. Then I am showing this page in my app using WebView. As you know, when user clicks the any text in the context a little bit long, android cursor will appear then we can select text as many as we want. After selection, we will see that "COPY, SHARE, SELECT ALL" etc.. My question is that when user selects text, I want to show them different options. Let's say "MyCOPY, SendTwitter, SendMessage". How can i do that? What I did

How to interaction with a webpage in Java?

时光总嘲笑我的痴心妄想 提交于 2019-12-24 04:17:09
问题 Now, I am a beginner in Java. I have somehow managed to understand the following code. import java.net.*; import java.io.*; public class URLConnectionReader { public static void main(String[] args) throws Exception { URL yahoo = new URL("http://www.yahoo.com/"); URLConnection yc = yahoo.openConnection(); BufferedReader in = new BufferedReader( new InputStreamReader( yc.getInputStream())); String inputLine; while ((inputLine = in.readLine()) != null) System.out.println(inputLine); in.close();

Jquery: window.unload not working with chrome 72.0.3626.109

浪尽此生 提交于 2019-12-24 02:56:31
问题 I am creating a web app using asp.net mvc . I want to detect a manual refresh by a user, but I am not able to get the following events 1: beforeunload 2: unload the following way I Tried 1 $(window).on('beforeunload', function () { pageCleanup(); }); 2 $(window).on("unload", function () { pageCleanup(); }); function pageCleanup() { alert(1) } 3 window.addEventListener("unload", logData); function logData() { alert(1) } 4 $(window).unload(function () { alert('1'); }); the above is an example

WebClient website login

回眸只為那壹抹淺笑 提交于 2019-12-23 23:35:53
问题 I have difficulties logging in to a webpage (http://hurt.prosto.pl); all the time it returns to the login page source... Any idea how to fix it? var loginData = new NameValueCollection(); loginData.Add("username", username); loginData.Add("password", password); var client = new CookieAwareWebClient(); client.BaseAddress = @"http://hurt.prosto.pl/accounts/login/?next=/hurt/"; client.UploadValues("http://hurt.prosto.pl/accounts/login/?next=/hurt/", "POST", loginData); // now you are logged in

get html source code

流过昼夜 提交于 2019-12-23 05:42:07
问题 I am trying to put the html source code for any webpage in a string using Javascript. Please tell me if i can do something else to solve my problem.. I am using the following code that i found from another post function httpGet(theUrl) { var xmlHttp = null; xmlHttp = new XMLHttpRequest(); xmlHttp.open( "GET", theUrl, false ); xmlHttp.send( null ); return xmlHttp.responseText; } I tried this in IE Firefox and Chrome but i always get the following source code which is the source code for "PAGE

download webpage by asp.net [closed]

谁都会走 提交于 2019-12-23 04:59:05
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . given a url how can i download the webpage to my harddrive with asp.net e.g. if you open the url http://www.cnn.com in ie6 and use file save as, it will download the html page to your system. how can i achieve

Local android service receive data from local web page

可紊 提交于 2019-12-23 03:39:20
问题 I have offline web page on android tablet. Is it possible to write android service which will get data from web page when user insert data and submit it, and when android service receive data than it has to save it in text file or db. Everything is in offline local mode. 回答1: You should be carful when using the word Service besides android. People might get a worng idea of what you're taliking about because it has a special meaning for android. Because a local webpage will submit a post