internet-explorer

javascript script not working and crashing IE

Hello, I have this script provided by @Felix Kling in this post HERE, but is crashing my IE when I use it; on FF 3.6, Opera, Chrome, Safari work fine. Any idea why is this happening? A fix maybe? var ajaxTimeout; function autorun() { if ($("#contactForm").is(":visible")){ if(ajaxTimeout) { clearInterval(ajaxTi...

Update an href on an IHTMLLinkElement

I need to update the contents of an href on an IHTMLLinkElement. What I've come up compiles but causes an error as soon as it's execute static const CComBSTR href(L"http://www.google.com"); spLinkElement->put_href(href); // IHTMLLinkElement The error I get is Program: C:\Program Files\Internet Explorer\IEXPORER.EXE File: c:\program ...

Is it possible for a JavaScript to rewrite itself?

I am developping an AJAX website. Now I've ran into some differences between Standard JavaScript and Microsoft's JavaScript dialect. For examle .textContent (standard) vs .text (microsoft) I could make two files, one for standard browsers and one for microsoft browsers, but if I make a change I need to do so twice, so, that's not an id...

Can I use c++ to traverse DOM from C# BHO?

Hi! I'm writing a Browser Helper Object (BHO) for Internet Explorer in C#! I want to look for text nodes in the DOM, which requires me to traverse the whole DOM tree if I want to differentiate between text nodes and other types of nodes. This is supposedly time consuming in C#, but should be almost instantanious in C++ (?). Is there a...