<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body style='font-family: Verdana,Geneva,sans-serif'>
<p>You can ignore the scriptaculous bits (that's a rather aging library that does stuff like collapsing/transitions etc).</p>
<p>I think the issues (insertBefore, removeChild) are caused by missing elements: the javascript files expect a certain structure in the HTML and it can't find it. They may be some <div> with specific ID's etc. Anyways, it's likely that your changes in Documents have changed the DOM structure thus breaking the javascript. </p>
<p>That's my guess anyway - if you have the patience you may compare a working version of the documents uploader/page/content with your broken one and you may find out which elements are missing.</p>
<p>Seb</p>
<p> </p>
<p>On 06.11.2014 14:59, Lizz Jennings wrote:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->Uncaught TypeError: Cannot read property 'insertBefore' of null auto-3.3.12.js:13005 (which is 89_component_documents.js)<br /> Effect.SlideUp.afterFinish auto-3.3.12.js:13005 (which is 89_component_documents.js)<br /> Effect.Base.Class.create.event auto-3.3.12.js:7484 (which is 30_scriptaculous_02_effects.js)<br /> Effect.Base.Class.create.loop auto-3.3.12.js:7465 (which is 30_scriptaculous_02_effects.js)<br /> Effect.ScopedQueue.Class.create.loop auto-3.3.12.js:7400 (which is 30_scriptaculous_02_effects.js)<br /><br /> Uncaught TypeError: Cannot read property 'removeChild' of null auto-3.3.12.js:2172 (which is 20_prototype.js)<br /> remove auto-3.3.12.js:2172 (which is 20_prototype.js)<br /> _methodized auto-3.3.12.js:461 (which is 20_prototype.js)<br /> Effect.SlideUp.afterFinish auto-3.3.12.js:13004 (which is 89_component_documents.js)<br /> Effect.Base.Class.create.event auto-3.3.12.js:7484 (which is 30_scriptaculous_02_effects.js)<br /> Effect.Base.Class.create.loop auto-3.3.12.js:7465 (which is 30_scriptaculous_02_effects.js)<br /> Effect.ScopedQueue.Class.create.loop auto-3.3.12.js:7400 (which is 30_scriptaculous_02_effects.js)<br /><br /><br /> I've tried fiddling about with 89_component_documents (as I'd made my other changes to the Documents.pm file in Components), but without success. I'm not even sure what scriptaculous means let alone what it might do....<br /><br /> Lizz<br /><br />
<div class="moz-cite-prefix">On 06/11/2014 14:36, sf2 wrote:</div>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px">
<p>Any errors in your browser's console? That should get you started.</p>
<p>Seb</p>
<p>On 06.11.2014 13:51, Lizz Jennings wrote:</p>
<blockquote style="padding-left: 5px; border-left: #1010ff 2px solid; margin-left: 5px;"><!-- node type 8 --><!-- node type 8 --><!-- node type 8 -->
<pre>Hello all,
I've been adapting the document listings to group documents by type so
that they can be displayed with their relevant upload box. This works
lovely when you load the edit screen, but after that, behaviour becomes
more erratic:
1) When I upload a file, even though the type is set at upload, it
lists in all documents lists on the page
2) When I click on the Files icon to look at e.g. the MD5 checksum,
then press cancel, it loads any documents it can find regardless of
type, although sometimes doesn't load the ones you were just looking at
or seems only to recognise some of the documents.
I can get it to not display the items' content but still get stuck with
empty boxes.
I think it's something in the javascript, but I'm out of ideas on where
to look for the code that's generating these refreshes.
Any ideas?
Lizz
</pre>
</blockquote>
<p> </p>
<div> </div>
<br /><fieldset class="mimeAttachmentHeader"></fieldset><br />
<pre>*** Options: <a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a>
*** Archive: <a class="moz-txt-link-freetext" href="http://www.eprints.org/tech.php/">http://www.eprints.org/tech.php/</a>
*** EPrints community wiki: <a class="moz-txt-link-freetext" href="http://wiki.eprints.org/">http://wiki.eprints.org/</a>
*** EPrints developers Forum: <a class="moz-txt-link-freetext" href="http://forum.eprints.org/">http://forum.eprints.org/</a>
</pre>
</blockquote>
<br />
<pre class="moz-signature">--
Lizz Jennings BA MSc ACLIP MCLIP (Revalidated 2014)
Technical Data Officer
The Library 4.10, University of Bath, Bath, BA2 7AY UK
Ext. 3570 (External 01225 383570)
<a class="moz-txt-link-abbreviated" href="mailto:E.Jennings@bath.ac.uk">E.Jennings@bath.ac.uk</a></pre>
<!-- html ignored --><br />
<pre>*** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a>
*** Archive: <a href="http://www.eprints.org/tech.php/">http://www.eprints.org/tech.php/</a>
*** EPrints community wiki: <a href="http://wiki.eprints.org/">http://wiki.eprints.org/</a>
*** EPrints developers Forum: <a href="http://forum.eprints.org/">http://forum.eprints.org/</a>
</pre>
</blockquote>
<p> </p>
<div> </div>
</body></html>