mpelletier
Posts: 1
|
| Posted: 04/05/2006, 10:23 AM |
|
Good Afternoon,
I am using ccs3 and have a multi-grid form in which I would like to set the focus before show to a particular grid based on the current time. Does anyone know what the command is to set the focus to a grid in asp3?
Thanks for any help.
Mike
|
 |
 |
peterr
Posts: 5971
|
| Posted: 04/05/2006, 1:04 PM |
|
Hi Mike,
Focus is not quite related to ASP since ASP is a server-programming technology, while focus can be set only on the client side. Thus you may need to do this with JavaScript, though JavaScript could be output from ASP into a Label.
Anyway, I'd recommend searching on Google how to set focus via JavaScript since this is the main thing that you may need.
BTW, I'm also not quite sure what do you mean by "focus" because grids cannot have focus. Focus can be assigned only to an editable control like a textbox.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
Mike Pelletier
|
| Posted: 04/06/2006, 4:55 AM |
|
Thanks Peter,
Essentially what I have is a day calander from midnight to midnight keyed off a monthly calander so when the user clicks on the day link it brings up that days events based on the time similar to a MS Outlook daily planner. It works great, however I want it so when you click on the day link it brings you to the daily calander focused (centered might be a better word) on the current time. Every hour has it's own seperate grid, so I am looking for a way to put say the 10am to 11am grid at the center of the page when currenttime is within that timeframe. I hope this explains it better. I will try searching java scripts, I hadn't thought of that, I was searching for asp setfocus. Thanks Mie
|
|
|
 |
Chris_T
|
| Posted: 04/06/2006, 9:26 AM |
|
Also sounds like some kind of html issue too. When you click a link and it 'scrolls' down the page to its target. Google html anchoring or something similar.
|
|
|
 |
Benjamin Krajmalnik
|
| Posted: 04/07/2006, 10:26 AM |
|
You need to create HTML anchors on your page and pass them on the URL.
|
|
|
 |
Mike Pelletier
|
| Posted: 04/07/2006, 11:15 AM |
|
Thanks for the push in the right direction. I created Anchors at each grid and then wrote a javascript that gets the current hour and uses that to go to the correct anchor. Works great!
|
|
|
 |
|