Wrox Programmer Forums
|
BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4
This is the forum to discuss the Wrox book Beginning Dreamweaver MX by Charles E. Brown, Imar Spaanjaars, Todd Marks; ISBN: 9780764544040
Please indicate which version of the book you are using when posting questions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 24th, 2009, 09:53 AM
Authorized User
 
Join Date: Apr 2007
Posts: 19
Thanks: 4
Thanked 0 Times in 0 Posts
Default maintaining relative page size/length

How can I stop the area below the text box from dropping down after clicking the btnSubmit?
If you look at the position of the footer ("Having difficulties? Contact the Webmaster"), it drops down when the "Welcome, [UserName]" is displayed.
From chapter 7 page 264-266
Please advise.
Thanks, Tracey
Beginning Dreamweaver MX 2004
ISBN 0-7645-5524-3 (not 4) 762 pages (not 792 pages)
copyright 2004... 10 9 8 7 6 5 4 3

Code:
<% if Session("UserName") = "" then %>
 <form action="home.asp" method="post" name="frmUserName" id="frmUserName">
  <input name="txtUserName" type="text" id="txtUserName" />
  <input name="btnSubmit" type="submit" id="btnSubmit" value="Tell Us Your Name" />
 </form>
<% else %>
 Welcome, <% Response.Write(Session("UserName")) %>.
<% end if %>
__________________
Tracey
 
Old October 24th, 2009, 11:00 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

What do you mean with "drops down"? If I am not mistaken, it's simply pressed down a bit because of the welcome text. Or do you mean something else?

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old October 26th, 2009, 07:59 AM
Authorized User
 
Join Date: Apr 2007
Posts: 19
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Imar View Post
... If I am not mistaken, it's simply pressed down a bit because of the welcome text... Imar
Yes, this is what I mean.
I think it would look more professional if the visible text below the input area did not "jump down" after clicking on the submit button.

Thanks, Tracey
__________________
Tracey
 
Old October 26th, 2009, 08:29 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

This is typically how browsers work: extra content in a page pushes down content that follows.

You can fix the text using absolute positioning, but you will probably run into problems with longer pages as the other text / content may overlap...

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
Tracey (October 26th, 2009)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Page Size HelmutArnold Reporting Services 0 October 6th, 2006 08:47 AM
Maintaining state in an Ajax page isme BOOK: Professional Ajax ISBN: 978-0-471-77778-6 0 April 27th, 2006 07:24 PM
relative size query noam Access 4 December 12th, 2005 06:00 PM
page size treasacrowe Classic ASP Basics 4 September 6th, 2004 02:25 AM
Maintaining Variables from Page to Page saturdave ASP.NET 1.0 and 1.1 Basics 6 February 4th, 2004 03:42 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.