<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <font face="Georgia">And the other issue is what follows after the<br>
      <br>
      &nbsp;&nbsp;&nbsp; html anchor onClick: (blah);<br>
      <br>
      ?<br>
      <br>
      In this example:<br>
      <br>
      &nbsp;&nbsp;&nbsp; v1 := JSStream on: 'document.title = "', self
      displayString,'";'.<br>
      &nbsp;&nbsp;&nbsp; html anchor<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; onClick: v1;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; with: 'v1'.<br>
      &nbsp;&nbsp;&nbsp; html break.<br>
      &nbsp;&nbsp;&nbsp; <br>
      &nbsp;&nbsp;&nbsp; v2 := JSStream on: 'document.title = ', self
      displayString,';'.<br>
      &nbsp;&nbsp;&nbsp; html anchor<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; onClick: v2;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; with: 'v2'.<br>
      &nbsp;&nbsp;&nbsp; html break.<br>
      &nbsp;&nbsp;&nbsp; <br>
      &nbsp;&nbsp;&nbsp; v3 := JSStream on: 'document.title = ', self
      displayString,';'.<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; html anchor<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; onClick: v3;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; callback: [];<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; with: 'v3'.<br>
      &nbsp;&nbsp;&nbsp; html break.<br>
      &nbsp;&nbsp;&nbsp; <br>
      &nbsp;&nbsp;&nbsp; v4 := JSStream on: 'document.title = "', self
      displayString,'";'.<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; html anchor<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; onClick: v4;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; callback: [];<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; with: 'v4'.<br>
      <br>
      v1 works.<br>
      v2 fails for the missing double-quotes.<br>
      v3 and v4 fail since the onClick is pre-empted by the callback:<br>
      <br>
      Cheers,<br>
      Bob<br>
      <br>
    </font>
    <div class="moz-cite-prefix">On 2/27/14 4:32 PM, Paul DeBruicker
      wrote:<br>
    </div>
    <blockquote cite="mid:1393536773519-4746848.post@n4.nabble.com"
      type="cite">
      <pre wrap="">You need to add some double quotes in there.

e.g.

onClick: (Javascript.JSStream on: 'document.title = "', self
displayString,'";');



Murtaza Zaidi wrote
</pre>
      <blockquote type="cite">
        <pre wrap="">Hi Bob,

It doesn't seem to work. The browser tab text remains the same. I'm using
an html anchor instead of a div. This is how I've implemented it:
          html anchor
onClick: (Javascript.JSStream on: 'document.title = ', self
displayString,';');

Thanks,
Murtaza


On Thu, Feb 27, 2014 at 3:13 PM, Bob Arning &amp;lt;
</pre>
      </blockquote>
      <pre wrap="">
</pre>
      <blockquote type="cite">
        <pre wrap="">arning315@
</pre>
      </blockquote>
      <pre wrap="">
</pre>
      <blockquote type="cite">
        <pre wrap="">&amp;gt; wrote:

</pre>
        <blockquote type="cite">
          <pre wrap=""> This works:

    html div
        onClick: (JSStream on: 'document.title = "a new title";');
        with: 'hello'.


Cheers,
Bob

 On 2/27/14 12:45 PM, Murtaza Zaidi wrote:

Hi,

 I needed to update the browser tab text dynamically depending on a click
event. I know that I would need to modify the 
</pre>
        </blockquote>
        <pre wrap="">&lt;title&gt;
 tag of the page but
</pre>
        <blockquote type="cite">
          <pre wrap="">don't know how that could be done using seaside. Any help will be great.

 Thanks,
Murtaza


_______________________________________________
seaside mailing 
</pre>
        </blockquote>
      </blockquote>
      <pre wrap="">
</pre>
      <blockquote type="cite">
        <pre wrap=""><a class="moz-txt-link-abbreviated" href="mailto:listseaside@.squeakfoundation">listseaside@.squeakfoundation</a>
</pre>
      </blockquote>
      <pre wrap="">
</pre>
      <blockquote type="cite">
        <pre wrap="">://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
</pre>
        <blockquote type="cite">
          <pre wrap="">


_______________________________________________
seaside mailing list

</pre>
        </blockquote>
      </blockquote>
      <pre wrap="">
</pre>
      <blockquote type="cite">
        <pre wrap=""><a class="moz-txt-link-abbreviated" href="mailto:seaside@.squeakfoundation">seaside@.squeakfoundation</a>
</pre>
      </blockquote>
      <pre wrap="">
</pre>
      <blockquote type="cite">
        <blockquote type="cite">
          <pre wrap=""><a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>


</pre>
        </blockquote>
        <pre wrap="">
_______________________________________________
seaside mailing list
</pre>
      </blockquote>
      <pre wrap="">
</pre>
      <blockquote type="cite">
        <pre wrap=""><a class="moz-txt-link-abbreviated" href="mailto:seaside@.squeakfoundation">seaside@.squeakfoundation</a>
</pre>
      </blockquote>
      <pre wrap="">
</pre>
      <blockquote type="cite">
        <pre wrap=""><a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
</pre>
      </blockquote>
      <pre wrap="">




--
View this message in context: <a class="moz-txt-link-freetext" href="http://forum.world.st/Updating-title-tag-dynamically-tp4746804p4746848.html">http://forum.world.st/Updating-title-tag-dynamically-tp4746804p4746848.html</a>
Sent from the Seaside General mailing list archive at Nabble.com.
_______________________________________________
seaside mailing list
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>

</pre>
    </blockquote>
    <br>
  </body>
</html>