Nov 23, 2009

Auto Screen Position Changing Possible?

free web hosting
Open Discussion & Free Web Hosting > Computers & Tech > Programming > Scripting > ASP / ASP.NET

Auto Screen Position Changing Possible?

Jeigh
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

Comment/Reply (w/o sign-up)

ethergeek
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.

 

 

 


Comment/Reply (w/o sign-up)

Jeigh
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.

Comment/Reply (w/o sign-up)

ethergeek
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

Comment/Reply (w/o sign-up)

dhanesh
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.

Comment/Reply (w/o sign-up)

Jeigh
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)

Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : Auto Screen Changing


    Looking for auto, screen, position, changing,

See Also,

*SIMILAR VIDEOS*
Searching Video's for auto, screen, position, changing,
advertisement



Auto Screen Position Changing Possible?

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com