Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows VistaWindows XPWindows MeWindows 98Windows 95Virtual PCInternet ExplorerOutlook ExpressWindows MediaSecurity
Related Topics
MS Server ProductsMS OfficePC HardwareMore Topics ...

Windows Forum / Internet Explorer / General Topics / June 2008

Tip: Looking for answers? Try searching our database.

Javascript error occuring on new build machine

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
KevinS - 23 Jun 2008 11:50 GMT
All,

My company is rolling out new windows laptops.

One of the in-house apps is generating a javascript error on the new
laptops.

On the face of it the set up is the same (Windows XP, IE6 with SP2).

The error message is 'permission denied'.

Before I start debugging the application and changing code, can anyone
point me in the direction of what I should be checking, firstly for
possible differences in the set up and secondly of other issues I
should be considering with I perhaps am not aware of?

Thanks
Robert Aldwinckle - 23 Jun 2008 16:15 GMT
> All,
>
[quoted text clipped - 6 lines]
>
> The error message is 'permission denied'.

> Before I start debugging the application and changing code,

> can anyone point me in the direction of what I should be checking,

Run  ProcMon.

> firstly for possible differences in the set up and secondly of other issues I
> should be considering with I perhaps am not aware of?
>
> Thanks
KevinS - 23 Jun 2008 17:13 GMT
Having downloaded and installed procman, I am a blinded by the amount
of data given, an issue heightened by the fact that I am a developer
rather than a systems administrator.

Any clues so I can sort the wheat from the chaff?

Thanks
Robert Aldwinckle - 23 Jun 2008 21:22 GMT
> Having downloaded and installed procman, I am a blinded by the amount
> of data given, an issue heightened by the fact that I am a developer
> rather than a systems administrator.
>
> Any clues so I can sort the wheat from the chaff?

Use  right-click  Include on an  iexplore.exe  item to filter out
all the other tasks.

However, if you are getting a permissions problem you may be able
to find it directly simply by doing a  Ctrl-F  find for  Denied  (etc.)

> Thanks

Good luck

Robert
---
KevinS - 25 Jun 2008 11:50 GMT
OK.

I think I have the hang of this thing now however there are now logs
which have permission denied.

The more I search the internet for more information, the more it seems
that this issue is to do with the Same Origin Policy.

The design off the application at this point involves a web page with
a button which when selected produces a modal dialog for the user to
select a value from, which is then returned to the calling page.

The problem appears to be that the value gets set in a javascript file
in the page
        <<HomeDir>>\Jscript\Custom
using the code
        oReturn = window.showModalDialog("dialogs/location/location.asp",
oArguments, "dialogHeight:480px; dialogWidth:640px;")
        if (oReturn!=-1)

The error occurs on the if statement.

Does anyone know if the Home Directory can be used to override the
Same Origin Policy?
Robert Aldwinckle - 25 Jun 2008 17:03 GMT
> OK.
>
> I think I have the hang of this thing now however there are now logs
> which have permission denied.

In order to figure out whether they have anything to do with your symptom
you could try checkpointing the process with prompts or breakpoints.
Then you would notice those delays in the timestamps of the trace.
E.g. rudimentary prompting can be done simply by setting the Active Scripting
Security setting to Prompt and allowing it each time.   Alternatively, you
could invoke a script debugger and get a more precise idea of what
is happening when your error message is issued.

> The more I search the internet for more information, the more it seems
> that this issue is to do with the Same Origin Policy.
[quoted text clipped - 15 lines]
> Does anyone know if the Home Directory can be used to override the
> Same Origin Policy?

You may be in the wrong newsgroup, if looking for help at that level.
Try the MSDN forum for IE Web Development instead.   Unfortunately
there is no newsgroup interface for it so I can't cross-post.

Good luck

Robert
---
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.