Re: [Pharo-dev] [Seaside] Re: Updating title tag dynamically
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. --- Like this: renderContentOn: html html anchor onClick: (((html jQuery: 'html head') find: 'title') text: 'NEW'); with: 'Update Title'. Phil On Thu, Feb 27, 2014 at 10:51 PM, Bob Arning <arning315@comcast.net> wrote:
And the other issue is what follows after the
html anchor onClick: (blah);
?
In this example:
v1 := JSStream on: 'document.title = "', self displayString,'";'. html anchor onClick: v1; with: 'v1'. html break.
v2 := JSStream on: 'document.title = ', self displayString,';'. html anchor onClick: v2; with: 'v2'. html break.
v3 := JSStream on: 'document.title = ', self displayString,';'. html anchor onClick: v3; callback: []; with: 'v3'. html break.
v4 := JSStream on: 'document.title = "', self displayString,'";'. html anchor onClick: v4; callback: []; with: 'v4'.
v1 works. v2 fails for the missing double-quotes. v3 and v4 fail since the onClick is pre-empted by the callback:
Cheers, Bob
On 2/27/14 4:32 PM, Paul DeBruicker 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 <
arning315@
> 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@.squeakfoundation
://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________ seaside mailing list
seaside@.squeakfoundation
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________ seaside mailing list
seaside@.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 listseaside@lists.squeakfoundation.orghttp://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________ seaside mailing list seaside@lists.squeakfoundation.org http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Forwarding on behalf of phil. Begin forwarded message:
From: "phil@highoctane.be" <phil@highoctane.be> Subject: Re: [Pharo-dev] [Seaside] Re: Updating title tag dynamically Date: 27. Februar 2014 22:57:29 MEZ To: Seaside - general discussion <seaside@lists.squeakfoundation.org>, Discusses Development of Pharo <pharo-dev@lists.pharo.org> Reply-To: Pharo Development List <pharo-dev@lists.pharo.org>
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.
--- Like this:
renderContentOn: html
html anchor onClick: (((html jQuery: 'html head') find: 'title') text: 'NEW'); with: 'Update Title'.
Phil
On Thu, Feb 27, 2014 at 10:51 PM, Bob Arning <arning315@comcast.net> wrote: And the other issue is what follows after the
html anchor onClick: (blah);
?
In this example:
v1 := JSStream on: 'document.title = "', self displayString,'";'. html anchor onClick: v1; with: 'v1'. html break.
v2 := JSStream on: 'document.title = ', self displayString,';'. html anchor onClick: v2; with: 'v2'. html break.
v3 := JSStream on: 'document.title = ', self displayString,';'. html anchor onClick: v3; callback: []; with: 'v3'. html break.
v4 := JSStream on: 'document.title = "', self displayString,'";'. html anchor onClick: v4; callback: []; with: 'v4'.
v1 works. v2 fails for the missing double-quotes. v3 and v4 fail since the onClick is pre-empted by the callback:
Cheers, Bob
On 2/27/14 4:32 PM, Paul DeBruicker 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 < arning315@ > 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@.squeakfoundation ://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside _______________________________________________ seaside mailing list
seaside@.squeakfoundation
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________ seaside mailing list seaside@.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@lists.squeakfoundation.org http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________ seaside mailing list seaside@lists.squeakfoundation.org http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
On 27 Feb 2014, at 22:57, phil@highoctane.be wrote:
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.
--- Like this:
renderContentOn: html
html anchor onClick: (((html jQuery: 'html head') find: 'title') text: 'NEW'); with: 'Update Title'.
Nice, but wouldn't (html jQuery: 'html head title') work as well ?
Phil
On Thu, Feb 27, 2014 at 10:51 PM, Bob Arning <arning315@comcast.net> wrote: And the other issue is what follows after the
html anchor onClick: (blah);
?
In this example:
v1 := JSStream on: 'document.title = "', self displayString,'";'. html anchor onClick: v1; with: 'v1'. html break.
v2 := JSStream on: 'document.title = ', self displayString,';'. html anchor onClick: v2; with: 'v2'. html break.
v3 := JSStream on: 'document.title = ', self displayString,';'. html anchor onClick: v3; callback: []; with: 'v3'. html break.
v4 := JSStream on: 'document.title = "', self displayString,'";'. html anchor onClick: v4; callback: []; with: 'v4'.
v1 works. v2 fails for the missing double-quotes. v3 and v4 fail since the onClick is pre-empted by the callback:
Cheers, Bob
On 2/27/14 4:32 PM, Paul DeBruicker 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 <
arning315@
> 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@.squeakfoundation ://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________ seaside mailing list
seaside@.squeakfoundation
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________ seaside mailing list
seaside@.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@lists.squeakfoundation.org http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________ seaside mailing list seaside@lists.squeakfoundation.org http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Works as well. html anchor onClick: ((html jQuery: 'html head title') text: 'NEW'); with: 'Update Title'. On Thu, Feb 27, 2014 at 11:07 PM, Sven Van Caekenberghe <sven@stfx.eu>wrote:
On 27 Feb 2014, at 22:57, phil@highoctane.be wrote:
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.
--- Like this:
renderContentOn: html
html anchor onClick: (((html jQuery: 'html head') find: 'title') text: 'NEW'); with: 'Update Title'.
Nice, but wouldn't (html jQuery: 'html head title') work as well ?
Phil
On Thu, Feb 27, 2014 at 10:51 PM, Bob Arning <arning315@comcast.net> wrote: And the other issue is what follows after the
html anchor onClick: (blah);
?
In this example:
v1 := JSStream on: 'document.title = "', self displayString,'";'. html anchor onClick: v1; with: 'v1'. html break.
v2 := JSStream on: 'document.title = ', self displayString,';'. html anchor onClick: v2; with: 'v2'. html break.
v3 := JSStream on: 'document.title = ', self displayString,';'. html anchor onClick: v3; callback: []; with: 'v3'. html break.
v4 := JSStream on: 'document.title = "', self displayString,'";'. html anchor onClick: v4; callback: []; with: 'v4'.
v1 works. v2 fails for the missing double-quotes. v3 and v4 fail since the onClick is pre-empted by the callback:
Cheers, Bob
On 2/27/14 4:32 PM, Paul DeBruicker 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 <
arning315@
> 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@.squeakfoundation ://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________ seaside mailing list
seaside@.squeakfoundation
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________ seaside mailing list
seaside@.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@lists.squeakfoundation.org http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________ seaside mailing list seaside@lists.squeakfoundation.org http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________ seaside mailing list seaside@lists.squeakfoundation.org http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
I couldât find *any* other e-mails sent to the seaside list from your address⦠On 27.02.2014, at 22:57, phil@highoctane.be wrote:
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.
--- Like this:
renderContentOn: html
html anchor onClick: (((html jQuery: 'html head') find: 'title') text: 'NEW'); with: 'Update Title'.
Phil
On Thu, Feb 27, 2014 at 10:51 PM, Bob Arning <arning315@comcast.net> wrote: And the other issue is what follows after the
html anchor onClick: (blah);
?
In this example:
v1 := JSStream on: 'document.title = "', self displayString,'";'. html anchor onClick: v1; with: 'v1'. html break.
v2 := JSStream on: 'document.title = ', self displayString,';'. html anchor onClick: v2; with: 'v2'. html break.
v3 := JSStream on: 'document.title = ', self displayString,';'. html anchor onClick: v3; callback: []; with: 'v3'. html break.
v4 := JSStream on: 'document.title = "', self displayString,'";'. html anchor onClick: v4; callback: []; with: 'v4'.
v1 works. v2 fails for the missing double-quotes. v3 and v4 fail since the onClick is pre-empted by the callback:
Cheers, Bob
On 2/27/14 4:32 PM, Paul DeBruicker 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 < arning315@ > 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@.squeakfoundation ://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside _______________________________________________ seaside mailing list
seaside@.squeakfoundation
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________ seaside mailing list seaside@.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@lists.squeakfoundation.org http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________ seaside mailing list seaside@lists.squeakfoundation.org http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
I posted on the web ui but it didn't got forwarded either. I noticed because when I gave an answer, it didn't appeared and people continued to ask and my answer wasn't displayed. Check on http://forum.world.st/Updating-title-tag-dynamically-td4746804.htmland you'll see that the mail isn't sent. Phil --- Philippe Back Visible Performance Improvements Mob: +32(0) 478 650 140 | Fax: +32 (0) 70 408 027 Mail:phil@highoctane.be | Web: http://philippeback.eu Blog: http://philippeback.be | Twitter: @philippeback Youtube: http://www.youtube.com/user/philippeback/videos High Octane SPRL rue cour Boisacq 101 | 1301 Bierges | Belgium Pharo Consortium Member - http://consortium.pharo.org/ Featured on the Software Process and Measurement Cast - http://spamcast.libsyn.com Sparx Systems Enterprise Architect and Ability Engineering EADocX Value Added Reseller On Thu, Feb 27, 2014 at 11:08 PM, Max Leske <maxleske@gmail.com> wrote:
I could't find *any* other e-mails sent to the seaside list from your address...
On 27.02.2014, at 22:57, phil@highoctane.be wrote:
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.
--- Like this:
renderContentOn: html
html anchor onClick: (((html jQuery: 'html head') find: 'title') text: 'NEW'); with: 'Update Title'.
Phil
On Thu, Feb 27, 2014 at 10:51 PM, Bob Arning <arning315@comcast.net>wrote:
And the other issue is what follows after the
html anchor onClick: (blah);
?
In this example:
v1 := JSStream on: 'document.title = "', self displayString,'";'. html anchor onClick: v1; with: 'v1'. html break.
v2 := JSStream on: 'document.title = ', self displayString,';'. html anchor onClick: v2; with: 'v2'. html break.
v3 := JSStream on: 'document.title = ', self displayString,';'. html anchor onClick: v3; callback: []; with: 'v3'. html break.
v4 := JSStream on: 'document.title = "', self displayString,'";'. html anchor onClick: v4; callback: []; with: 'v4'.
v1 works. v2 fails for the missing double-quotes. v3 and v4 fail since the onClick is pre-empted by the callback:
Cheers, Bob
On 2/27/14 4:32 PM, Paul DeBruicker 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 <
arning315@
> 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@.squeakfoundation
://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________ seaside mailing list
seaside@.squeakfoundation
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________ seaside mailing list
seaside@.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 listseaside@lists.squeakfoundation.orghttp://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________ seaside mailing list seaside@lists.squeakfoundation.org http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
participants (3)
-
Max Leske -
phil@highoctane.be -
Sven Van Caekenberghe