Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: edit doctype tag?

  1. #1
    Carol Scheible
    Guest

    Default edit doctype tag?

    Is there a way to edit the doctype and html tags using NO10, 8 or 7? The
    site in question is built in 7, and I have 8 and 10 as well, so could
    migrate up. I cannot find any way to edit this tag in any version of NO.

    My client was given some javascript code to display a floating SSL logo at
    the bottom of every page. The problem is that the javascript code causes
    the site background to dissappear in IE7, thus breaking the layout. The
    company who gave us the code said to do this:

    Change this:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>

    TO:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">

    I tested this fix by manually editing the published pages, and it does solve
    the problem. However, I don't want to manually edit the site each time I
    make a change to it! Sort of defeats the purpose of using NO!!! Any ideas?

    More info:

    Compare:
    www.guitarcandy.com
    to
    www.guitarcandy.com/cot.asp
    The background image that is not showing up in the second link above
    is:
    http://www.guitarcandy.com/assets/im...ackground3.jpg

    The offending code that breaks the site is:

    ----in the head----
    <script language="javascript" type="text/javascript">
    //<![CDATA[
    var cot_loc0=(window.location.protocol == "https:")?
    "https://secure.comodo.net/trustlogo/javascript/cot.js" :
    "http://www.trustlogo.com/trustlogo/javascript/cot.js";
    document.writeln('<scr' + 'ipt language="JavaScript" src="'+cot_loc0+'"
    type="text\/javascript">' + '<\/scr' + 'ipt>');
    //]]>
    </script>


    ---before the /body tag----
    <a href="http://www.instantssl.com" id="comodoTL">SSL</a>
    <script language="JavaScript" type="text/javascript">
    COT("https://www.guitarcandy.com/images/secure_site.gif", "SC2", "none");
    </script>

    --

    Thanks,
    Carol
    ---
    Carol Scheible
    Key Concepts - publishing dynamic websites since 1995
    (919) 280-4099 (mobile)
    (919) 408-3065 ext 2 (home)
    (206) 350-1864 (FAX)
    web@sitepublish.com
    www.sitepublish.com



    --

    Thanks,
    Carol
    ---
    Carol Scheible
    Key Concepts - publishing dynamic websites since 1995
    (919) 280-4099 (mobile)
    (919) 408-3065 ext 2 (home)
    (206) 350-1864 (FAX)
    web@sitepublish.com
    www.sitepublish.com



  2. #2
    Charles Edmonds
    Guest

    Default Re: edit doctype tag?

    On Mon, 7 Apr 2008 21:13:09 -0400, Carol Scheible wrote:

    > Is there a way to edit the doctype and html tags using NO10, 8 or 7? The
    > site in question is built in 7, and I have 8 and 10 as well, so could
    > migrate up. I cannot find any way to edit this tag in any version of NO.


    You can't do it inside NOF.

    NOF V10 does generate valid code, but the DOCTYPE is incomplete (it does
    not include the DTD).

    I've recently made a couple of posts for WSP to fix this (it would take all
    of 30 minutes).

    Not sure about the change from Transitional to Strict (as that might break
    the generated code by NOF), but getting a complete DOCTYPE in place would
    solve a lot of problems like this.


    > My client was given some javascript code to display a floating SSL logo at
    > the bottom of every page. The problem is that the javascript code causes
    > the site background to dissappear in IE7, thus breaking the layout. The
    > company who gave us the code said to do this:


    We use the code from instantSSL to display the trust logo at this site:

    https://www.omegamarket.com

    It is just added into the BETWEEN HEAD tags of the page (using the HTML
    button).

    I don't see the code in your page, so I guess you have it removed for now.

    But that is where it goes - anywhere else would not work as expected.


    Good luck!

    Charles


    --
    -------------------------------------------------------------------------------------------------------
    Charles Edmonds
    cje_ByteMeSpammers_@lansrad.com (remove the _ByteMeSpammers_ to email me)
    www.pagesnip.com - "Print and Save the Web, just the way you want it!"
    www.clarionproseries.com - "Serious imaging tools for Clarion Developers"
    www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
    and Forms!"
    www.lansrad.com - "Intelligent Solutions for Universal Problems"
    www.fotokiss.com - "World's Best Auction Photo Editor"
    -------------------------------------------------------------------------------------------------------

  3. #3
    Carol Scheible
    Guest

    Default Re: edit doctype tag?

    Hi Charles,

    Thanks for your post. I just bought NO 10 upgrade hoping to fix this
    problem. Now I am out $50 and no better off. :-(

    The Trust logo code in your site looks identical to mine. It doesn't look
    like your site is using a background image, so that's why this problem
    doesn't affect you.

    I do have the Trust logo code still in a demo page...the problem only
    happens in IE7.

    Compare:
    www.guitarcandy.com
    to
    www.guitarcandy.com/cot.asp

    Thanks if anyone knows how to fix, (other than manually editing html with
    each publish). I tried putting a dummy page with just the logo code into
    an iframe that's included in my site. But the iframe constantly refreshes
    and you can hear a pop up noise with each broswer reload...very annoying.

    Carol


    "Charles Edmonds" <cje_ByteMeSpammers_@lansrad.com> wrote in message
    news:5oict4shwemr.1asyr9v1291wn.dlg@40tude.net...
    > On Mon, 7 Apr 2008 21:13:09 -0400, Carol Scheible wrote:
    >
    >> Is there a way to edit the doctype and html tags using NO10, 8 or 7? The
    >> site in question is built in 7, and I have 8 and 10 as well, so could
    >> migrate up. I cannot find any way to edit this tag in any version of
    >> NO.

    >
    > You can't do it inside NOF.
    >
    > NOF V10 does generate valid code, but the DOCTYPE is incomplete (it does
    > not include the DTD).
    >
    > I've recently made a couple of posts for WSP to fix this (it would take
    > all
    > of 30 minutes).
    >
    > Not sure about the change from Transitional to Strict (as that might break
    > the generated code by NOF), but getting a complete DOCTYPE in place would
    > solve a lot of problems like this.
    >
    >
    >> My client was given some javascript code to display a floating SSL logo
    >> at
    >> the bottom of every page. The problem is that the javascript code causes
    >> the site background to dissappear in IE7, thus breaking the layout.
    >> The
    >> company who gave us the code said to do this:

    >
    > We use the code from instantSSL to display the trust logo at this site:
    >
    > https://www.omegamarket.com
    >
    > It is just added into the BETWEEN HEAD tags of the page (using the HTML
    > button).
    >
    > I don't see the code in your page, so I guess you have it removed for now.
    >
    > But that is where it goes - anywhere else would not work as expected.
    >
    >
    > Good luck!
    >
    > Charles
    >
    >
    > --
    > -------------------------------------------------------------------------------------------------------
    > Charles Edmonds
    > cje_ByteMeSpammers_@lansrad.com (remove the _ByteMeSpammers_ to email me)
    > www.pagesnip.com - "Print and Save the Web, just the way you want it!"
    > www.clarionproseries.com - "Serious imaging tools for Clarion Developers"
    > www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
    > and Forms!"
    > www.lansrad.com - "Intelligent Solutions for Universal Problems"
    > www.fotokiss.com - "World's Best Auction Photo Editor"
    > -------------------------------------------------------------------------------------------------------



  4. #4
    Charles Edmonds
    Guest

    Default Re: edit doctype tag?

    On Mon, 7 Apr 2008 22:07:25 -0400, Carol Scheible wrote:

    > Thanks for your post. I just bought NO 10 upgrade hoping to fix this
    > problem. Now I am out $50 and no better off. :-(


    Sorry to hear that it did not fix your problem, but NOF does produce code
    that will pass validation (and is better in some other ways too).

    At least you didn't pay full fare for the upgrade<g>.


    > The Trust logo code in your site looks identical to mine. It doesn't look
    > like your site is using a background image, so that's why this problem
    > doesn't affect you.


    That makes sense.

    > I do have the Trust logo code still in a demo page...the problem only
    > happens in IE7.


    Yep - what is happening is that IE is being thrown into "Quirks" mode (the
    incomplete DOCTYPE does that, then all bets are off for getting an effect
    like the trust logo to work as planned.

    We ran across a similar problem when trying to use Facebox (an improved
    version of Thickbox). The effect works, but instead of being centered on
    the page it just slumps over to the side in IE 6 or 7. Firefox/Opera work
    fine.


    > Thanks if anyone knows how to fix, (other than manually editing html with
    > each publish). I tried putting a dummy page with just the logo code into
    > an iframe that's included in my site. But the iframe constantly refreshes
    > and you can hear a pop up noise with each broswer reload...very annoying.


    You know Carol, I tried<g>

    Even taking the approach of creating a template for you of your site (I
    modified the graphics and made you your own custom button set - which I
    think is a little cleaner to use), it still fell down when I added the
    Trust logo to it.

    I've attached the template for you anyway.

    Import it into a new test project and you can see how it works - maybe it
    will give you some site ideas that will at least make the rest of the site
    easier to maintain.

    When you go into Style view - you now have your own style.


    Hopefully WSP will come forward and allow the DOCTYPE changes and equally
    important set a complete one in the future.

    Meanwhile - good luck with your project!


    Charles



    --
    -------------------------------------------------------------------------------------------------------
    Charles Edmonds
    cje_ByteMeSpammers_@lansrad.com (remove the _ByteMeSpammers_ to email me)
    www.pagesnip.com - "Print and Save the Web, just the way you want it!"
    www.clarionproseries.com - "Serious imaging tools for Clarion Developers"
    www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
    and Forms!"
    www.lansrad.com - "Intelligent Solutions for Universal Problems"
    www.fotokiss.com - "World's Best Auction Photo Editor"
    -------------------------------------------------------------------------------------------------------

  5. #5
    Carol Scheible
    Guest

    Default Re: edit doctype tag?

    Charles,

    > Even taking the approach of creating a template for you of your site (I


    Thanks so much for doing that....you went way above and beyond the call of
    duty!

    Carol




  6. #6
    Charles Edmonds
    Guest

    Default Re: edit doctype tag?

    On Tue, 8 Apr 2008 08:38:19 -0400, Carol Scheible wrote:

    >> Even taking the approach of creating a template for you of your site (I

    >
    > Thanks so much for doing that....you went way above and beyond the call of
    > duty!


    Hi Carol,

    I was intrigued to see if the method I used in creating the template would
    provide a workable solution.

    Even though it did not I figured that sending you the template would give
    you a different perspective on how to achieve the effect your using.

    ;-)

    Take care,

    Charles



    --
    -------------------------------------------------------------------------------------------------------
    Charles Edmonds
    cje_ByteMeSpammers_@lansrad.com (remove the _ByteMeSpammers_ to email me)
    www.pagesnip.com - "Print and Save the Web, just the way you want it!"
    www.clarionproseries.com - "Serious imaging tools for Clarion Developers"
    www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
    and Forms!"
    www.lansrad.com - "Intelligent Solutions for Universal Problems"
    www.fotokiss.com - "World's Best Auction Photo Editor"
    -------------------------------------------------------------------------------------------------------

  7. #7
    Junior Member
    Join Date
    Mar 2012
    Posts
    14

    Default

    Is there a problem with adding a doctype before the uneditable one generated by Netobjects Fusion?
    Regards

    Pete

  8. #8
    Senior Member gotFusion's Avatar
    Join Date
    Jan 2010
    Location
    www.gotHosting.biz
    Posts
    4,529

    Default

    Quote Originally Posted by PeteSmithies View Post
    Is there a problem with adding a doctype before the uneditable one generated by Netobjects Fusion?
    Regards

    Pete
    You don't ADD them, you select the one you want to use from the drop down list on the site options palette
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	doc-type.gif 
Views:	348 
Size:	27.0 KB 
ID:	1233  
    NetObjects Fusion Cloud Linux enabled Web Hosting, support + training starts at $14.95
    NetObjects Fusion web Hosting and support + ASP + PHP + ColdFusion + MySQL + MS SQL
    FREE NetObjects Fusion Support & training comes with all web hosting accounts
    NetObjects Fusion Web Hosting: http://www.gotHosting.biz

  9. #9
    Junior Member
    Join Date
    Mar 2012
    Posts
    14

    Default

    Hi there, sorry yes I know that - but I have been having problems with the ones that NOF generates and I want to use
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> as this does not mess up the formatting when I have other 3rd party content on my pages.

    So I inserted this above the "greyed out" DOCTYPE selected in fusion and it appears to work without any issues - just wanted some advice as to whether this is ok? Thanks
    Pete

  10. #10
    Senior Member gotFusion's Avatar
    Join Date
    Jan 2010
    Location
    www.gotHosting.biz
    Posts
    4,529

    Default

    Fusion is a code generator. The code it writes is compatible with the doctypes available internally.

    Using a doctype that is not compatible with the coding that the program generates is not recommended.

    Fusion 12 supports the doctype you want to use. Fusion 10 does not as that doctype did not exist several years ago when the version 10 product was curent.

    In Fusion 12 you would select the html 4.01 doctype from the list.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	doc-type.gif 
Views:	356 
Size:	18.6 KB 
ID:	1236  
    NetObjects Fusion Cloud Linux enabled Web Hosting, support + training starts at $14.95
    NetObjects Fusion web Hosting and support + ASP + PHP + ColdFusion + MySQL + MS SQL
    FREE NetObjects Fusion Support & training comes with all web hosting accounts
    NetObjects Fusion Web Hosting: http://www.gotHosting.biz

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •