Address bar keyword event

Add-in Express™ Support Service
That's what is more important than anything else

Address bar keyword event
 
princy rose




Posts: 10
Joined: 2010-09-14
Hi,

For my toolbar i need the event to capture the browser bar keyword before navigate the page.

I tried with beforenavigate event. But it transfer the page before find keyword.

So which event is suitable to find the keyword before navigate the page ?


Thank you for your kind help.
Posted 17 Sep, 2010 04:57:43 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hi Princy,

You can use the following approach:

private void IEModule_BeforeNavigate2(AddinExpress.IE.ADXIEBeforeNavigate2EventArgs e)
{
   e.Cancel = true;
   // do some business logic here
   IEApp.Navigate(someUrl, fags, targetFrame, postData, headers);
}


Does it suit your needs?
.NET, Extended MAPI, Windows Phone & RT
Posted 17 Sep, 2010 06:40:04 Top
princy rose




Posts: 10
Joined: 2010-09-14
Hi Eugene,


Thank you for your response. I tried with IEModule_BeforeNavigate2 event to get the text of the address bar. But i need the values addressbar text before it transfers the url. According that url value i need to transfer that page. Can you send any sample code for this ?



Regards,
Princy
Posted 04 Oct, 2010 01:58:36 Top
Andrei Smolin


Add-in Express team


Posts: 15284
Joined: 2006-05-11
Hi Princy,

Both the IE object model and Add-in Express don't provide any way to access the texte entered in the Address bar.

Regards from Belarus (GMT+2),

Andrei Smolin
Add-in Express Team Leader
Posted 04 Oct, 2010 02:10:42 Top