[Javascript] xp sp2 ie help
Flavio Gomes
flavio at economisa.com.br
Tue Oct 5 10:57:45 CDT 2004
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.
>
> Try the above, If not can you post the code in question.
>
> Paul
>
> ----- Original Message ----- From: "Roger Roelofs" <rer at datacompusa.com>
> To: "[JavaScript List]" <javascript at LaTech.edu>
> Sent: Monday, October 04, 2004 8:49 PM
> Subject: Re: [Javascript] xp sp2 ie help
>
>
>> Paul,
>>
>> On Oct 4, 2004, at 10:14 AM, Paul McGuire wrote:
>>
>>> I have found that XP service pack 2 IE displays a little icon down
>>> the bottom saying its blocked some content. The user must click this
>>> and then agree that they are happy for this content to be allowed
>>> from this site from now on and it continues to work then.
>>>
>>> Paul
>>>
>>>
>>> ----- Original Message ----- From: "Roger Roelofs"
>>> <rer at datacompusa.com>
>>> To: "[JavaScript List]" <javascript at LaTech.edu>
>>> Sent: Monday, October 04, 2004 2:19 PM
>>> Subject: [Javascript] xp sp2 ie help
>>>
>>>
>>>> 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!
>>>
>>
>> Are you talking about the popup blocker? IE is actually throwing an
>> 'access denied' javascript error.
>>
>> Any other thoughts?
>>
>> Thanks!
>
More information about the Javascript
mailing list