[Javascript] xp sp2 ie help

Roger Roelofs rer at datacompusa.com
Tue Oct 5 11:19:31 CDT 2004


Thank you Paul and Flavio

I think Flavio is on the money.  His suggestion gave me a couple of 
ideas.  I'll code them up tonight and let you know.

On Oct 5, 2004, at 11:57 AM, Flavio Gomes wrote:

> Roger,
>
>  My idea would be a bit different, it's just a guess (got no IE6.SP2 
> to try), but may work.
>  I got some "acess denied" when trying to mess with "crossdomain"  
> scripting, and as JScript is crazy, probably now it's saying "access 
> denied" because "file://" is a different domain from yours site's 
> domain. Try something like this:
>
>   ===============
>      <script>
>         function previewImage(oImage)
>         { var tmpWindow = window.open('','_blank',''); //<-- put your 
> desired window attributes here
>            tmpWindow.document.write('<body leftmargin=0 topmargin=0 
> rightmargin=0 bottommargin=0><img src="' +oImage+ '">');
>            return false; //or true.. I dunnow ^^}
>      </script>
> ===============
>
> Tell me if it worked, owk?
>
> ---
> Flavio Gomes
> flavio at economisa.com.br
>
> Paul McGuire wrote:
>
>> This probably means that you are trying to reference an object such 
>> as a frame or a div tag before it has been created. Maybe IE 6 is now 
>> rendering the page quicker or differently and the object you are 
>> refering to has yet to be drawn. Try moving your Javascript further 
>> down the page. If it will go at the bottom put it there.
>>
>> Paul
>>>>
>>>>> Hi list,
>>>>>
>>>>> I have a site where users need to upload photos.  Many of the 
>>>>> users are not comfortable with their computers.  In order to make 
>>>>> their lives easier, I implemented a 'view' button so they could 
>>>>> view their photos before uploading them.
>>>>>
>>>>> This feature works by extracting the path to the image file from 
>>>>> the file upload control and using it to create a file:// url which 
>>>>> is passed to an open window javascript call.  Users had to make us 
>>>>> a 'trusted site' in ie6, but it was a useful enough feature that 
>>>>> many of our users did so.
>>>>>
>>>>> After installing service pack 2, this feature no longer works 
>>>>> (except in AOL).
>>>>>
>>>>> Is there a workaround (besides recommending AOL ;-) ) ?
>>>>>
>>>>> Thanks!

Roger
-------------------------------------------------------
Roger Roelofs                 web   www.datacompusa.com
Datacomp Appraisal Services   web   www.mhvillage.com
3215 Eaglecrest Drive, NE     Email rer at datacompusa.com
Grand Rapids, MI  49525-4593 
  




More information about the Javascript mailing list