Bug in Comments link of admin page

Found a bug? Tell us!!
Post Reply
sweety
Regular
Posts: 42
Joined: Tue Jul 05, 2005 11:05 am

Bug in Comments link of admin page

Post by sweety »

Hi all,
I am using serendipity 0.8 and my browser is IE and my OS is windows XP.
When I click on 'comments' of admin side bar..i get the comments list and for comments which are large, a 'view' link is appearing below it.
and when I click on that 'view', the comment is not expanding and also ,I am getting the following error on the status bar...

Error: Object does not support this property or method

I explored the serendipity/include/admin/comments.inc.php file and I did not find any mistake in the code that belonged to this

Code: Select all

<a href="#c<?php echo $rs['id'] ?>" onclick="toggle(<?php echo $rs['id'] ?>); return false;" title="<?php echo VIEW; ?>" class="serendipityIconLink"><img src="<?php echo serendipity_getTemplateFile('admin/img/zoom.png'); ?>" alt="<?php echo VIEW; ?>" /><span id="<?php echo $rs['id'] ?>_text"><?php echo VIEW ?></span></a>

function toggle(id) {
    if ( document.getElementById(id + '_full').style.display == '' ) {
        document.getElementById(id + '_full').style.display='none';
        document.getElementById(id + '_summary').style.display='';
        document.getElementById(id + '_text').innerHTML = '<?php echo VIEW ?>';
    } else {
        document.getElementById(id + '_full').style.display='';
        document.getElementById(id + '_summary').style.display='none';
        document.getElementById(id + '_text').innerHTML = '<?php echo HIDE ?>';
    }
    return false;
}
Is there anyting else I need to check this problem?? Is this problem existing only for me?? Can I have any nearing solution to this?? :(
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Bug in Comments link of admin page

Post by garvinhicking »

Can you please try to use Firefox or Mozilla to check this? And open the Javascript console to get specific error messages?

The IE is not helpful in debugging...

Do you use serendipity 0.8 or 0.8.4?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
sweety
Regular
Posts: 42
Joined: Tue Jul 05, 2005 11:05 am

Post by sweety »

Hi Garvin,
Thanks 4 ur immediate reply...
I am using serendipity 0.8
and Mozilla and Firefox are not installed in my system and I cant do that since it is not my own system(administration issues)
any other alternatives??? :(
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Thanks for getting back to me.

It seems that "toggle" is a reserved word in IE, and the function won't work. Please edit your include/admin/comments.inc.php file and replace all occurence of "toggle(" to "FT_toggle(", then it should work.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
sweety
Regular
Posts: 42
Joined: Tue Jul 05, 2005 11:05 am

Post by sweety »

hi Garvin,
Thanks a ton for ur help.......it's working fine now...
:D
Post Reply