473,558 Members | 2,863 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Maintaining focus after refresh

Hello All,
I set some table properties (background color, border style, etc) as a
result of an onclick event in various cells. However, when I refresh the
page it restores the default settings (as set up in the css file) as I would
expect. Can I get some help on how to get my page to remember it's
settings??
TIA.
Best Regards,
Steve
May 23 '06 #1
2 1932
Stevek wrote:
Hello All,
I set some table properties (background color, border style, etc) as a
result of an onclick event in various cells. However, when I refresh the
page it restores the default settings (as set up in the css file) as I would
expect. Can I get some help on how to get my page to remember it's
settings??


You could either use cookies in the client, or pass the settings back to
the server with a hidden form element and have the server pass them back
in the refresh URL.

--
Ian Collins.
May 23 '06 #2
Thanks. That's what I thought.

"Ian Collins" <ia******@hotma il.com> wrote in message
news:4d******** *****@individua l.net...
Stevek wrote:
Hello All,
I set some table properties (background color, border style, etc) as a
result of an onclick event in various cells. However, when I refresh the
page it restores the default settings (as set up in the css file) as I
would
expect. Can I get some help on how to get my page to remember it's
settings??


You could either use cookies in the client, or pass the settings back to
the server with a hidden form element and have the server pass them back
in the refresh URL.

--
Ian Collins.

May 23 '06 #3

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

Similar topics

1
2941
by: jason | last post by:
Hello. I've got this page that refreshes automatically and I am able to set the focus on a specific field at page load with. However the cursor goes back to position 1. In some cases my users will be in the middle of typing when a refresh occurs. How do get the cursor back to the position it was in when the refresh took place? Here's how...
8
5151
by: Bilal | last post by:
Hi I have an application with numerous pages. A couple of these pages include a functionality that allows it to be refreshed every 15 secs. My problem is that this "refreshing" works too well: THe page that is refreshed always comes into focus even when I'm using another page. I was wondering whether there is a way for the page with the...
4
2022
by: lost hope | last post by:
hey guys, on the main page of my site, i have a login area (user/pass text boxes). when the user submits the form, the page is reloaded with with a global php variable "loggedIn" set to true. i also store the username and password in the page in a hidden form -- so that it can be passed to other pages on the site through standard navigation...
2
2050
by: S P Arif Sahari Wibowo | last post by:
Hi! Do you know how to put a form's Access-Visual-Basic-code that will force the form to be inserted, while the user has not type anything in the form, without changing focus, selection, etc.? Here is the story. I have this structure:
1
1604
by: Jim Bayers | last post by:
This has been driving me crazy. server.transfer doesn't set the focus to the page I transfer to so when the user does a refresh, the results aren't what's expected. I have a datagrid on one page that lists the student's guests. At the bottom of the datagrid is an 'add a new guest' button. Users click on this button an it takes them to a...
0
1252
by: Albert Pascual | last post by:
I am looking for a script that WHEN the IE window is in focus will start a timer to refresh the page, when the window is not in focus will stop the timer. When comes back to focus will refresh the screen and start the counter again to refresh in 1 minute Anybody?
5
3665
by: jobi | last post by:
Hi, I'm trying to develop this vb.net application which gathers info. When I start the gathering process, I refresh text-fields in the form to see progress and to see where it gets. This works fine as long as the application has the focus. When I start an other application or switch to an other application (e.g. taskmanager, outlook),...
7
2124
by: Nathan Sokalski | last post by:
I have a page which I dynamically add several usercontrols (*.ascx files) to using the following code: Public Sub Refresh() For Each section As DataRow In Me.GetSections().Rows CType(Me.FindControl("admin" & CStr(section("buttontext")).Replace(" ", "")), adminsection2).RefreshSection() Next End Sub
4
5385
by: =?ISO-8859-15?Q?Albe_V=B0?= | last post by:
In my Application, I need to make a certain graphical refresh, interrogating SqlServer, only if Application has focus (i.e. the title bar is blue). Interrogating .Focused property of various forms of the project is not the way (maybe, enumerting forms and checking if at least one of them has focus may work, but I don't think this to be the...
0
7549
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7835
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8061
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7593
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7914
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5455
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
1
2045
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1164
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
869
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.