axWebBrowser Runtime Error

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am developing an application to implement the Kleinberg web search algorithm.

I use the axWebBrowser control but whenever I navigate to specific pages
like "http://www.minotel.com/" i get a runtime error. However, if i use the
Internet Explorer or Mozilla Firefox this error does not appear.

What I would like to do is to ignore the error programmatically so that the
user will not see the error.


Thanks in advance, TSIK
www.cs.ucy.ac.cy/~cspgsk2
 
TSIK,

What error are you getting? It's hard to say how to fix it if we don't
know what is going on.
 
Nicholas thanks for your interest

Fist of all it was my omission not to include the error

I call the navigate function as follows:
axWebBrowser1.Navigate("http://www.minotel.com/");

(I have also tried the Navigate2 function without success)

The error I get is:

A runtime error has occurred
Do you wish to Debug?
Line 25

Error: Invalid Argument
If I click to "Yes" and click to debug i am automatically redirected to the
script "script.js" included in the webpage of www.minotel.com
The error is in the last line of the following function

function rszx()
{
var d, el, elh, bh;
d = document;
if (!d.getElementById) return;
el = d.getElementById("margin");
if (!el) return;
elh = el.offsetHeight;
bh = d.body.offsetHeight;
if (!window.adj) adj = 217;
el.style.height = bh - adj;
}

I think that it is not an error of the webpage as this error does not appear
in Internet Explorer of Firefox.

The target is just to avoid transferring the error to the user.

Thanks again




Nicholas Paldino said:
TSIK,

What error are you getting? It's hard to say how to fix it if we don't
know what is going on.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

TSIK said:
I am developing an application to implement the Kleinberg web search
algorithm.

I use the axWebBrowser control but whenever I navigate to specific pages
like "http://www.minotel.com/" i get a runtime error. However, if i use
the
Internet Explorer or Mozilla Firefox this error does not appear.

What I would like to do is to ignore the error programmatically so that
the
user will not see the error.


Thanks in advance, TSIK
www.cs.ucy.ac.cy/~cspgsk2
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top