Rewrite HTML content

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

Rewrite HTML content
Search HTML for a pattern and modify the string 
Gavin Rolfe




Posts: 2
Joined: 2011-01-06
Hello,

Is it possible to use ADX to modify the HTML content when the page is loading.

My aim is to search the HTMLcontent for telephone numbers and convert them to hyperlinks.

If this is possible i would be greatful if anyone can give me some pointers.

Thank You for your time.

Gavin

Before:

<ht ml>
<body>
01234 123456
</body>
</html>


After:

<ht ml>
<body>
<a href="dial:01234123456">01234 123456</a>
</body>
</html>
Posted 06 Jan, 2011 13:09:30 Top
Sergey Grischenko


Add-in Express team


Posts: 7202
Joined: 2004-07-05
Hi Gavin.

You can modify the web page after it has been loaded by IE. It can be done in the DownloadComplete event handler.
Posted 10 Jan, 2011 08:02:08 Top
Gavin Rolfe




Posts: 2
Joined: 2011-01-06
Thats great news.

Do you have any sample VB code that could help get me started.

Gavin
Posted 10 Jan, 2011 17:20:45 Top
Eugene Astafiev


Add-in Express team


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

Please have a look at the Advanced Search sample add-in for Internet Explorer. It is a good start point for you.
.NET, Extended MAPI, Windows Phone & RT
Posted 11 Jan, 2011 04:43:49 Top