Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Reading 2012.1 doc--how to get an html5 page

Received: by 10.52.91.17 with SMTP id ca17mr29420vdb.1.1329343963160;
        Wed, 15 Feb 2012 14:12:43 -0800 (PST)
X-BeenThere: intersystems-zen@googlegroups.com
Received: by 10.52.180.35 with SMTP id dl3ls1084558vdc.7.gmail; Wed, 15 Feb
 2012 14:12:42 -0800 (PST)
Received: by 10.52.91.17 with SMTP id ca17mr29344vdb.1.1329343962174;
        Wed, 15 Feb 2012 14:12:42 -0800 (PST)
Received: by 10.52.91.17 with SMTP id ca17mr29342vdb.1.1329343962164;
        Wed, 15 Feb 2012 14:12:42 -0800 (PST)
Return-Path: <dawnwolth...@gmail.com>
Received: from mail-qw0-f46.google.com (mail-qw0-f46.google.com [209.85.216.46])
        by gmr-mx.google.com with ESMTPS id d8si2763273qcu.1.2012.02.15.14.12.42
        (version=TLSv1/SSLv3 cipher=OTHER);
        Wed, 15 Feb 2012 14:12:42 -0800 (PST)
Received-SPF: pass (google.com: domain of dawnwolth...@gmail.com designates 209.85.216.46 as permitted sender) client-ip=209.85.216.46;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of dawnwolth...@gmail.com designates 209.85.216.46 as permitted sender) smtp.mail=dawnwolth...@gmail.com; dkim=pass header...@gmail.com
Received: by mail-qw0-f46.google.com with SMTP id c10so3680466qad.19
        for <intersystems-zen@googlegroups.com>; Wed, 15 Feb 2012 14:12:42 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=mime-version:sender:in-reply-to:references:date
         :x-google-sender-auth:message-id:subject:from:to:content-type
         :content-transfer-encoding;
        bh=2Aky3YwEURziSTZcNNCLVX+KjvoYkUbv/aqNdkhvPfw=;
        b=wxLY1+0tl/CltZD2NpiWTkXLozZEGHoyV+prrCN1KpK9E23hGNcMJ9/10pX87YnD2g
         CUegWzual+Hub9dBMDKZaahDmzrt2b8/2bJ3fWh+sb3xmszekp4vKICycIV/rkez72ZB
         StC3srTB1tVOPouJJQqEqPqkZ3lAKmi4n0vKw=
MIME-Version: 1.0
Received: by 10.229.106.70 with SMTP id w6mr16241482qco.132.1329343961692;
 Wed, 15 Feb 2012 14:12:41 -0800 (PST)
Sender: dawnwolth...@gmail.com
Received: by 10.229.234.17 with HTTP; Wed, 15 Feb 2012 14:12:41 -0800 (PST)
In-Reply-To: <15a7dc1b-97db-458d-8df5-6e33e0300...@v2g2000vbx.googlegroups.com>
References: <CANKEuc7jr__952vcbwrGEhg74Twqn9qxn0k3tWkMWcJ_0xp...@mail.gmail.com>
	<4F3C2A0E.6070...@intersystems.com>
	<15a7dc1b-97db-458d-8df5-6e33e0300...@v2g2000vbx.googlegroups.com>
Date: Wed, 15 Feb 2012 16:12:41 -0600
Message-ID: <CANKEuc4CL05Qww43NQsBh1bROsKn7iPwMZsFfWhsPAB_Z59...@mail.gmail.com>
Subject: Re: [InterSystems-Zen] Re: Reading 2012.1 doc--how to get an html5 page
From: Dawn Wolthuis <dw...@tincat-group.com>
To: intersystems-zen@googlegroups.com
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Yes, we had never changed delivered Cache' code until we changed
2010.2.1 to generate the html5 doctype, instead of html4, with HTMLDTD
=3D 1 and while we were at it, we put in this into the abstractPage
    If (+..#HTMLDTD) {
        &html<<meta charset=3D"utf-8" />>
        &html<<meta content=3D"IE=3Dedge,chrome=3D1" http-equiv=3D"X-UA-Com=
patible" />>
    }

so hopefully in 2012.1 the generated zen pages will put these right up
top or permit us to specify this. It took our little team of
sweat-equity partners with day jobs who are working very few hours per
week more than a year to get 2010.2.1 to the point where we are now
working on getting out of quirks mode before our next alpha tests.
That's when we hit a show-stopper delivered to everyone in 2010.2.1
but apparently something that only affects us(?). It is this:

All pages that have HTMLDTD =3D 1 (pages that are out of quirks mode)
have the location for modal group pop-ups calculated wrong when the
user scrolls down before clicking something like a calendar pop-up or
combobox or so. If anyone has a work-around/fix for this bug, then we
might have a chance of going live out of quirks mode with 2010.2.1
instead of spending 2012 mired in upgrades again rather than working
on the app. Thanks in advance for any and all suggestions.  --dawn

On Wed, Feb 15, 2012 at 3:59 PM, Roberto <rcaha...@gmail.com> wrote:
> If you look at the code for abstractPage.cls, this should work for
> you:
>
> Parameter HTMLDTD =3D 0;
>
> Method %OnDetermineCSSLevel() As %Integer
> {
> =A0 =A0 =A0 =A0Quit 3
> }
>
> -Roberto
>
>
>
> On Feb 15, 4:56=A0pm, Dale du Preez <dale.dupr...@intersystems.com>
> wrote:
>> Hi Dawn,
>>
>> To specify HTML5 for a Zen page, you need to override the
>> %OnDetermineCSSLevel() method for the page and return 3. (I believe the
>> method returns "" or 2 by default.) If you have a base page (or a set of
>> base pages), it should be fairly easy to implement this change in a
>> superclass.
>>
>> We needed to do this for a number of pages in the Ensemble portal where
>> we use SVG graphics -- HTML5 allows us to use the browsers' native SVG
>> engines without worrying too much about which browser we are dealing wit=
h.
>>
>> I hope that helps,
>> Dale
>>
>> On 2/15/2012 4:49 PM, Dawn Wolthuis wrote:
>>
>>
>>
>>
>>
>>
>>
>> > Yikes. I just agreed to do a talk on the html5boilerplate and Zen at a
>> > little conference, right before I found out I had a show-stopper in
>> > 2010.2.1, so I'm in a bit of a bind as I was planning to show off what
>> > we have at that point. I have just been told a bug will not be fixed
>> > in 2010.2.1 and that I should upgrade to 2012.1, so I am looking for
>> > 2012.1 doc related to the html5 doctype at the top of the pages. I did
>> > not find anything by searching the doc that was downloaded with the
>> > trial version of 2012.1, but I found this in the release notes on the
>> > web:
>>
>> > "Whether HTML5 output is produced or not is controlled by the setting
>> > of a global, ^%ISC.ZEN.cssLevel. If the value of this global is set to
>> > 3, all Zen pages written by InterSystems that are served to browsers
>> > that support it will produce HTML5 output (interpreted in strict
>> > rather than quirks mode). If the global is missing or has the value 2,
>> > HTML output will be the same as in 2011.1. The default for new
>> > installations and upgrades is to retain the previous behavior."
>>
>> > I want to be sure that I can generate pages with an html5 doctype for
>> > any pages we choose, just like any other web developer might do, and
>> > use the html5boilerplate features we are using in 2010.2.1 for
>> > handling older browsers.
>>
>> > In 2010.2.1 we get out of quirks mode with
>>
>> > Parameter HTMLDTD =3D 1;
>>
>> > We were hoping for a new parameter or a changed value for this
>> > parameter in order to generate html5 pages with Zen, but I see no
>> > documentation that indicates this is the case. Given that every
>> > browser out there supports the html5 doctype at the top of the page,
>> > with easier-to-design pages than the no doctype quirks mode than we
>> > have been using, I am not sure what it means that there would be a
>> > browser that does not support the html5 doctype but does support
>> > having no doctype. I have tested html5 doctypes in IE 6, 7, 8, 9 as
>> > well as various versions of FF, Chrome, Safari, Opera, etc. but I am
>> > still working on design, so there might be some issues left to
>> > discover. So, I am guessing that I am not understanding this paragraph
>> > in the release notes.
>>
>> > What is the magic to getting the html5 doctype to generate at the top
>> > of each Zen page? The release notes indicate some sort of global (we
>> > rarely use this word on our team as we work with MV files) that needs
>> > a new value. We definitely do not want to change this behavior
>> > globally. Can we set that value for a page through the SMP or do we
>> > need to get to the COS prompt and fiddle around (something we NEVER do
>> > unless explicitly told there is no other way)? I'm hopeful the page
>> > itself and not the config of the system will be able to specify the
>> > doctype to be used, but I have not yet figured out what goes into a
>> > page when we want the doctype to be the current industry standard
>> > (html 5 doctype). We definitely do not want a system-wide parameter as
>> > we have some namespaces that should currently generate quirks mode
>> > pages until we are ready to switch them over and others where we would
>> > want to start by testing out some pages.
>>
>> > So, how do we get the html 5 doctype on the top of the pages we are
>> > testing in html5? We do not want a different doctype in the case of
>> > different browsers (who does that?!), so I'm hoping that I am simply
>> > not understanding. If it is not possible to generate html5 pages still
>> > in 2012.1, I need to sink into my seat, I mean, I need to figure out
>> > how to get out of the talk I was going to do and also figure out how
>> > to get our application working, given the show-stopper in 2010.2.1,
>> > convert our html5boilerplate features from 2010.2.1 to 2012.1 and
>> > ensure that our pages work. I am not finding the right doc by
>> > searching for html5 or doctype within the documentation delivered with
>> > the 2012.1 download. =A0Thanks in advance for any tips. =A0--dawn
>
> --
> You received this message because you are subscribed to the Google Groups=
 "InterSystems: Zen Community" group.
> To post to this group, send email to InterSystems-ZEN@googlegroups.com
> To unsubscribe from this group, send email to InterSystems-ZEN-unsubscrib=
e@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/Inte=
rSystems-ZEN?hl=3Den
> Zen Community Terms and Conditions: http://groups.google.com/group/InterS=
ystems-ZEN/web/community-terms-and-conditions



--=20
Dawn M. Wolthuis

Take and give some delight today