Opened 16 years ago

Closed 15 years ago

#1544 closed Bug (invalid)

Permission Denied

Reported by: Mayank Parmar Owned by:
Priority: Normal Milestone:
Component: General Version: FCKeditor 2.5 Beta
Keywords: Pending Cc:


I get this error only some time and also can't findout the reason why it is coming. Because sometimes it comes too quickly and sometimes it never appears. I am professional developer and I have spent too much time to resolve this error. Now me and also my client is fruastated as after spending lot of time I haven't got solution. I am giving all my code below. Please check and advice.

I have 2 pages : CreateLetter.aspx and Selection.aspx

on CreateLetter.aspx I have FCKeditor <fckeditorv2:fckeditor id="FCKeditor1" runat="server" BasePath="~/FCKeditor/" Height="500px"></fckeditorv2:fckeditor>

and also one button <input id="inpbtnInsertMerge" type="button" value="Insert Merge Field" onmousedown="test()" />

and here is JavaScript for this page : <script type="text/javascript" language="javascript">

function test() {

var FCK = FCKeditorAPI.GetInstance('<%=FCKeditor1.ClientID %>') ; FCK.InsertHtml('{u_mergefield}'); delete FCK;'Selection.aspx',null,"left=300,top=100,height=400,width=200,status=yes,titlebar=no,toolbar=no,menubar=no,location=no"); newwin.focus();



Simply saying I am adding string "{u_mergefield}" in FCKeditor at cursor position on clicking of that button. And open second page as pop up.

On second page I am giving him selection of words to replace that word "{u_mergefield}".

It has 2 buttons for that.

<input id="inpbtnFianl" type="button" value="Update" onclick="update();" /> <input id="inpbtnCancel" type="button" value="Cancel" onclick="cancel();" />

and here is javascript for that

function update() {

var FCK = window.opener.FCKeditorAPI.GetInstance('ctl00_cph_FCKeditor1') ; var str = FCK.GetXHTML( true ); if(document.getElementById('Radio1').checked) {


} else if(document.getElementById('Radio2').checked) {


} else if(document.getElementById('Radio3').checked) {


} else if(document.getElementById('Radio4').checked) {


} else if(document.getElementById('Radio5').checked) {


} else if(document.getElementById('Radio6').checked) {


} else if(document.getElementById('Radio7').checked) {


} else if(document.getElementById('Radio8').checked) {


} else if(document.getElementById('Radio9').checked) {


} else if(document.getElementById('Radio10').checked) {


} else if(document.getElementById('Radio11').checked) {


} else if(document.getElementById('Radio12').checked) {


} else if(document.getElementById('Radio13').checked) {


} else if(document.getElementById('Radio14').checked) {


} else {


} FCK.SetHTML(str); delete str; delete FCK; window.close(); return(false);

} function cancel() {

var FCK = window.opener.FCKeditorAPI.GetInstance('ctl00_cph_FCKeditor1') ; var str = FCK.GetXHTML( true ); str=str.replace(/{u_mergefield}/g,""); FCK.SetHTML(str); delete str; delete FCK; window.close(); return(false);


Now from the main when I click button "Insert Merge Field" it opens pop up and from here it updates that word on clicking "update" as per selectio. If I do same process for 4 or 5 times. It works perfectly but after some tries when I click "Update" button from Selection.aspx it gives that "Permission Denied" as JavaScript error in "CreateLetter.aspx" page.

It is also unbelievable for me that the error comes only some time and not some time. But it happens. If you want to see I can send you screen shots or screen recorded video.

Please give some time for this and please reply.

Thanks in advance.

Regards, Mayank Parmar Software Developer

mayank.parmar@… Clarion Technologies SEI CMMI Level 3 Company

4th Floor, Great Eastern Plaza, Airport Road, Pune- 411 006, Maharashtra, India. Mobile: +91 9763210521

Change History (3)

comment:1 Changed 16 years ago by Frederico Caldeira Knabben

Keywords: Permission Denied removed
Milestone: FCKeditor 2.5
Priority: HighNormal

comment:2 Changed 16 years ago by Frederico Caldeira Knabben

Component: Server : ASP.NetGeneral
Keywords: Pending added

Unfortunately such kinds of bug reports are quite difficult to handle, because it involves creating files for testing, and understanding the test procedure in a long message. You should be able to give an simpler report by attaching the related files, saying: open this, do this and that will happen.

In any case, the logic for this function implementation is quite strange. Why not simply calling InsertHtml directly from Selection.aspx, instead of inserting a temporary placeholder that will then be replaced later with the proper entry?

Anyway, can you still reproduce this problem with version 2.5.1?

comment:3 Changed 15 years ago by Wojciech Olchawa

Resolution: invalid
Status: newclosed

Ticket expired.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy