Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 24th, 2009, 09:53 AM
Authorized User
 
Join Date: Apr 2007
Location: , , .
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
  #2 (permalink)  
Old October 24th, 2009, 11:00 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 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!
  #3 (permalink)  
Old October 26th, 2009, 07:59 AM
Authorized User
 
Join Date: Apr 2007
Location: , , .
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
  #4 (permalink)  
Old October 26th, 2009, 08:29 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 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)
 


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

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


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



All times are GMT -4. The time now is 10:03 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.