473,379 Members | 1,330 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

scroll bar pop-up

I want to make a pop-up window with a scroll-bar, which a user can select a
value with, and send it back to server. this server will then send back a
new page containing that value. Also, opening the window again, the
scrollbar would still be in that position.

To make this clearer, the sequence I am thinking of is this:-
1. user clicks "enter value" button in main window
2. new window with scroll bar opens
3. user moves scroll-bar to desired position (eg. 500)
4. user selects "use this value" button
5. pop-up sends information to main window, and closes itself
6. the main window posts-back this new value
7. the new page shows this value, and some information derived from it
8. user clicks the "enter value" button again
9. window opens, and the scroll bar is in the place it was left in (eg.
500)

I can open up a window with a scroll bar in it (see code for the window
itself below), and I can read the value, but my javascript doesn't move the
scrollbar - any ideas on this? My scroll-bar is ugly too, and I would like
to replace some parts with images. Also, how do I pass the values between
the two windows (main and pop-up)?

Finally, I am used to ASP, rather than ASP.NET. I keep reading that using
Value=Request("Value") is now bad. What should I use instead of this to get
information between the client and server?

Thanks
ME

(Note - code below sig)

--
Martin Eyles
ma**********@NOSPAM.bytronic.com
<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="TimeEntry3.aspx.vb" Inherits="LineViewProto.NET.TimeEntry3"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>TimeEntry3</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
<style> .scroller {}
</style>
<script>
function setscroll(){
xposa=document.getElementById("scrolly");
xposb=xposa.scrollLeft;
xposb=500;
}

function message(){
xposa=document.getElementById("scrolly");
xposb=xposa.scrollLeft;
alert(xposb);
}
</script>
</head>
<body ms_positioning="GridLayout" onload="javascript:setscroll()">
<form id="Form1" method="post" runat="server">
<div id="scrolly" class="scroller" style="OVERFLOW:scroll;
WIDTH:300px; HEIGHT:16px">
<div style="WIDTH:1300px; HEIGHT:0px">
</div>
</div>
<a href="javascript:message()">read poisition of scroll bar</a>
<!-- button here to go back to server-->
</form>
</body>
</html>
Nov 18 '05 #1
0 1457

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Arlie Rahn | last post by:
I would like to ad a custom scroll bar control to my app that has a customizable and "flat" look to it (not the normal VB look). Does anyone have any ideas on where to find a good one?
0
by: sumGirl | last post by:
Hi. I have an HTML app that includes a psuedo drop-down menu I created using some css and some vbs. It looks like so: ---------- | option1 <-- vertical scroll bar option2 | option3 |...
4
by: ojorus | last post by:
Hi! I just wonder how I can save a page's scroll position with javascript. (i'm not a javascript developer) I have a PHP-page with two columns; the left contains a lot of thumbnails, and the right...
1
by: Keltus | last post by:
Hello, I have a Form with a ListBox in it. I'd like to be able to scroll the ListBox even when it's not in focus. ie. when i scroll the mousewheel when my focus is on the form, I'd like the...
3
by: Benny Raymond | last post by:
I've looked around msdn for about an hour now and can't figure out how to place an event when the user scrolls, or even how to get the value of where the scroll bar is actually placed... Anyone...
1
by: JC | last post by:
I'm sure you've all seen the save scroll position from 4 guys from rolla which can be found here > http://aspnet.4guysfromrolla.com/articles/111704-1.aspx BUT try to get that to work AND still be...
69
by: RC | last post by:
I know how to do this in JavaScript by window.open("newFile.html", "newTarget", "scrollbars=no,resizable=0,width=200,height=200"); The browser will open a new window size 200x200, not allow...
6
by: Mike Johnson | last post by:
I have a ListView on a form, I'm displaying the items as a list. The Scroll is set to true. I want to know how can I set the scroll bar to Vertical?
12
Frinavale
by: Frinavale | last post by:
I think I'm trying to do something impossible. I have a <div> element with a overflow style set to "scroll". In other words my <div> element allows the user to scroll the content within it. ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.