browser

Add a web browser in my Java application

蹲街弑〆低调 提交于 2020-01-04 02:00:26
问题 I have a java application which is for viewing content from web. So I want to add a fully functional browser in my application. I've already tried JEditorPane and it's not processing dynamic contents. Is there any other way? Any help on how to do it? 回答1: This links are good examples for this: create browser in swing how-to-create-a-simple-browser-in-swing Hope this helps. 回答2: If you are willing to pay for third party software you might want to consider JxBrowser: http://www.teamdev.com

HtmlAgilityPack getting page title and H1 tags

ぐ巨炮叔叔 提交于 2020-01-03 21:00:37
问题 Hey all i am trying to get the page title and H1 tags from a webpage by doing the following doc.LoadHtml(htmlSourceCode) txtTitle.Text = doc.GetElementsByTagName("title").InnerText() txtH1.Text = doc.GetElementsByTagName("H1").InnerText() For Each channel In doc.DocumentNode.SelectNodes(".//meta[@name='description']") txtDescription.Text = channel.Attributes("content").Value Next The only code above that works is the txtDescription part. Both the title and H1 do not. What type of syntax do i

How Classic ASP Session works in deeply

跟風遠走 提交于 2020-01-03 19:38:09
问题 I know that the ASP Session use some cookie identifiers. But I wan't to know how deeply it identify the browser and what browser is in the right session. The ASP Sessions keep working even if you disable browser cookies, so how it work's, and what exactly are the variables needed to ASP identify a browser in the right session, like remote IP + Cookie + some header sent by the browser to keep the identification session, please elucidate me. Some example is this question: Opening a new window

Browser continues 'loading' after ajax request finishes

泪湿孤枕 提交于 2020-01-03 19:01:31
问题 You've seen this - on an ajax-heavy page, like meebo.com, the browser never stops 'spinning', it never indicates that it's finished loading. What causes this, and is there any way to consistently tell the browser (whatever browser it may be), that loading has completed? EDIT: Sorry, I should've specified that I'm a developer here. I've noticed this on other sites, and now one of mine as well that's using ajax. I want to make sure that when an ajax call comes back, the page stops 'loading'.

Browser continues 'loading' after ajax request finishes

妖精的绣舞 提交于 2020-01-03 19:01:26
问题 You've seen this - on an ajax-heavy page, like meebo.com, the browser never stops 'spinning', it never indicates that it's finished loading. What causes this, and is there any way to consistently tell the browser (whatever browser it may be), that loading has completed? EDIT: Sorry, I should've specified that I'm a developer here. I've noticed this on other sites, and now one of mine as well that's using ajax. I want to make sure that when an ajax call comes back, the page stops 'loading'.

jQuery FadeIn not working properly in Mobile Chrome Android

你离开我真会死。 提交于 2020-01-03 18:54:12
问题 First of all, this is the working demo: http://desainwebsite.com/marux-demo2 What I want to achieve is pretty simple: When I click menu button, the menu is showing, and this semi-transluscent black background fadeIn. And when I click that semi-transluscent black background, menu closed and this background fade out. This is my code when the menu button is clicked: $(".mnav-toggle").click(function(e) { $(".black-overlay").fadeIn(); $(".mobile-nav").animate({"left":0}); e.preventDefault(); });

Prevent Back option in browser after logout from the application

蓝咒 提交于 2020-01-03 18:53:53
问题 I am working on a ASP.NET application. I want to prevent the user from viewing the previous page using the back button in the browser after logging out from the application. 回答1: Thank You for all your replies. Code: Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.Cache.SetExpires(DateTime.Now.AddSeconds(-1)); Response.Cache.SetNoStore(); Response.AppendHeader("Pragma", "no-cache"); i have used this code in page load event. Its working fine. 回答2: here is solution how to do

How can I invalidate a page in the browser cache from the client side?

会有一股神秘感。 提交于 2020-01-03 17:47:41
问题 I need the client (using javascript) to invalidate a page it has and essentially fetch a new version? I thought I could do it all with headers: Invalidating cached content, If-Modified Headers? If there NO way to have the browser refresh its current cached version, with out making a new request (via a new URL) ... so that the same original URL request could be used to see the updated content? 回答1: You can't do that with javascript, to solve your problem or use method POST instead of GET or

How to detect Safari 10 browser in Javascript?

风流意气都作罢 提交于 2020-01-03 17:26:12
问题 I was using var isSafari = /constructor/i.test(window.HTMLElement) but it's not working for new Safari 10. Any advice on what to use? Thanks! edit: How to detect Safari, Chrome, IE, Firefox and Opera browser? only covers Safari up to version 9 回答1: I extended the safari detect line as mentioned in How to detect Safari, Chrome, IE, Firefox and Opera browser? with the following and placed it at the bottom of the list of tests: isSafari = Object.prototype.toString.call(window.HTMLElement)

How to embed a browser control inside Visual Basic 6? [closed]

风流意气都作罢 提交于 2020-01-03 17:20:35
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 12 months ago . I'd like to embed a web browser control into a Visual Basic 6 application. The only problem is that I would NOT like to use Internet Explorer, as it has several issues and that's currently what I'm using. Firefox, Chrome or even Opera would be appreciated if it was reasonably