[Seaside] Re: Updating title tag dynamically

Murtaza Zaidi mzaidi86 at gmail.com
Thu Feb 27 21:52:05 UTC 2014


Unfortunately, it still doesn't work. I'm updating the browser tab icon as
well but in that case, I have an id to refer to. Is there a way to assign
an id attribute to the title tag?

Thanks,
Murtaza


On Thu, Feb 27, 2014 at 4:32 PM, Paul DeBruicker <pdebruic at gmail.com> wrote:

> You need to add some double quotes in there.
>
> e.g.
>
> onClick: (Javascript.JSStream on: 'document.title = "', self
> displayString,'";');
>
>
>
> Murtaza Zaidi wrote
> > 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 &lt;
>
> > arning315@
>
> > &gt; wrote:
> >
> >>  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
> > <title>
> >  tag of the page but
> >> don't know how that could be done using seaside. Any help will be great.
> >>
> >>  Thanks,
> >> Murtaza
> >>
> >>
> >> _______________________________________________
> >> seaside mailing
>
> > listseaside at .squeakfoundation
>
> > ://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >>
> >>
> >>
> >> _______________________________________________
> >> seaside mailing list
> >>
>
> > seaside at .squeakfoundation
>
> >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >>
> >>
> >
> > _______________________________________________
> > seaside mailing list
>
> > seaside at .squeakfoundation
>
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
>
>
>
> --
> View this message in context:
> http://forum.world.st/Updating-title-tag-dynamically-tp4746804p4746848.html
> Sent from the Seaside General mailing list archive at Nabble.com.
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20140227/a3b78873/attachment.htm


More information about the seaside mailing list