Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » UppHub » [Controls4U] IE shows script errors
[Controls4U] IE shows script errors [message #41236] Sun, 17 November 2013 20:37 Go to next message
Zbych is currently offline  Zbych
Messages: 318
Registered: July 2009
Senior Member
Hi,

By default IE widget shows all error messages (java script errors etc.):

http://www.indusoft.com/blog/wp-content/uploads/2013/04/MSWebBrowserScreenOpenFig1.jpg

We can simply make IE quiet using put_Silent function. Koldo, can you add it to IE widget?

bool InternetExplorerBrowser::Silent(bool s)
{
	IIWebBrowser webBrowser(this);
	if (!webBrowser) 
		return false;
	
	VARIANT_BOOL vb = s ? VARIANT_TRUE : VARIANT_FALSE;
	
	if (webBrowser->put_Silent(vb) == S_OK) return true;
	return false;
}


I guess it should be turned on by default.

Re: [Controls4U] IE shows script errors [message #41245 is a reply to message #41236] Mon, 18 November 2013 09:50 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3268
Registered: August 2008
Senior Veteran
Thank you Zbych Smile

Added bool SetSilent(bool val) to InternetExplorerBrowser and FirefoxBrowser.

In the doc it will appear:

Sets a value val that indicates if the object can display dialog boxes


Best regards
Iñaki
Re: [Controls4U] IE shows script errors [message #41276 is a reply to message #41245] Fri, 22 November 2013 22:17 Go to previous message
koldo is currently offline  koldo
Messages: 3268
Registered: August 2008
Senior Veteran
Uploaded.

Best regards
Iñaki
Previous Topic: Ole Automation [FEATURE REQUEST?]
Next Topic: BarCode128: string to image (Candidate for upload to Bazaar)
Goto Forum:
  


Current Time: Mon Oct 18 09:27:17 CEST 2021

Total time taken to generate the page: 0.02995 seconds