<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div style=""><br><div>Begin forwarded message:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; color:rgba(0, 0, 0, 1.0);"><b>From: </b></span><span style="font-family:'Helvetica';">"<a href="mailto:phil@highoctane.be">phil@highoctane.be</a>" &lt;<a href="mailto:phil@highoctane.be">phil@highoctane.be</a>&gt;<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; color:rgba(0, 0, 0, 1.0);"><b>Subject: </b></span><span style="font-family:'Helvetica';"><b>Re: [Pharo-dev] [Seaside] Re: Updating title tag dynamically</b><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; color:rgba(0, 0, 0, 1.0);"><b>Date: </b></span><span style="font-family:'Helvetica';">27 Feb 2014 22:57:29 GMT+1<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; color:rgba(0, 0, 0, 1.0);"><b>To: </b></span><span style="font-family:'Helvetica';">Seaside - general discussion &lt;<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>&gt;,  Discusses Development of Pharo &lt;<a href="mailto:pharo-dev@lists.pharo.org">pharo-dev@lists.pharo.org</a>&gt;<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; color:rgba(0, 0, 0, 1.0);"><b>Reply-To: </b></span><span style="font-family:'Helvetica';">Pharo Development List &lt;<a href="mailto:pharo-dev@lists.pharo.org">pharo-dev@lists.pharo.org</a>&gt;<br></span></div><br><div><div dir="ltr"><div><span style="color:rgb(51,51,51);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.333333015441895px">Could someone fwd this to the Seaside list (and possibly check my email) as it seems that my posts aren't getting through since a while.</span></div>

<div><span style="color:rgb(51,51,51);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.333333015441895px"><br></span></div><div><span style="color:rgb(51,51,51);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.333333015441895px">---</span></div>

<span style="color:rgb(51,51,51);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.333333015441895px">Like this:&nbsp;</span><br style="color:rgb(51,51,51);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.333333015441895px">

<br style="color:rgb(51,51,51);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.333333015441895px"><span style="color:rgb(51,51,51);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.333333015441895px">renderContentOn: html&nbsp;</span><br style="color:rgb(51,51,51);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.333333015441895px">

<br style="color:rgb(51,51,51);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.333333015441895px"><span style="color:rgb(51,51,51);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.333333015441895px">&nbsp; &nbsp; &nbsp; &nbsp; html anchor&nbsp;</span><br style="color:rgb(51,51,51);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.333333015441895px">

<span style="color:rgb(51,51,51);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.333333015441895px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; onClick: (((html jQuery: 'html head') find: 'title') text: 'NEW');&nbsp;</span><br style="color:rgb(51,51,51);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.333333015441895px">

<span style="color:rgb(51,51,51);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.333333015441895px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; with: 'Update Title'.</span><br><div class="gmail_extra"><br clear="all"><div>

<div dir="ltr">Phil</div></div>
<br><br><div class="gmail_quote">On Thu, Feb 27, 2014 at 10:51 PM, Bob Arning <span dir="ltr">&lt;<a href="mailto:arning315@comcast.net" target="_blank">arning315@comcast.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


  
    
  
  <div 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>On 2/27/14 4:32 PM, Paul DeBruicker
      wrote:<br>
    </div>
    <blockquote type="cite">
      <pre>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>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></pre>
      <blockquote type="cite">
        <pre>arning315@
</pre>
      </blockquote>
      <pre></pre>
      <blockquote type="cite">
        <pre>&amp;gt; wrote:

</pre>
        <blockquote type="cite">
          <pre> 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>&lt;title&gt;
 tag of the page but
</pre>
        <blockquote type="cite">
          <pre>don't know how that could be done using seaside. Any help will be great.

 Thanks,
Murtaza


_______________________________________________
seaside mailing 
</pre>
        </blockquote>
      </blockquote>
      <pre></pre>
      <blockquote type="cite">
        <pre><a href="mailto:listseaside@.squeakfoundation" target="_blank">listseaside@.squeakfoundation</a>
</pre>
      </blockquote>
      <pre></pre>
      <blockquote type="cite">
        <pre>://<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
</pre>
        <blockquote type="cite">
          <pre>_______________________________________________
seaside mailing list

</pre>
        </blockquote>
      </blockquote>
      <pre></pre>
      <blockquote type="cite">
        <pre><a href="mailto:seaside@.squeakfoundation" target="_blank">seaside@.squeakfoundation</a>
</pre>
      </blockquote>
      <pre></pre>
      <blockquote type="cite">
        <blockquote type="cite">
          <pre><a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>


</pre>
        </blockquote>
        <pre>_______________________________________________
seaside mailing list
</pre>
      </blockquote>
      <pre></pre>
      <blockquote type="cite">
        <pre><a href="mailto:seaside@.squeakfoundation" target="_blank">seaside@.squeakfoundation</a>
</pre>
      </blockquote>
      <pre></pre>
      <blockquote type="cite">
        <pre><a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
</pre>
      </blockquote>
      <pre>
--
View this message in context: <a href="http://forum.world.st/Updating-title-tag-dynamically-tp4746804p4746848.html" target="_blank">http://forum.world.st/Updating-title-tag-dynamically-tp4746804p4746848.html</a><span class="HOEnZb"><font color="#888888">
Sent from the Seaside General mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.
_______________________________________________
seaside mailing list
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>

</font></span></pre>
    </blockquote>
    <br>
  </div>

<br>_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br></blockquote></div><br></div></div>
</div></blockquote></div><br></body></html>