Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<!DOCTYPE and AJAX controls issue

Status
Not open for further replies.
Apr 11, 2002
193
0
0
IN
Hi,

If i remove <!DOCTYPE then some of the AJAX Controls doesnt give expected results. For example the UpdateProgress, even if i have mentioned HorizontalSide="Center" VerticalSide="Middle" in AlwaysVisibleControlExtender the image inside the UpdateProgress show up at the top left corner.
Is the <!DOCTYPE necessary for these controls. If yes then is there any work around.
I am using AJAX Extension 1.0 and ASP.net 2.0.

Thanks,
Manish
 
In my experience DOCTYPE is necessary for the ajax controls to work 100% properly. I don't know of any workarounds. You might want to ask in the General Ajax discussion forum on this site.
 
Why would you want to remove the DocType..? it is important to the way the page reneders.
 
Hi,

Thanks for the responses. I had a discussion with the page designers and they had to put a footer on every page. We dont want the footer to be in a fixed position but it should always be at the bottom of the page. So they told me that if i have doctype then it wont let them get the height of the page which will allow them to put the footer at the bottom of the pages. So i just thought of removing the doctype.

Thanks,
Manish
 
So they told me that if i have doctype then it wont let them get the height of the page which will allow them to put the footer at the bottom of the pages.
They are wrong. Specifying a DOCTYPE has no relevance on placing a footer on your page.


------------------------------------------------------------

Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions
 
Hi,

Just a simple test.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"<html>
<body>
<table height="100%" border="1">
<tr>
<td valign="bottom">
This is a test page.
</td>
</tr>
</table>
</body>
</html>

If i remove doctype then the text goes to the bottom else it stays on top. This is what they were saying.

Thanks,
Manish
 
Just a simple test.
It may just be a simple test, but there's a few things wrong with it. For example, it doesn't validate, you are using depreciated attributes and you are using a table for page layout. You need to fix all those things first as they are the root cause of why you can't create a footer at the bottom of the page.

When you remove the DOCTYPE, it throws IE into "quirks" mode which is why it may appear correct in that browser, however it has to guess at what you wanted which is a very poor way of designing a website, and something that will most likely fail in a more standards compliant browser.


------------------------------------------------------------

Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions
 
Hi Mark,

Thanks for pointing out things which are incorrect. Can you please advice what shall i use for page layout if not the table and how do i place a footer on the page. It would be a great help for me.

Thanks,
Manish
 
Can you please advice what shall i use for page layout if not the table
You would use a CSS based approach. Have a look at some basic tutorials such as the one from here.

how do i place a footer on the page.
It depends on what functionality you want. Does the footer always have to be displayed (if so you would use absolute positioning)? If the footer should always be at the bottom of the screen unless the content expands, then you would use a method such as this. Either way, this isn't an ASP.NET issue so should be discussed in the HTML forum.


------------------------------------------------------------

Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions
 
As a side-note, I notice that although you have asked around 85 questions on the forums here, you have only marked one of the answers as valuable, and I can only see one or two acknowledgements of other peoples responses. If you are not getting the answers that you need read FAQ222-2244 to see how to ask better questions. If you are getting the answers you need see FAQ222-2244 to see how to acknowledge the answers given.

Paragraph 16 of the FAQ explains about this being a two-way forum, to give guidance on answering other peoples questions, as I also notice that you haven't yet made any posts in other peoples threads.


------------------------------------------------------------

Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions
 
Mark,

Thanks for the advice. I will try to implement it in my code.

Manish
 
Hi Mark,

As per your advice i have taken a css based approach. This is what i have in the css
<style type="text/css" media="all">

/* The CSS that's required to position the footer */

html
{
height: 100%;
}

body
{
height: 100%;
}

#nonFooter
{
position: relative;
min-height: 100%;
}

* html #nonFooter
{
height: 100%;
}

#footer
{
position: relative;
margin: -7.5em auto 0 auto;
}


* html #footer
{
margin-top: -7.4em;
}
</style>

It does work with <!DOCTYPE.

Thanks,
Manish
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top