internet-explorer

InternetExplorer automation object + PerformanceCounter = not working?

Hi, I'm currently trying to build a simple component which should monitor, if the user opens a window with a specific url (IE only). So I wrote this component and everything works fine, so I intergrated it with the application, where it was needed. The problem is, in this application PerformanceCounters are used, and these seem to distu...

Baffled by an XPath issue on IE

David Flanagan's excellent book on JavaScript has an example that shows how to perform XPath queries in IE. On page 518 of fifth edition, you can see the following code snippet taken from example 21-10: // In IE, the context must be an Element not a document, // so if the context is a document, use the documentElement instead if (contex...

Modify HTML in a Internet Explorer window using external.menuArguments

Hi all... I've a vb.net class that is invoked with a context menu extension in Internet Explorer. The code has access to the object model of the page, and reading data is not a problem. This is the code of a test funcion... it changes the status bar text (OK), prints the page html (OK), changes the html by adding a text and prints aga...

What is the best way to determine the source of a CSS issue.

Hello, I have been working on a webpage. It is the first I have actually tried to design using an image and then use proper CSS layout rather than tables. http://www.roccocammisola.com/proj/brunel/bgimage.html I have been having issues with the shadows on either side of the main content area. Of course these are only an issue in IE. A...

"Autocomplete off" not working in IE - ASP.Net

Question: Is there any reason Autocomplete=off on a ASP:Textbox would not be working in IE 7? In case this is the best term for it, the IE Autocomplete feature is that drop down list like thing that drops down from textboxes and shows you past things you have typed in. I need the IE Autocomplete feature to not work at this point for a ...

Sending Emails as a "batch execution job"

I do not have any experience in web based development(neither client side nor server s ide code). since long time i had a question as to if anything like below is possible to do: 1.) I have say 10 attachments 1.zip to 10.zip on my desktop. 2.) I need to send all of these as an attachment using any web based email (I need to send out th...

A Possible Threading/COM/UI problem

Hello, I am writing a toolbar for IE(6+). I have used the various sample bars from codeproject.com (http://www.codeproject.com/KB/dotnet/IE_toolbar.aspx), and have a toolbar that works, registers unregisters etc. What I want the toolbar to do is to highlight divs within an html page as the users' mouse moves over that div. So far the ...

Internet Explorer 7 Ajax links only load once

I'm writing an application and I'm trying to tie simple AJAX functionality in. It works well in Mozilla Firefox, but there's an interesting bug in Internet Explorer: Each of the links can only be clicked once. The browser must be completely restarted, simply reloading the page won't work. I've written a very simple example application th...

Setting OnLoad event for newly opened window in IE6

Hey folks- I need to set the onload attribute for a newly popped-up window. The following code works for Firefox: <a onclick="printwindow=window.open('www.google.com');printwindow.document.body.onload=self.print();return false;" href='www.google.com'> However, when I try this in IE, I get an error - "printwindow.document.body null or ...

How to manage full screen in IE via automation? (Flash player like)

Hi, I'm facing a problem with IE7 full screen mode. Got an app lying in an activeX embedded in IE. Until IE6, we managed fullscreen via IWebBrowser2::put_FullScreen(bool bIsFull) which was good and well. But since IE7, it seems that this trick is deprecated, as it looses the tab bar on the way back from fullscreen. One soluti...

HTML: Why does embedded audio sometimes fail to play?

I am experiencing some strange behavior of embedded audio (wav file) on HTML page. I've got a page https://server.com/listen-to-sound, and a Wav file embedded in it via <EMBED/> tag, like this: <embed src='https://server.com/path-to-sound' hidden="true" autostart="true" /> The page https://server.com/listen-to-sound is opened in IE 6 ...

Team City problem with unstopped instance of IE during watin test

We are using Team City and I noticed problem during running Watin test. Sometimes some instance of IE randomly just don't stop in task manager on build server, even if test closes all opened instances. This causes failure of all tests that follows. We tried with script that kills all instances of ie before this test starts runing, but th...

Evaluate a css expression only in IE<7 w/out using conditional comments?

I already know: "Don't use css expressions!" My question is not about whether I should be using an expression or if there is an alternative; my question is simply: Can I get a css expression to only be evaluated in versions of IE prior to version 7 without using conditional comments? I occasionally use an underscore hack to hide a rule...

How to get image transparency working on IE

I have a GIF image that has an alpha set, and when my site loads in Firefox 3.0, it acts transparently on the parts of the image that should. However, when I try to load the GIF image in IE7, it comes back as a solid block. Actually, it is like the color from the image bled into the transparent area. Do anyone have any suggestions for...

IE CSS Fieldset border extends too far to the right: Why??

I have defined a fieldset in HTML, and applied the following (simple) CSS rules to it: fieldset { margin: 2em 0; position:relative; padding: 1em; border:1px solid #ccc; } Everything is great, no big deal, except in all versions (well, up to 7 as far as I know) of IE the top border -- but not, interestingly, the bottom ...

Strange treatment of "plus" character (+) by Internet Explorer 7

This is really weird... When I open the following simple HTML document in Internet Explorer 7.0.5730.11 (on Windows Server 2003 Web Edition SP2) <html> <body> <p>+</p> </body> </html> it shows me a totally blank page. FWIW, this is just a trivial "repro" sample. In real HTML documents, I observed other, even more bizzarre effe...

How to control toolbar location in IE addon (BHO)

I'm trying to develop an Internet Explorer 7 addon using "Browser Helper Objects" (BHO). The goal is to have a standard IE toolbar with some buttons and one custom control. I would like to develop it in .NET I started from the baseline sample here. This works fine but... How to control where in the browser the toolbar will show? Curre...

Internet explorer creates horizontal scrollbar for vertical scrollbar's width

A div, containing a table has the following CSS styling: #formulaAlts{ float: right; height: 200px; overflow: auto; } This makes it so that when the table is >200px, a scrollbar appears only for the table and the other elements on the page stay put. Great! Now for our friend IE... In IE, the element spawns the vertical...

Weird IE & Javascript issue

So I'm creating some HTML using javascript based on where the user clicks on the page. On page load the script replaces an empty div with a ul and some data. The user clicks on that data to receive more and so on. Now when the user navigates off the page and then hits the back button to go back to the page, IE displays a blank page with ...

Best way to read/set IE options?

What is the best way to read and/or set Internet Explorer options from a web page in Javascript? I know that these are in registry settings. For example, I'm using the JavaScript Diagram Builder to dynamically generate bar charts within a web page. This uses the background color in floating DIVs to generate the bars. I would like to ...