Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Auto Screen Position Changing Possible?
Jeigh
post Aug 2 2007, 11:09 AM
Post #1


Whitest Black Mage
Group Icon

Group: [MODERATOR]
Posts: 1,352
Joined: 20-May 05
From: NB, Canada
Member No.: 5,281



Probably the most vague title ever, but I have no clue if what I'm thinking even exists and if so, what it would be called haha. So I'm developing an asp .net application and there are pages where I fill in information, hit submit, and I want to just have a report appear beneath that, but then would like to have the screen automatically scroll down to the report rather then having the user have to scroll down each time. I don't want to load a new form if possible just to keep all the input locations and output in one spot in case they want to test multiple values. It won't ruin the design if I can't do this, but figured I'd see if any of you that have more asp/web in general experience know how you'd go about doing this... I have to keep working on the main functionality less I'd toy around with things trying to find it myself wink.gif
Go to the top of the page
 
+Quote Post
ethergeek
post Aug 3 2007, 04:49 PM
Post #2


Premium Member
Group Icon

Group: [HOSTED]
Posts: 393
Joined: 9-March 07
From: Tucson, AZ
Member No.: 20,794



QUOTE(Jeigh @ Aug 2 2007, 04:09 AM) *
Probably the most vague title ever, but I have no clue if what I'm thinking even exists and if so, what it would be called haha. So I'm developing an asp .net application and there are pages where I fill in information, hit submit, and I want to just have a report appear beneath that, but then would like to have the screen automatically scroll down to the report rather then having the user have to scroll down each time. I don't want to load a new form if possible just to keep all the input locations and output in one spot in case they want to test multiple values. It won't ruin the design if I can't do this, but figured I'd see if any of you that have more asp/web in general experience know how you'd go about doing this... I have to keep working on the main functionality less I'd toy around with things trying to find it myself wink.gif


If all you really want to do is autoscroll the page, why not do it client side? I'm assuming the report is going to be run on the server and then returned to the client asynchronously, so in that case, just hook the onClick event for your submit object in javascript and change the scrollbar position.
Go to the top of the page
 
+Quote Post
Jeigh
post Aug 3 2007, 05:35 PM
Post #3


Whitest Black Mage
Group Icon

Group: [MODERATOR]
Posts: 1,352
Joined: 20-May 05
From: NB, Canada
Member No.: 5,281



Right, how? haha. I mean I already knew that's the theory behind it, I just don't know how to manipulate the scroll bar, since there is no top level scroll bar property or anything. I'm sure it's something extremely simple I just am missing the specifics and don't feel like hunting through google results for a single word or something that will trigger my memory.
Go to the top of the page
 
+Quote Post
ethergeek
post Aug 3 2007, 06:31 PM
Post #4


Premium Member
Group Icon

Group: [HOSTED]
Posts: 393
Joined: 9-March 07
From: Tucson, AZ
Member No.: 20,794



QUOTE(Jeigh @ Aug 3 2007, 10:35 AM) *
Right, how? haha. I mean I already knew that's the theory behind it, I just don't know how to manipulate the scroll bar, since there is no top level scroll bar property or anything. I'm sure it's something extremely simple I just am missing the specifics and don't feel like hunting through google results for a single word or something that will trigger my memory.


Try this technique: http://www.mediacollege.com/internet/javas...age/scroll.html
Go to the top of the page
 
+Quote Post
dhanesh
post Aug 4 2007, 10:21 AM
Post #5


Binary Geek
Group Icon

Group: Members
Posts: 444
Joined: 4-November 05
From: The Digital Arena
Member No.: 9,440



Why not use AJAX ?

1) On button click you could set the screen to go lighter and then show your report on the layer above it with a clos option that when clicked returned to the form page. While returning you could set this to either clear all textbox values or just make some labels visible to tell the user that values are already present in the fields, or whatever user interface you would want to make easier for the user.

2) Use a master page and give all your text fields in that. and on button click just join another page to that master. so the look and feel is the same plus this transition is faster.

How many fields do you have ? lol dont tell me 50. But i think even 50 fields if arranged the rightway through layers could give you enough space to show your values. If you have a gridview to show them then that makes it much easier. this is just an idea. to implement this idea in real would need you to take many things into consideration, like page size, if edit is enabled then it will bloat up the gridview and make the width scrollable etc ..

Regards
Dhanesh.
Go to the top of the page
 
+Quote Post
Jeigh
post Aug 4 2007, 02:48 PM
Post #6


Whitest Black Mage
Group Icon

Group: [MODERATOR]
Posts: 1,352
Joined: 20-May 05
From: NB, Canada
Member No.: 5,281



Well, the main reason I didn't use AJAX was because I haven't used it before wink.gif Not that I'd be against learning, but basically I have these reports created in microsoft report services (*shudder*) that I need to give them access to, and my boss told me to use what I'm using, so I am haha.

Thanks for the link and ideas though, I'll get that working when I goto work on tuesday biggrin.gif (woo long weekends haha)
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Getting Screen Resolution using Javascript.(8)
  2. Stop AUTO_INCREMENT From Jumping(13)
  3. Grand Theft Auto: San Andreas(109)
  4. Bad_pool_header(8)
  5. Firefox Tab Position(3)
  6. VB: Howto Auto-select Last Item In Listbox(5)
  7. Myspace Code Changing(10)
  8. Custom Windows Boot Screen(11)
  9. Help, Attempting To Boot Freebsd-6 <solved>(2)
  10. How to Disable Print Screen?(17)
  11. Orkut.com Auto Scrapper - Scrap Ur Friend List In One Go(12)
  12. Resolution Keeps Changing To 800x600 After Restart(20)
  13. Windows Media Player Plays All Video In Full Screen(11)
  14. Google- Changing The Search Preferences!(3)
  15. Blue Screen - irql_not_less_or_equal(35)
  1. Need Help Changing MTU Settings For XBox(13)
  2. How To Add Administrator Account In Logon Screen(4)
  3. Get Mouse Position(4)
  4. Auto-click Script(7)
  5. Laptop Auto Starts After Turning It Off(8)
  6. Grand Theft Auto Iv(10)
  7. Auto Volume Controller For Windows(0)
  8. Changing Path Of Shared Object(2)
  9. Re-ordering Welcome Screen & Moving Heavily Fragmented File(1)
  10. Lcd Screen(5)
  11. Search Engine Keyword Position(0)
  12. Matte Or Glossy?(17)
  13. Web Hosting - Changing Hosts With Existing Domain Name(1)


 



- Lo-Fi Version Time is now: 7th October 2008 - 08:50 AM