Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
[SOLVED] full story in source code

 
Reply to topic    Forum Index » Bugs and errors View previous topic
View next topic
[SOLVED] full story in source code
Author Message
Mania



Joined: 03 Feb 2007
Posts: 105

Post [SOLVED] full story in source code Reply with quote
hi
i use deactive the comment and remove all comment form in Template.
my page is valid XHTL, but if click more to full story is Invalid because this code is in source code

Code:
<script type="text/javascript">
function insertext(open, close, spot){
   msgfield = document.forms['comment'].elements['comments'];

   // IE support
   if (document.selection && document.selection.createRange){
      msgfield.focus();
      sel = document.selection.createRange();
      sel.text = open + sel.text + close;
      msgfield.focus();
   }

   // Moz support
   else if (msgfield.selectionStart || msgfield.selectionStart == '0'){
      var startPos = msgfield.selectionStart;
      var endPos = msgfield.selectionEnd;

      msgfield.value = msgfield.value.substring(0, startPos) + open + msgfield.value.substring(startPos, endPos) + close + msgfield.value.substring(endPos, msgfield.value.length);
      msgfield.selectionStart = msgfield.selectionEnd = endPos + open.length + close.length;
      msgfield.focus();
   }

   // Fallback support for other browsers
   else {
      msgfield.value += open + close;
      msgfield.focus();
   }

   return;
}
</script>

<form name="form" method="post" id="comment" action=""><input type="hidden" name="action" value="addcomment">
<input type="hidden" name="id" value="2">

<input type="hidden" name="ucat" value="1">
</form>   

how can fix taht?
fix:
///////////////////////////////////////////////////////////////////////////////////////////

change this in inc/showcommentform.php line 45
Code:
if (document.selection && document.selection.createRange){

to this
Code:
if (document.selection &amp;&amp; document.selection.createRange){

is VALID
////////////////////////////////////////////////////////////////////////////////////////////////
thanx this article to
http://forums.cutenewsru.com/tut-kill-tables-make-valid-xhtml-t790.html
Smile
Sat Jun 07, 2008 5:18 pm View user's profile Send private message
Guest








Please login to hide the ads.

Display posts from previous:    
Reply to topic    Forum Index » Bugs and errors All times are GMT + 1 Hour
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.