Hi all! Sorry if this is a dumb question but I'm having trouble figuring out how to set head attributes such as viewport. I tried something like: But this doesn't work at all. I also read on the Seaside manual about headAttributes and I tried using the Find function in Smalltalk to search for relevant code, but I couldn't really find anything useful for headAttributes. anHtmlRoot attributeAt: 'viewport' put: 'width=device-width, initial-scale=1.0' I'm new to Smalltalk and Seaside so any help that you could offer would be most appreciated. Thank you! _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
something like this on your session:
updateRoot: anHtmlRoot super updateRoot: anHtmlRoot. anHtmlRoot title: 'blah'. anHtmlRoot meta name: 'viewport'; content: 'initial-scale = 1.0, user-scalable = no'; yourself. anHtmlRoot meta name: 'apple-mobile-web-app-capable'; content: 'yes'; yourself. anHtmlRoot meta name: 'apple-mobile-web-app-status-bar-style'; content: 'black'; yourself. On 7/22/13 8:45 PM, Erik Ferguson
wrote:
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by muraiki
In your #updateRoot: method do this:
anHtmlRoot meta name: 'viewport'; content: 'width=device-width, initial-scale=1.0'. On 07/22/2013 05:45 PM, Erik Ferguson wrote: > Hi all! Sorry if this is a dumb question but I'm having trouble figuring > out how to set head attributes such as viewport. I tried something like: > > anHtmlRoot attributeAt: 'viewport' put: 'width=device-width, > initial-scale=1.0' > > But this doesn't work at all. I also read on the Seaside manual about > headAttributes and I tried using the Find function in Smalltalk to > search for relevant code, but I couldn't really find anything useful for > headAttributes. > > I'm new to Smalltalk and Seaside so any help that you could offer would > be most appreciated. Thank you! > > > _______________________________________________ > seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Thanks Bob and Paul, that did it! On Mon, Jul 22, 2013 at 9:46 PM, Paul DeBruicker <[hidden email]> wrote: In your #updateRoot: method do this: _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Free forum by Nabble | Edit this page |