473,320 Members | 1,854 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Help needed with InvokeScript functionality of WebBrowser control

Hi all,

I'm using the InvokeScript functionality in one of my projects. But
it seems like it will
invoke the script mentioned only once.

For eg.. I'm doing this in my VB.Net code

ParamArr(0) = CObj(XMLDOM.xml)
WebBrowser1.Document.InvokeScript("UpdatePage", paramArr)

And the JavaScript code looks like this

function UpdatePage(sPageXML)
{
alert("UpdatePage firing")
var pageDocument = (new DOMParser()).parseFromString(sPageXML,'text/
xml');
if(isValidXMLDom(pageDocument))
{
Def = pageDocument;
PageShow(Def); //This method will basically refresh the page;
}

}
The WebBrowser1.Document.InvokeScript("UpdatePage", paramArr) works
well for the first
time..ie the alert of "UpdatePage firing" comes. But when I use the
same line again the
alert doesn't fire.Is there some cache to be removed from the
webBrowser or some objects to
be closed down or refreshed. Could you please help. Also information
about
WebBrowser.ObjectForScripting Property will also be very useful.

Thanks
Deepesh

May 23 '07 #1
0 5587

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

Similar topics

1
by: Jim Hubbard | last post by:
I want to implement the same type of activeX restrictions in my browser application that the new SP2 for XP places in Internet Explorer. I have found 2 web pages dealing with this functionality...
3
by: Jim Hubbard | last post by:
I want to implement the same type of activeX restrictions in my browser application that the new SP2 for XP places in Internet Explorer. I have found 2 web pages dealing with this functionality...
1
by: Larsi | last post by:
Hi I'm developing a portal that will be used by patients in a hospital My prototype is based on web pages shown in Internet Explorer. Users can have access to different applications like...
2
by: Ed | last post by:
Hi, Is there any control (free) that has same functionality as IE to display the XML document without having to create a physical file? if using Webbrowser control (ActiveX control) I have to...
0
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...
4
by: David | last post by:
I'm using the AxSHDocVw.WebBrowser control to download data from a webpage at work (it's an internal page on my company's intranet). The page produces a runtime error after a while and the...
1
by: jrox6279 | last post by:
Hello, I have a C# UI Control that allows Google maps to be displayed in a Windows Form. I am using the WebBrowser control in a secondary thread to accomplish this. I make several calls to...
2
by: jim | last post by:
Has anyone seen a way to read the data stream for a URL being navigated to by a webbrowser control and edit it (i.e. search HTML stream for and possibly remove objectionable language for a kid's...
3
by: Sarah | last post by:
Hi - Please be gentle. I am quite new to visual basic, but I have been going through tutorials and reading up. I found a code snippet on the internet that I wanted to see if I could re-purpose...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.