473,685 Members | 3,033 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Accessing javascript variables in hosted webbrowser

I don't know where to post this so I'll try here. I'm trying to create
a C# based Windows Form app which hosts a webbrowser control,
loads a webpage of mine, and after DocumentComplet e extracts data
that is stored in javascript arrays. FWIW, the javascript arrays aren't
declared in the head or body of the webpage; they are globals in an
included .js file.

Could someone provide a brief explanation or example snippet that
would guide me in accessing the array data in my c# app? I'd really
appreciate it, thanks.
Dec 15 '05 #1
0 1458

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

Similar topics

by: Joe | last post by:
Hi, I am trying to alter the refresh rate of an online webpage in a webbrowser control using MFC. However the Timer ID is stored in a local variable and I don't know how to access it. Is there a technique in Javascript that I might be able to use/adapt? I have a timer set within a prototype thus: ;HControl.prototype.setFLTimeout = function() {
by: milindsj | last post by:
Hello, I have a application hosted on tomcat. I use a jsp to set a cookie say channelid. Now I am redirecting this page to some other appliaction which is hosted in tomcat on some other machine. I am having problems in accessing the cookie. The second application in which i am supposed to get the cookie is getting null. Let me know if someone has any idea. Thanks in advance.
by: Christopher Bray | last post by:
Hello, I am trying to retrieve a javascript variable that I have assigned to the "document" object of a hosted IE control. I imported the IE control per the instructions at the following URL: http://www.codeproject.com/csharp/webbrowser.asp I have followed some examples that I found online at:
by: Febronio | last post by:
Can someone tell me how to access the Internet Explorer Document from a vb.net usercontrol hosted in this document ? Me.parent, parentform, findform don't seem to work. Thanks ..
by: Vin | last post by:
The .Net 2.0's webbrowser is neat and pretty. But I am not able to capture Key events when the focus is on the webbrowser control in my winform. Options tried. 1. Wrote a class which extends this WebBrowser and override its onkeyup event - didn't work. 2. Same as option 1 but override preprocessmessage - didn't work. 3. Same as option 1 but override WndProc - doesn't capture any key events happening in the browser.
by: Paul Hemans | last post by:
I have a hosted web page, in the documentComplete event for the webbrowser control I have the following code. IHTMLElement oState = (IHTMLElement)oDoc.getElementById("x2State"); if (oState!=null){ oState.oHost = oForm.oMaster; }
by: n.vaughan | last post by:
People. I'm struggling with an issue here. The .Net2.0 application i'm developing makes use of both the WebBrowser control and controls hosted with this. When the document has loaded i check the DOM through an GetElementsByTagName( "object" ) call to get references to the objects hosted in IE.
by: Anton | last post by:
Hi, when accessing a secured 3rd party webservice i'm getting a 401 HTTP Statuscode (unauthorized). When entering the url in a browser and entering the username and password manually, the wsdl is returned. So the username and password should be ok. I'm using this code: Merchant myMerch = new Merchant(); myMerch.merchantIdentifier=merchantId;
by: Tobias Maier | last post by:
Hi I want to start a C# ActiveX Exe with a parameter. Now, start a WebBrowser. Within Html/javascript I initiate my component und want to retrieve the parameter from the startet exe. I have done this in VB6 with new ActiveXObject("name") and all works correct. Using C# or Vb.net it works different:
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...
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,...
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...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
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...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
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...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
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.