|
Access is denied JavaScript error
Last post 06-13-2007, 2:44 PM by jrbrady. 15 replies.
-
06-11-2007, 11:40 AM |
-
jrbrady
-
-
-
Joined on 03-21-2007
-
-
Posts 27
-
-
|
Access is denied JavaScript error
I just upgraded my ASP.NET site from ASP.NET 1.1 to 2.0. I changed the CuteSoft files from the Framework 1.1 to the Framework 2.0 version. Now, the editor will not load and I receive an "Access is denied" JavaScript error.
What's the deal with this?
TIA
James
|
|
-
06-11-2007, 12:31 PM |
-
06-11-2007, 12:47 PM |
-
jrbrady
-
-
-
Joined on 03-21-2007
-
-
Posts 27
-
-
|
Re: Access is denied JavaScript error
I have just done this and it made no difference. I still get the same error.
|
|
-
06-11-2007, 1:13 PM |
-
06-11-2007, 1:51 PM |
-
jrbrady
-
-
-
Joined on 03-21-2007
-
-
Posts 27
-
-
|
Re: Access is denied JavaScript error
Unfortunately, I can't provide you with the link since it's a password protected site.
Also, there's not much more information that I can provide you regarding the error message. When the page containing the Editor loads, the editor screen appears completely blank, with no tool bars or anything, and an indicator of a JavaScript error appears in the status bar. Double-clicking this indicator brings up JavaScript error dialog box. It says:
Line: 4
Char: 17891
Error: Access is denied.
Code: 0
URL: [URL to the page]
No errors or events are recorded in the Event Logs.
|
|
-
06-11-2007, 2:09 PM |
-
06-11-2007, 3:33 PM |
-
jrbrady
-
-
-
Joined on 03-21-2007
-
-
Posts 27
-
-
|
Re: Access is denied JavaScript error
I enabled script debugging in my browser, then, using VS 2005 to view the actual JavaScript error, I find that the error is occurring while executing the following code:
var editdoc=editwin[OxObcd6[0x5]]
in the file
[My URL]/CuteSoft_Client/CuteEditor/Load.ashx
|
|
-
06-11-2007, 3:50 PM |
-
06-12-2007, 1:24 PM |
-
jrbrady
-
-
-
Joined on 03-21-2007
-
-
Posts 27
-
-
|
Re: Access is denied JavaScript error
I, of course, don't have problems with the example in the link you provided, because it's running on your server, not mine, and the application running on my server is the one having the problem.
I don't know what you mean by "examples included in the download package".
I also don't know what exactly you're asking from me when you say "can you create a sample project showing the problems and send it to me".
I have given you the exact error message I'm getting and the exact statement on which the error occurs. I don't know what else you need. I can send you the .aspx document that is generating the error. FWIW, I put your Editor control onto another test page in my application, on my server, and it loaded with no difficulty.
|
|
-
06-12-2007, 3:18 PM |
-
-
06-13-2007, 11:29 AM |
-
jrbrady
-
-
-
Joined on 03-21-2007
-
-
Posts 27
-
-
|
Re: Access is denied JavaScript error
I need to get the issue resolved today. Do you have any updates on this situation?
|
|
-
06-13-2007, 12:17 PM |
-
06-13-2007, 1:29 PM |
-
jrbrady
-
-
-
Joined on 03-21-2007
-
-
Posts 27
-
-
|
Re: Access is denied JavaScript error
I have resolved this issue.
It apparently had something to do with the onFocus event of the <body> tag. Perhaps your control does not like to have the form it is on sent to a JavaScript function?
At any rate, I retooled the document so that this function is no longer necessary. I removed the onFocus event from the <body> tag, as well as the <script> tag link to my .js file, and the JavaScript error went away.
You might want to look into why your control behaves this way.
Thank you for your time.
James
|
|
-
06-13-2007, 2:23 PM |
-
06-13-2007, 2:44 PM |
-
jrbrady
-
-
-
Joined on 03-21-2007
-
-
Posts 27
-
-
|
Re: Access is denied JavaScript error
There is a {TAG} button( a.k.a. Image1), which is used to insert mail merge tags into the document; it has this attribute:
Image1.Attributes("onClick") = "var t = document.Form_ChooseLetter.txtSelectedTag.value; var e = CuteEditor_GetEditor(this); e.PasteHTML(t);"
The user has to select a tag, click on the place the document where they want to add the tag, then click the {TAG} button.
If there was some way to maintain the cursor position in the Editor document when the Editor control loses focus, this could be a one step process (i.e. click on the tag you want to add while editing the document). Is there?
James
|
|
|
|
|