IHTMLDocument interface - navigate callback

Just starting out? Need help? Post your questions and find answers here.
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Post by ricardo »

I notice that if i set the put_onerror once the page is loaded it catches errors in some way (but doing this i miss any error in javascript when loading page, that is the most usuall), the IDispatch_Invoke get called itself but as *pDispParams\cArgs = 3 then get procedurereturn #DISP_E_BADPARAMCOUNT and never reach the function.

Why? Any help are welcome.

Is possible to set onerror when loeading to catch any initial error from loading javascript?
sshn
New User
New User
Posts: 1
Joined: Mon Aug 04, 2008 9:01 am

Post by sshn »

Is there a way to disallow default IE event handler to process some event? For example: user clicks some link and something happens without redirect to the link.
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Post by ricardo »

sshn wrote:Is there a way to disallow default IE event handler to process some event? For example: user clicks some link and something happens without redirect to the link.
Yes, in the callback return false.

Search in the forums, there are some examples.
Post Reply