473,588 Members | 2,448 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Webbrowser Control for AJAX based sites

Hi,

I am using System.Windows. Forms.Webbrowse r control in my application.
For the Ajax based sites like live.com, the webbrowser control
processes and renders the javascript requests, even after the
DocumentComplet e event is fired, because of which I get incorrect
scrollHeight and scrollWidth of the document.

Is there any way to tell if the webbrowser is still processing
XMLHttpRequests and javascript?

Thanks,
Nupur

Aug 1 '06 #1
2 9557
Nupur,

AFAIK, there isn't any way to hook into this. The DocumentComplet e
event is strictly for the rendering of the page. Anything that the page
does to make calls (through the XMLHttpRequest, for example) occurs outside
of that.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

<nu************ *@gmail.comwrot e in message
news:11******** **************@ 75g2000cwc.goog legroups.com...
Hi,

I am using System.Windows. Forms.Webbrowse r control in my application.
For the Ajax based sites like live.com, the webbrowser control
processes and renders the javascript requests, even after the
DocumentComplet e event is fired, because of which I get incorrect
scrollHeight and scrollWidth of the document.

Is there any way to tell if the webbrowser is still processing
XMLHttpRequests and javascript?

Thanks,
Nupur

Aug 1 '06 #2
Is there any way to hook to the requests made by page rendered in the
webbrowser control?
Or if we could get the instance of the script engine running for this
webbrowser control and find out if it has finished processing or
sending/receiving data?

Nicholas Paldino [.NET/C# MVP] wrote:
Nupur,

AFAIK, there isn't any way to hook into this. The DocumentComplet e
event is strictly for the rendering of the page. Anything that the page
does to make calls (through the XMLHttpRequest, for example) occurs outside
of that.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

<nu************ *@gmail.comwrot e in message
news:11******** **************@ 75g2000cwc.goog legroups.com...
Hi,

I am using System.Windows. Forms.Webbrowse r control in my application.
For the Ajax based sites like live.com, the webbrowser control
processes and renders the javascript requests, even after the
DocumentComplet e event is fired, because of which I get incorrect
scrollHeight and scrollWidth of the document.

Is there any way to tell if the webbrowser is still processing
XMLHttpRequests and javascript?

Thanks,
Nupur
Aug 2 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
7544
by: Noozer | last post by:
I've got a WebBrowser control (AxBrowse - VCMAXB.DLL) and I'm having a few difficulties with it. Just looking for a few pointers, not whole solutions here. I've tried looking at the MSDN help files with little success. - When a new window is trying to pop up, how do I determine the target URL? How can I get the page to open in the current browser control? - When printing from the webbrowser control is there a way to ensure it prints...
8
3393
by: Prosperz | last post by:
Hi, I would like to make thumbnails of web page by capture content of a WebBrowser. By example, capture http://www.google.com. I used WebBrowser control with Framework 2.0. I try this : *************************************************
7
10203
by: Dave Booker | last post by:
I am trying to access the binary data of PDFs in my C# .NET 2.0 project. I have a URL that points directly to the PDF, but when I tell my WebBrowser to retrieve it, it stalls and never finishes downloading the document. I can't use an HttpWebRequest to get the PDF from this URL, because the server that the PDF is hosted on requires script-based authentication, which means I need to use a WebBrowser to do everything. The authentication is...
7
11911
by: Dave Booker | last post by:
I am using a WebBrowser object in my .NET 2.0 application, but it is not shown to the user. Every time a timer event triggers it to perform a m_WebBrowser.Navigate() I get that classic IE 'click' and it steals the focus from the user's current application. How can I prevent the hidden WebBrowser from stealing focus? (And better yet can I even suppress that click?_
0
5546
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted ******************************************************** For this teeny job, please refer to: http://feeds.reddit.com/feed/8fu/?o=25
3
2135
by: Nordiek, Christof | last post by:
I have an applaction, that is an addin for Outlook. It opens a form with a WebBrowser control wich then shows a page from a Webserver. It works fine, but when I installed it on Windows Server 2003 the page didn't get shown in the WebBrowser control. I have another application wich uses the same form, but is a standalone Winform-Application. This works on both machines (my development PC with Vista and the Windows Server 2003. Does...
1
2536
by: milhouse | last post by:
Hey everyone, I have an application with a simple built in webbrowser that allows users to click on a piece of data in another section of the app, and the webbrowser will open a URL for more information. However, after going thru several of these URLs, the webbrowser hangs and the entire app needs to be closed and restarted. FWIW, these URLs also cause IE to hang if you view them there. Here are some example URLs: ...
4
4471
by: kimiraikkonen | last post by:
Hi, Just to test, i placed a simple webbrowser to login a site, this site has no problems and has same error with IE6 SP2 but it's suppressed as well and no problem with Firefox browser, but using webbrowser it shows scripting errors: There are a lot more sites that encounters scripting problems though they work just fine in Firefox, a sample: http://www.anaivanovic.com/forum/login.php
7
6646
by: RichB | last post by:
I am trying to get to grips with the asp.net ajaxcontrol toolkit, and am trying to add a tabbed control to the page. I have no problems within the aspx file, and can dynamically manipulate a tabcontainer which has 1 panel already, however I want to try create the TabPanels dynamically. I followed the advice here: http://www.asp.net/learn/ajax-videos/video-156.aspx (3rd comment - Joe Stagner)
0
7929
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7862
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8228
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8357
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
6634
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5729
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
3847
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3887
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1196
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.