[ZendTo] Re: JS Error

--[ UxBoD ]-- uxbod at splatnix.net
Tue Sep 20 20:20:12 BST 2011


Have just installed 3.08 and that resolved the problem, Jules :) Cheers. 
-- 
Thanks, Phil 

----- Original Message -----

> And I just tried the new Smarty 3.1.0. That seems to work fine for me
> too.

> Jules.

> On 20/09/2011 17:17, --[ UxBoD ]-- wrote:
> > <td class="UD_form_lined"><a class="hoverlink" href="#"
> > onclick="doPickup('XXXXXXXXXXXXXXX');"><tt>H5n2JWmkzSYpbf3j</tt></a></td>
> 
> > <td class="UD_form_lined">XXXXXXXXXXXXXXXXXX</td>
> 
> > <td class="UD_form_lined">XXXXXXXXXXXXXXXXXXX<br></td>
> 
> > <td class="UD_form_lined">5.8 KB</td>
> 
> > <td><div style="white-space:
> > nowrap"><tt>20&nbsp;Sep&nbsp;2011&nbsp;03:24:34 PM</tt></div></td>
> 

> > --
> 
> > Thanks, Phil
> 

> > ----- Original Message -----
> 

> > > When you changed it to {$d.formattedBytes}, what HTML did it
> > > produce?
> > 
> 

> > > On 20/09/2011 16:35, --[ UxBoD ]-- wrote:
> > 
> 
> > > > ----- Original Message -----
> > > 
> > 
> 

> > > > > Jules,
> > > > 
> > > 
> > 
> 

> > > > > I changed that line to be:
> > > > 
> > > 
> > 
> 

> > > > > <td class="UD_form_lined">{$d.formattedBytes}</td>
> > > > 
> > > 
> > 
> 

> > > > > and now there are no issues. It is something in the replace
> > > > > that
> > > > > causes the rest of the form not to be processed/displayed and
> > > > > hence
> > > > > the document name does not get defined.
> > > > 
> > > 
> > 
> 
> > > > > --
> > > > 
> > > 
> > 
> 
> > > > > Thanks, Phil
> > > > 
> > > 
> > 
> 

> > > > > ----- Original Message -----
> > > > 
> > > 
> > 
> 

> > > > > > Hi Jules, this is happening under FF3.6+.
> > > > > 
> > > > 
> > > 
> > 
> 

> > > > > > Looking at the difference between 4.02 and 4.05 I see the
> > > > > > inclusion
> > > > > > on that screen for the following code:
> > > > > 
> > > > 
> > > 
> > 
> 

> > > > > > <td class="UD_form_lined">{$d.formattedBytes|replace:'
> > > > > > ':'&nbsp;'}</td>
> > > > > 
> > > > 
> > > 
> > 
> 

> > > > > > so the size of the drop is also displayed. If I remove that
> > > > > > piece
> > > > > > of
> > > > > > code I can now click on a dropoff and see the detail
> > > > > > screen.
> > > > > > When
> > > > > > I
> > > > > > put that code back in I am no longer able to click through
> > > > > > to
> > > > > > the
> > > > > > detail screen.
> > > > > 
> > > > 
> > > 
> > 
> 
> > > > > > --
> > > > > 
> > > > 
> > > 
> > 
> 
> > > > > > Thanks, Phil
> > > > > 
> > > > 
> > > 
> > 
> 

> > > > > > ----- Original Message -----
> > > > > 
> > > > 
> > > 
> > 
> 

> > > > > > > I have just tested the Outbox functionality with the
> > > > > > > JavaScript
> > > > > > > error
> > > > > > > console displayed in IE9, Safari (Mac) and Chrome (Mac).
> > > > > > 
> > > > > 
> > > > 
> > > 
> > 
> 
> > > > > > > I cannot reproduce your error at all.
> > > > > > 
> > > > > 
> > > > 
> > > 
> > 
> 

> > > > > > > In the 3 places that call "doPickup" ('grep -l doPickup
> > > > > > > /opt/zendto/templates/*.tpl' as you'll see them), they
> > > > > > > all
> > > > > > > have
> > > > > > > a
> > > > > > > form called "pickup" with a hidden element "claimID" in
> > > > > > > it.
> > > > > > > So
> > > > > > > the
> > > > > > > code should work, and does for me.
> > > > > > 
> > > > > 
> > > > 
> > > 
> > 
> 

> > > > > > > Exactly how did you get it to display this error message?
> > > > > > 
> > > > > 
> > > > 
> > > 
> > 
> 
> > > > > > > And does it affect the functionality of the page?
> > > > > > 
> > > > > 
> > > > 
> > > 
> > 
> 

> > > > > > > Jules.
> > > > > > 
> > > > > 
> > > > 
> > > 
> > 
> 

> > > > > > > On 20/09/2011 15:32, --[ UxBoD ]-- wrote:
> > > > > > 
> > > > > 
> > > > 
> > > 
> > 
> 
> > > > > > > > Jules,
> > > > > > > 
> > > > > > 
> > > > > 
> > > > 
> > > 
> > 
> 

> > > > > > > > Under ZendTo 4.05 when in the Outbox screen and the
> > > > > > > > user
> > > > > > > > clicks
> > > > > > > > on
> > > > > > > > a
> > > > > > > > dropoff they have made a JS error, document.pickup is
> > > > > > > > not
> > > > > > > > defined,
> > > > > > > > is being wrong on line 90 of main.js:
> > > > > > > 
> > > > > > 
> > > > > 
> > > > 
> > > 
> > 
> 

> > > > > > > > / * Jules' code */
> > > > > > > 
> > > > > > 
> > > > > 
> > > > 
> > > 
> > 
> 
> > > > > > > > function doPickup(theID) {
> > > > > > > 
> > > > > > 
> > > > > 
> > > > 
> > > 
> > 
> 
> > > > > > > > document.pickup.claimID.value = theID; <--- here
> > > > > > > 
> > > > > > 
> > > > > 
> > > > 
> > > 
> > 
> 
> > > > > > > > return document.pickup.submit();
> > > > > > > 
> > > > > > 
> > > > > 
> > > > 
> > > 
> > 
> 
> > > > > > > > }
> > > > > > > 
> > > > > > 
> > > > > 
> > > > 
> > > 
> > 
> 

> > > > > > > > I have looked at the code and cannot see what is wrong
> > > > > > > > any
> > > > > > > > ideas
> > > > > > > > ?
> > > > > > > 
> > > > > > 
> > > > > 
> > > > 
> > > 
> > 
> 
> > > > > > > > --
> > > > > > > 
> > > > > > 
> > > > > 
> > > > 
> > > 
> > 
> 
> > > > > > > > Thanks, Phil
> > > > > > > 
> > > > > > 
> > > > > 
> > > > 
> > > 
> > 
> 

> > > > > > > > _______________________________________________
> > > > > > > 
> > > > > > 
> > > > > 
> > > > 
> > > 
> > 
> 
> > > > > > > > ZendTo mailing list ZendTo at zend.to
> > > > > > > > http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto
> > > > > > > 
> > > > > > 
> > > > > 
> > > > 
> > > 
> > 
> 
> > > > > > > Jules
> > > > > > 
> > > > > 
> > > > 
> > > 
> > 
> 

> > > > > > > --
> > > > > > 
> > > > > 
> > > > 
> > > 
> > 
> 
> > > > > > > Julian Field MEng CITP CEng www.Zend.To Follow me at
> > > > > > > twitter.com/JulesFM
> > > > > > 
> > > > > 
> > > > 
> > > 
> > 
> 
> > > > > > > PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947
> > > > > > > 1415
> > > > > > > B654
> > > > > > 
> > > > > 
> > > > 
> > > 
> > 
> 

> > > > > > > 'It's okay to live without all the answers' - Charlie
> > > > > > > Eppes,
> > > > > > > 2011
> > > > > > 
> > > > > 
> > > > 
> > > 
> > 
> 
> > > > > > > 'All programs have a desire to be useful' - Tron, 1982
> > > > > > 
> > > > > 
> > > > 
> > > 
> > 
> 
> > > > > > > 'That is the land of lost content,
> > > > > > 
> > > > > 
> > > > 
> > > 
> > 
> 
> > > > > > > I see it shining plain,
> > > > > > 
> > > > > 
> > > > 
> > > 
> > 
> 
> > > > > > > The happy highways where I went,
> > > > > > 
> > > > > 
> > > > 
> > > 
> > 
> 
> > > > > > > And cannot come again.' - A.E. Houseman
> > > > > > 
> > > > > 
> > > > 
> > > 
> > 
> 
> > > > > > > _______________________________________________
> > > > > > 
> > > > > 
> > > > 
> > > 
> > 
> 
> > > > > > > ZendTo mailing list
> > > > > > 
> > > > > 
> > > > 
> > > 
> > 
> 
> > > > > > > ZendTo at zend.to
> > > > > > 
> > > > > 
> > > > 
> > > 
> > 
> 
> > > > > > > http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto
> > > > > > 
> > > > > 
> > > > 
> > > 
> > 
> 
> > > > > > _______________________________________________
> > > > > 
> > > > 
> > > 
> > 
> 
> > > > > > ZendTo mailing list
> > > > > 
> > > > 
> > > 
> > 
> 
> > > > > > ZendTo at zend.to
> > > > > 
> > > > 
> > > 
> > 
> 
> > > > > > http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto
> > > > > 
> > > > 
> > > 
> > 
> 
> > > > > _______________________________________________
> > > > 
> > > 
> > 
> 
> > > > > ZendTo mailing list
> > > > 
> > > 
> > 
> 
> > > > > ZendTo at zend.to
> > > > 
> > > 
> > 
> 
> > > > > http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto
> > > > 
> > > 
> > 
> 
> > > > _______________________________________________
> > > 
> > 
> 
> > > > ZendTo mailing list ZendTo at zend.to
> > > > http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto
> > > 
> > 
> 
> > > Jules
> > 
> 

> > > --
> > 
> 
> > > Julian Field MEng CITP CEng www.Zend.To Follow me at
> > > twitter.com/JulesFM
> > 
> 
> > > PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
> > 
> 

> > > 'It's okay to live without all the answers' - Charlie Eppes, 2011
> > 
> 
> > > 'All programs have a desire to be useful' - Tron, 1982
> > 
> 
> > > 'That is the land of lost content,
> > 
> 
> > > I see it shining plain,
> > 
> 
> > > The happy highways where I went,
> > 
> 
> > > And cannot come again.' - A.E. Houseman
> > 
> 
> > > _______________________________________________
> > 
> 
> > > ZendTo mailing list
> > 
> 
> > > ZendTo at zend.to
> > 
> 
> > > http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto
> > 
> 
> > _______________________________________________
> 
> > ZendTo mailing list ZendTo at zend.to
> > http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto
> 
> Jules

> --
> Julian Field MEng CITP CEng www.Zend.To Follow me at
> twitter.com/JulesFM
> PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654

> 'Teach a man to reason, and he will think for a lifetime.' - Phil
> Plait
> 'All programs have a desire to be useful' - Tron, 1982
> _______________________________________________
> ZendTo mailing list
> ZendTo at zend.to
> http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/zendto/attachments/20110920/ff368874/attachment.html 


More information about the ZendTo mailing list