internet-explorer

Downloading file using IE from python.

I'm trying to download file with Python using IE: from win32com.client import DispatchWithEvents class EventHandler(object): def OnDownloadBegin(self): pass ie = DispatchWithEvents("InternetExplorer.Application", EventHandler) ie.Visible = 0 ie.Navigate('http://website/file.xml') After this, I'm getting a window asking...

How to open IE from java and perform operations like click() etc. through java?

I wan't to login to a website through Java and perform operations, like click, add text to a textfield, etc., through Java. ...

JS exception in a JSP running on WebSphere 6.1

Hi All, I have popup searcher in my application which lists the available record as hyperlink. Onclick of these links we are populating a textbox with the value. The popup is opened using window.open method. The hyperlinks in the searcher looks like this: When I invoke the searcher with IE's debugging enabled I am getting an error at...

Is there a way to capture/override Ctrl-R or F5 on IE using Javascript?

I want to capture the Ctrl-R or F5 shortcut on the browser to prevent it from performing a browser refresh, but instead perform a custom refresh. I was able to capture Ctrl-R on Safari and FF using: document.onkeypress = function(e){ if ((e.ctrlKey || e.metaKey) && e.keyCode == 114) // Ctrl-R e.preventDefault(); } But that...

Difference between http://example.com and http://www.example.com?

For sessions and cookies, is there a difference between example.com and www.example.com? I have a very strange problem with our web application The privat web is: private.example.com The public web is: example.com For some reasons outside my control www.example.com is allways redirected to example.com I guess this is the setup on the ...

tab links not workinh in internet explorer but working fine in firefox.

i coded a header file which includes some of tabs.this header file is include in jsps of website.in two jsp pages tabs are not working in internet explore but in other jsps its working fine.in firefox each tabs are working fine in each jsps. below is code section of jsp in which header is included. <!-- Header Start --> <!-- sta...

How to determine the Window size in IE for a window to be opened from the COM API?

I'm using the IE control embedded in an application. Works as advertised. When a user opens a new browser window I intercept the NewWindow2 event and force it into a new tab. However for a certain class of windows I want to allow a popup. Most notably a few windows legacy applications that use popup windows instead of Ajax for Date or Na...

Javascript, how to retrieve ALL properties of a literal object in IE

Hi, i have a literal object like this var O={ toString:function(){ // some code here }, anotherMethod:function(){ // some code here } } Im walk through object with for-in loop for(var p in O){ // some stuff with p and O[p] } The problem is toString property will not catch in the loop on IE browser! ...

XMLHTTP Not working properly in ie8

Hello everyone, in my application i am using xmlhttp, which is called by a function after a time interval say 3 second. The problem is that everything is going well in Chrome and Mozila firefox but in Ie8, some times it works ans sometime its not, and when it worked in I8 (sometime) then it takes long time rather than i set the interva...

How to change color of disabled html controls in IE8 using css

I'm trying to change the color of input controls when they are disabled using the following css. input[disabled='disabled']{ color: #666; } This works in most browsers, but not IE. I'm able to change any of the other style properties such as background-color, border-color, etc... just not color. Can anyone explain this? ...

how to make Javascript shortcut in all browser.

I'm trying to make shortcut with javascript. It works with FF but not with IE8. I'm using this code - document.onkeydown=function(e) { if(e.which == 83) { alert("hello"); } } Please give me a simple code which will support all browsers. Thanks ...

CSS Div floats to the left of the page?

Hi I have many pages, all with the same div and the same css applied to them all... but for some reason three of these pages, the container just floats left of the page? It looks fine in Safari/FF but in IE these pages just float the div left? I think the other browsers might be compensating for this error, but IE not? Any ideas :( ...

Internet Explorer 8 and Checkbox CSS Problem

Hello all, I'm currently having problems with Internet Explorer 8 ignoring padding/line-heights that I have on a list which includes a check box. To start off here is my CSS and XHTML markup here, the issue occurs with the list element which includes Private. At the moment Firefox 3, Internet Explorer 7, Safari 3, Google Chrome render...

C# for Java/*nix programmers.

I am mainly a java programmer, using linux/os x for as long as i remember. I am extremely comfortable in emacs and usually prefer doing things through command line. I need to create a internet explorer addon for our next project. I need to intercept url ie is about to download and if they meet certain criteria pass it to our application...

Listening to HTML Events from BHO

I've been working on a BHO/toolbar written in C# that listens to HTML events raised on the browser's current webpage. The solution includes a reusable class called HtmlPageEventManager whose purpose is to subscribe to a given list of HTML events for each new webpage that's opened. A goal is to attach handlers as soon as the user can be...

Why does ColorBox does not appear in Internet Explorer?

I am using ColorBox to show details of events on a calendar. The address to view it is http://www.idea-palette.com/greatoppseventcal/calendar6.php In firefox, when the user clicks on a day with an event, the lightbox opens and displays the event information from the database. In Internet explorer, when the user clicks on a day with a...

IHTMLSelectionObject.createRange() throws UnauthorizedAccessException

I wrote the following code for retrieving the selected text from the current webpage: IHTMLDocument2 mainDoc = ... for ( int i = 0; i < mainDoc.frames.length; i++ ) { object refIndex = i; var frame = (IHTMLWindow2)mainDoc.frames.item( ref refIndex ); IHTMLDocument2 frameDoc; try { frameDoc = frame.document; } ca...

strict doctype causeing css jquery problems in ie

I use this code: http://blogswizards.com/plugin-development/sliding-boxes-and-captions-with-jquery On a simple gallery site I am building. Specifically I use the last effect: //Caption Sliding (Partially Hidden to Visible) $('.boxgrid.caption').hover(function(){ $(".cover", this).stop().animate({top:'185px'},{queue:false,durat...

[C++] BHO Handle OnSubmit event

Basically I want to develop a BHO that validates certain fields on a form and auto-places disposable e-mails in the appropriate fields (more for my own knowledge). So in the DOCUMENTCOMPLETE event I have this: for(long i = 0; i < *len; i++) { VARIANT* name = new VARIANT(); name->vt = VT_I4; name->intVal = i; VARIANT* id ...

document.selection in Javascript

I need to know what is the use of following code: var obj=document.selection.createRange(); obj.moveStart('character', count); From what I understand, obj will have the selected text. What is moveStart is used for..? ...