forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: Silmarillion on December 12, 2004, 07:06:21 pm

Title: Javascript error
Post by: Silmarillion on December 12, 2004, 07:06:21 pm
I did a search and couldn't find anything addressing this, although I did find the answer to a second question I had.  :)

When I try to edit a picture's description via clicking the "Edit the Description" link under the pic in the gallery, I get this error:

Java Script Error

Description: Object Expected
Source:http://galleries.ufrealms.net/editOnePic.php?id=489&what=picture
Line:250


Line 250 is actually just a closing table row.

But, the whole row code near it is this:
   
Code: [Select]
      <tr>
                        <td class="tableb" valign="top" style="white-space: nowrap;">
                                {$lang_editpics_php['desc']}
                        </td>
                        <td class="tableb" valign="top">
                                <textarea name="caption" rows="5" cols="40" class="textinput" style="width: 100%;" onkeydown="textCounter(this, {$CONFIG['max_img_desc_length']});" onkeyup="textCounter(this, {$CONFIG['max_img_desc_length']});">{$CURRENT_PIC['caption']}</textarea>
                        </td>
        </tr>

I haven't bothered the scripts.js file, but I have made changes to the css file.   
Title: Re: Javascript error
Post by: Joachim Müller on December 13, 2004, 07:58:09 am
http://galleries.ufrealms.net/ is down for me. Therefor can't test anything. Make sure scripts.js is there and as well make sure there's a line in themes/yourtheme/template.html that refers to scripts.js

Joachim
Title: Re: Javascript error
Post by: Silmarillion on December 14, 2004, 01:24:44 am
Thank you for trying.   :)  I don't know why the site was down when you tried, but it's up now. 

I checked the scripts.js file and the reference to it in the template.html.  Both are present.
Title: Re: Javascript error
Post by: kegobeer on December 14, 2004, 02:03:50 am
If you switch to the classic Coppermine theme, do you still get the errors?