Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

table inserting problem in fckeditor

Status
Not open for further replies.

walkerdigest

Programmer
Feb 10, 2009
35
TR
I have used following code. In fckeditor , when I insert table it creates problem. I have used 6.2.4 and 6.2.3 versions. But still same problem.
How can I solve this problem?



<%
kmt=request.Form("kmt")
dkfaaliyetraporu=request.Form("FCKeditor1")


if kmt="kaydet" then
Set YaziFSO=CreateObject("Scripting.FileSystemObject")
Set DosyaYaz=YaziFSO.CreateTextFile("c:\inetpub\ DosyaYaz.WriteLine(dkfaaliyetraporu)
DosyaYaz.close
end if

Set OkuFSO=CreateObject("Scripting.FileSystemObject")
Set DosyaOku=OkuFSO.OpenTextFile("c:\inetpub\ if not DosyaOku.AtEndOfStream then
icerik=DosyaOku.ReadAll
end if
DosyaOku.close
set OkuFSO= Nothing
set DosyaOku= Nothing
%>

<form action="denetimkurulu_fr_vt.asp" method="post">
<input type="hidden" id="FCKeditor1" name="FCKeditor1" value="<%=icerik%>" style="" />
<input type="hidden" id="FCKeditor1___Config" value="" style="display:none" />
<iframe id="FCKeditor1___Frame" src="/ssc_portal/fckeditor/editor/fckeditor.html?InstanceName=FCKeditor1&Toolbar=Default" width="100%" height="800" frameborder="0" scrolling="no"></iframe>
<input type="submit" value="kaydet" name="kmt" />
</form>
 
>Set DosyaOku=OkuFSO.OpenTextFile("c:\inetpub\wwwroot\ssc_portal\rapor\denetimkurulu.txt",1)
If the file does not exist (yet), it would be runtime error. Hence, add 3rd parameter to true so as to create one. Furthermore, initialize icerik to empty string to exclude all possible surprise if any.
[tt]
icerik=""
Set DosyaOku=OkuFSO.OpenTextFile("c:\inetpub\wwwroot\ssc_portal\rapor\denetimkurulu.txt",1[red],true[/red])
[/tt]
 
I have realized that after making any change and submitting (not only adding table)it creates problem.
I'm trying icerik always given. I want fckediyor always be opened what is saved previously.

At the beginning it displays all info from text file, when I make change and submit, it displays rest of changed lines before the editor.


What could be the problem?

But I'll try the changes you suggest...
 
>I want fckediyor always be opened what is saved previously.
Maybe this is what you mean.
[tt]
[red]'[/red]Set DosyaYaz=YaziFSO.CreateTextFile("c:\inetpub\wwwroot\ssc_portal\rapor\denetimkurulu.txt",2)
Set DosyaYaz=YaziFSO.CreateTextFile("c:\inetpub\wwwroot\ssc_portal\rapor\denetimkurulu.txt",[red]8[/red]) '8 for appending, 2 for writing (anew)
DosyaYaz.WriteLine(dkfaaliyetraporu)
[/tt]
 
sounds like a problem with fckededitor, take it up with their support.

as for WHY, where the table is being inserted, is the editor ripping chunks of code out, is it inserting the table HTML mid ASP tags, etc, etc, etc.


[thumbsup2]DreX
aKa - Robert
if all else fails, light it on fire and do the happy dance!
" I always think outside the 'box', because I'm never inside the 'loop' " - DreX 2005
 
I have discovered that when the text file contains ' , it creates problem. Otherwise it works fine.. Thanks for suggestions
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top