SpicIE dynamically adding elements to Document object
Tech-Today

SpicIE dynamically adding elements to Document object


See code below:

Using SpicIE's OnDocumentComplete event
void SpicIE1_OnDocumentComplete(object pDisp, ref object url)
{
if (url.ToString().IndexOf("msn") > 0)
{
if (pDisp is IWebBrowser2)
{
try
{
var webBrowser = pDisp as IWebBrowser2;
var doc2 = webBrowser.Document as IHTMLDocument2;

var element = doc2.createElement("h1");
element.innerHTML = "Hello World";
element.setAttribute("style", "border: 1px solid red;", 1);

doc2.body.insertAdjacentHTML("beforeBegin", element.outerHTML);
doc2.close();
}
catch (Exception e)
{
MessageBox.Show("Plugin is not loaded properly.");
}
}
}
}




- Html Scraping With Java
One rainy Sunday afternoon since I can't get out to go somewhere I've decided to create an organized excel file (for now) for the list of birds commonly found in the Philippines. I found a good site to start with, http://www.birding2asia.com/tours/reports/PhilFeb2010_list.html,...

- Unable To Update The Entityset '' Because It Has A Definingquery And No
Problem: Unable to update the EntitySet '' because it has a DefiningQuery and no element exists in the element to support the current operation. Solution: This problem has been plaguing me again and again :-D. Usually when I'm working on...

- Iphone Command Line Tool Development, Working With Framework Classes
iPhone command line tool development, working with framework classes I was studying iPhone when I found this video tutorial and online exercises from Stanford University. I think they offered this course last 2009. So I'm gonna follow their videos,...

- Menu Contribution Location In Eclipse-rcp
There are 3 main location where a menu can be added (Menu Codes): 1.) menu - menu:org.eclipse.ui.main.menu 2.) toolbar - toolbar:org.eclipse.ui.main.toolbar 3.) popup - popup:org.eclipse.ui.popup.any To add a menu: 1.) open plugin.xml 2.) go to extension...

- This Article Explains Some Of The Browser Specific Stylesheet Hacks (like Ie Only, Firefox, Etc) That Can Be Used In Developing A Web Application On Different Browsers
Web UI design for beginners may be complicated than it seems specially if your developing cross browser application. For example building a web app compatible with firefox, ie6 and ie7. One ways is to simply load the appropriate css file using: <!--[if...



Tech-Today








.