<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Smarty doesn't have types. It is a string already, anyway.<br>
    <br>
    On 20/09/2011 16:35, --[ UxBoD ]-- wrote:
    <blockquote
      cite="mid:cbaa7c4d-21b3-4fec-ad7e-7c75259a819a@office.splatnix.net"
      type="cite">
      <style type="text/css">p { margin: 0; }</style>
      <div style="font-family: Courier New; font-size: 10pt; color:
        #000000">Hmm, as the replace is effectively working on a string
        I wonder whether $d.formattedBytes somehow needs to be cast as a
        string before being worked on.<span><br>
          <span name="x"></span>-- <br>
          Thanks, Phil<span name="x"></span><br>
        </span><br>
        <hr id="zwchr">
        <blockquote style="border-left:2px solid rgb(16, 16,
255);margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;">
          <style>p { margin: 0; }</style>
          <div style="font-family: Courier New; font-size: 10pt; color:
            #000000">Jules,<br>
            <br>
            I changed that line to be:<br>
            <br>
            &lt;td
            class="UD_form_lined"&gt;{$d.formattedBytes}&lt;/td&gt;<br>
            <br>
            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.<span><br>
              <span></span>-- <br>
              Thanks, Phil<span></span><br>
            </span><br>
            <hr id="zwchr">
            <blockquote style="border-left:2px solid rgb(16, 16,
255);margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;">
              <style>p { margin: 0; }</style>
              <div style="font-family: Courier New; font-size: 10pt;
                color: #000000">Hi Jules, this is happening under
                FF3.6+.<br>
                <br>
                Looking at the difference between 4.02 and 4.05 I see
                the inclusion on that screen for the following code:<br>
                <br>
                &lt;td
                class="UD_form_lined"&gt;{$d.formattedBytes|replace:'
                ':'&amp;nbsp;'}&lt;/td&gt;<br>
                <br>
                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.<span><br>
                  <span></span>-- <br>
                  Thanks, Phil<span></span><br>
                </span><br>
                <hr id="zwchr">
                <blockquote style="border-left:2px solid rgb(16, 16,
255);margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;">
                  I have just tested the Outbox functionality with the
                  JavaScript error console displayed in IE9, Safari
                  (Mac) and Chrome (Mac).<br>
                  I cannot reproduce your error at all.<br>
                  <br>
                  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.<br>
                  <br>
                  Exactly how did you get it to display this error
                  message?<br>
                  And does it affect the functionality of the page?<br>
                  <br>
                  Jules.<br>
                  <br>
                  On 20/09/2011 15:32, --[ UxBoD ]-- wrote:
                  <blockquote
                    cite="mid:c1d14a06-e789-4f5a-ad79-8d7dddcef36f@office.splatnix.net">
                    <style>p { margin: 0; }</style>
                    <div style="font-family: Courier New; font-size:
                      10pt; color: #000000">Jules,<br>
                      <br>
                      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:<br>
                      <br>
                      / * Jules' code */<br>
                      function doPickup(theID) {<br>
                      &nbsp; document.pickup.claimID.value = theID; &lt;---
                      here<br>
                      &nbsp; return document.pickup.submit();<br>
                      }<br>
                      <br>
                      I have looked at the code and cannot see what is
                      wrong any ideas ?<span><br>
                        <span></span>-- <br>
                        Thanks, Phil<span></span><br>
                      </span><br>
                    </div>
                    <br>
                    <fieldset class="mimeAttachmentHeader"></fieldset>
                    <br>
                    <pre>_______________________________________________
ZendTo mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:ZendTo@zend.to" target="_blank">ZendTo@zend.to</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto" target="_blank">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a></pre>
                  </blockquote>
                  <br>
                  <pre class="moz-signature">Jules

--
Julian Field MEng CITP CEng
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.Zend.To" target="_blank">www.Zend.To</a>

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
</pre>
                  <br>
                  _______________________________________________<br>
                  ZendTo mailing list<br>
                  <a class="moz-txt-link-abbreviated" href="mailto:ZendTo@zend.to">ZendTo@zend.to</a><br>
                  <a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a></blockquote>
                <br>
              </div>
              <br>
              _______________________________________________<br>
              ZendTo mailing list<br>
              <a class="moz-txt-link-abbreviated" href="mailto:ZendTo@zend.to">ZendTo@zend.to</a><br>
              <a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a></blockquote>
            <br>
          </div>
          <br>
          _______________________________________________<br>
          ZendTo mailing list<br>
          <a class="moz-txt-link-abbreviated" href="mailto:ZendTo@zend.to">ZendTo@zend.to</a><br>
          <a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a></blockquote>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
ZendTo mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ZendTo@zend.to">ZendTo@zend.to</a>
<a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a></pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">Jules

-- 
Julian Field MEng CITP CEng
<a class="moz-txt-link-abbreviated" href="http://www.Zend.To">www.Zend.To</a>

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
</pre>
  </body>
</html>