I am saving some data like
<p>Hi</>
<p>Hello</>
in the database from fck editor. Then when i try to reopen it by fetching data from database it won't open in the editor and gives me an error.
The javascript that i am using to pass the data is as follows
<script type="text/javascript">
85 var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
86 var oFCKeditor = new FCKeditor( 'card_discription' ) ;
87 oFCKeditor.BasePath = sBasePath ;
88 oFCKeditor.Height = 300 ;
89 oFCKeditor.Value = "<p>Hi</p>
90<p>Hello</p>" ;
92 oFCKeditor.Create() ;
93 </script>
now since the first line hasn't terminated (line 89) the JavaScript gives me string terminated unsuccessfully error (as there is more text in line 90). Any pointers will be helpful. I know this is not the best place to ask this question but the time constraint is such that i have pasted it at all places where i can get a solution.
Thanks in advance
Abhinav
<p>Hi</>
<p>Hello</>
in the database from fck editor. Then when i try to reopen it by fetching data from database it won't open in the editor and gives me an error.
The javascript that i am using to pass the data is as follows
<script type="text/javascript">
85 var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
86 var oFCKeditor = new FCKeditor( 'card_discription' ) ;
87 oFCKeditor.BasePath = sBasePath ;
88 oFCKeditor.Height = 300 ;
89 oFCKeditor.Value = "<p>Hi</p>
90<p>Hello</p>" ;
92 oFCKeditor.Create() ;
93 </script>
now since the first line hasn't terminated (line 89) the JavaScript gives me string terminated unsuccessfully error (as there is more text in line 90). Any pointers will be helpful. I know this is not the best place to ask this question but the time constraint is such that i have pasted it at all places where i can get a solution.
Thanks in advance
Abhinav