Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Software > Adobe Software > Dreamweaver

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-13-2008, 12:34 AM
ktpardue
 
Posts: n/a
Doctype problem

Hi,
I am developing webpages by creating templates through dreamweaver. I use asp
code. I just discovered that when I view the source code through a browser, the
doctype doesn't appear. The webmaster checked the asp code and said it was
fine. Could the missing doctype declaration be linked somehow to the templates?
Will creating pages based upon templates somehow hide code and make other code
visible when viewing source code in a browser? Here is a mockup where you can
view the code from a browser:

http://library.colostate-pueblo.edu/.../circ/test.asp

Here is the code from dreamweaver code view:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%
'************************************************* *****************************
'* *
'* Below is the log of changes for file: subPageAbout.dwt *
'* *
'* DATE USER ID HISTORY *
'* -------------------------------------------------------------------------*
'* 081807 Pardue Template *
'* *
'************************************************* *****************************
%>
<!-- #include virtual = "/cgi-bin/ObjRotator.asp"-->
<% Response.CacheControl = "no-cache" %>
<% Response.AddHeader "Pragma", "no-cache" %>
<% Response.Expires = -1 %>
<%Set RandomObj = new ObjRotator%>

<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin
template="../../../Templates/subPageAbout.dwt" codeOutsideHTMLIsLocked="true"
-->
<head>

Thanks,
ktpardue

Reply With Quote
  #2 (permalink)  
Old 08-13-2008, 01:26 AM
Thierry
 
Posts: n/a
Re: Doctype problem

"ktpardue" <webforumsuser@macromedia.com> wrote in message
news:g7t6le$j9p$1@forums.macromedia.com...
> Hi,
> I am developing webpages by creating templates through dreamweaver. I use
> asp
> code. I just discovered that when I view the source code through a
> browser, the
> doctype doesn't appear. The webmaster checked the asp code and said it was
> fine. Could the missing doctype declaration be linked somehow to the
> templates?
> Will creating pages based upon templates somehow hide code and make other
> code
> visible when viewing source code in a browser? Here is a mockup where you
> can
> view the code from a browser:
>
> http://library.colostate-pueblo.edu/.../circ/test.asp
>
> Here is the code from dreamweaver code view:
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> <%
> '************************************************* *****************************
> '*
> *
> '* Below is the log of changes for file: subPageAbout.dwt *
> '*
> *
> '* DATE USER ID HISTORY
> *
>
> -------------------------------------------------------------------------*
> '* 081807 Pardue Template
> *
> '*
> *
> '************************************************* *****************************
> %>
> <!-- #include virtual = "/cgi-bin/ObjRotator.asp"-->
> <% Response.CacheControl = "no-cache" %>
> <% Response.AddHeader "Pragma", "no-cache" %>
> <% Response.Expires = -1 %>
> <%Set RandomObj = new ObjRotator%>
>
> <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin
> template="../../../Templates/subPageAbout.dwt"
> codeOutsideHTMLIsLocked="true"
> -->
> <head>


Move the DTD declaration between the ASP code and the <html ...> element and
see how it goes.
As a side note, you may want to pick another doctype as your markup is not
"clean" enough for "strict".

--
Thierry
Articles and Tutorials: http://www.TJKDesign.com/go/?0
--
http://developer.yahoo.com/ helps you build applications and mashups

Reply With Quote
  #3 (permalink)  
Old 08-13-2008, 01:34 AM
Alan
 
Posts: n/a
Re: Doctype problem



<!-- InstanceBegin template="../../../Templates/subPageAbout.dwt"

Is the Templates folder in the root level of this Local Site Folder?
Is the Local Site Folder defined to the folder containing this site's
"homepage"?

the above should be this in a normal situation:
<!-- InstanceBegin template="/Templates/subPageAbout.dwt"

a site root relative path, not a document relative path pointing three
folder levels up.

--
Alan
Adobe Community Expert, dreamweaver

http://www.adobe.com/communities/experts/



Reply With Quote
  #4 (permalink)  
Old 08-13-2008, 05:59 PM
ktpardue
 
Posts: n/a
Re: Doctype problem

Hi, thanks for the reply. First, thanks for pointing out the transitional vs.
the strict. I inherited this site and have set people on it to clean up the
deprecated code. Meanwhile, I will reset it to transitional. The whole darn
site is in transition anyway as we move from table based layout to css and
content management. I have to manage the mess that is interim. Secondly, I
tried moving the declaration after the asp code and still it was no-go. Can't
figure this one out. The template code is wrong, though, as another pointed
out, so I am going to fix that and attack the declaration problem again. If you
have any more ideas on what I could do, reply again.
Thanks,
KT Pardue

Reply With Quote
  #5 (permalink)  
Old 08-13-2008, 06:07 PM
Thierry
 
Posts: n/a
Re: Doctype problem

"ktpardue" <webforumsuser@macromedia.com> wrote in message
news:g7v3tq$nvb$1@forums.macromedia.com...
> Hi, thanks for the reply. First, thanks for pointing out the transitional
> vs.
> the strict. I inherited this site and have set people on it to clean up
> the
> deprecated code. Meanwhile, I will reset it to transitional. The whole
> darn
> site is in transition anyway as we move from table based layout to css and
> content management. I have to manage the mess that is interim. Secondly, I
> tried moving the declaration after the asp code and still it was no-go.
> Can't
> figure this one out. The template code is wrong, though, as another
> pointed
> out, so I am going to fix that and attack the declaration problem again.
> If you
> have any more ideas on what I could do, reply again.


I don't use templates so I can't help you with this, but you may want to
repost using a different subject line.

Good luck with this

--
Thierry
Articles and Tutorials: http://www.TJKDesign.com/go/?0
--
http://developer.yahoo.com/ helps you build applications and mashups


Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Software > Adobe Software > Dreamweaver


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:58 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Optical Illusions | Blog5 Game Cheats | Health 2007 | Car Finance | Ringtone



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114