Hi
I need to change my mousepointer when the mouse moves over certain populated
controls on my aspx page.
I've tried the following but without success (after visiting a site
recommended from this forum, ie css cursors tutorial)
I have, in the HTML defined this
<Head>
<style type="text/css">
..xlink { CURSOR: crosshair }
</style>
....
...
</HEAD>
and in the aspx.vb page
(where lbx is a listbox class variable (for a findcontrol in a grid))
lbx.Attributes("onmouseover") = "this.style.class=""xlink"" "
which renders a syntax error (I have tried single quotes etc)
Note: changing colours in the control with the following works
'lbx.Attributes("onmouseover") = "this.style.color='red'"
any ideas / help
TIA
--
Neal Rogers
University of Cape Town 5 1120
lbx.Attributes("onmouseover") = "this.className='xlink'"
Eliyahu
"Neal" <Ne**@discussions.microsoft.com> wrote in message
news:6E**********************************@microsof t.com... Hi
I need to change my mousepointer when the mouse moves over certain
populated controls on my aspx page.
I've tried the following but without success (after visiting a site recommended from this forum, ie css cursors tutorial)
I have, in the HTML defined this <Head> <style type="text/css"> .xlink { CURSOR: crosshair } </style> ... .. </HEAD>
and in the aspx.vb page (where lbx is a listbox class variable (for a findcontrol in a grid))
lbx.Attributes("onmouseover") =
"this.style.class=""xlink"" " which renders a syntax error (I have tried single quotes etc)
Note: changing colours in the control with the following works 'lbx.Attributes("onmouseover") = "this.style.color='red'"
any ideas / help TIA
-- Neal Rogers University of Cape Town
Thanks,
That takes care of the syntax error,
but the mousepointer does not change on mouseover the lbox as anticipated.
I tried these ,.. all to no avail
1.. 'lbx.Attributes("onmouseover") = "this.className='xlink'"
2.. 'lbx.Attributes.Add("onmouseover", "clientfunction();")
'lbx.Attributes("onmouseover") = "this.className='xlink'"
3..' lbx.Attributes.Add("onmouseover",
"this.classname='xlink'")
All escape the syntax check, but none work.
anything I am missing here ?
Neal
"Eliyahu Goldin" wrote: lbx.Attributes("onmouseover") = "this.className='xlink'"
Eliyahu
"Neal" <Ne**@discussions.microsoft.com> wrote in message news:6E**********************************@microsof t.com... Hi
I need to change my mousepointer when the mouse moves over certain populated controls on my aspx page.
I've tried the following but without success (after visiting a site recommended from this forum, ie css cursors tutorial)
I have, in the HTML defined this <Head> <style type="text/css"> .xlink { CURSOR: crosshair } </style> ... .. </HEAD>
and in the aspx.vb page (where lbx is a listbox class variable (for a findcontrol in a grid))
lbx.Attributes("onmouseover") = "this.style.class=""xlink"" " which renders a syntax error (I have tried single quotes etc)
Note: changing colours in the control with the following works 'lbx.Attributes("onmouseover") = "this.style.color='red'"
any ideas / help TIA
-- Neal Rogers University of Cape Town
Try it on unpopulated listbox or on a control that doesn't contain any other
controls. It should work. Could be you have different setting for the inner
controls interfering with the one for the listbox.
Eliyahu
"Neal" <Ne**@discussions.microsoft.com> wrote in message
news:01**********************************@microsof t.com... Thanks, That takes care of the syntax error, but the mousepointer does not change on mouseover the lbox as anticipated.
I tried these ,.. all to no avail
1.. 'lbx.Attributes("onmouseover") =
"this.className='xlink'" 2.. 'lbx.Attributes.Add("onmouseover", "clientfunction();") 'lbx.Attributes("onmouseover") =
"this.className='xlink'" 3..' lbx.Attributes.Add("onmouseover", "this.classname='xlink'")
All escape the syntax check, but none work.
anything I am missing here ? Neal
"Eliyahu Goldin" wrote:
lbx.Attributes("onmouseover") = "this.className='xlink'"
Eliyahu
"Neal" <Ne**@discussions.microsoft.com> wrote in message news:6E**********************************@microsof t.com... Hi
I need to change my mousepointer when the mouse moves over certain populated controls on my aspx page.
I've tried the following but without success (after visiting a site recommended from this forum, ie css cursors tutorial)
I have, in the HTML defined this <Head> <style type="text/css"> .xlink { CURSOR: crosshair } </style> ... .. </HEAD>
and in the aspx.vb page (where lbx is a listbox class variable (for a findcontrol in a grid))
lbx.Attributes("onmouseover") = "this.style.class=""xlink"" " which renders a syntax error (I have tried single quotes etc)
Note: changing colours in the control with the following works 'lbx.Attributes("onmouseover") =
"this.style.color='red'" any ideas / help TIA
-- Neal Rogers University of Cape Town
I hear you, but
I need it on populated listboxes in the dgrids cells,(actually I need the
cursor to be "hand") to indicate to users that there is more data (like a
hyperlink cursor), which when they click it, displays a modal dialog with
more indepth "drilldown" data.
It may be that the listbox being the inner control is not seeing the style
class added in the HTML (in the Head section)... in fact that is probably the
case.
I have creatd scripts dynamically for each listbox only when they are
populated, identifying them and their data and these respond correctly to a
click event and show the modal dialog with each's respective data,
should i maybe perpetuate this methodology instead,.. maybe add some jscript
to handle the cursor type ?? or try moving the style class out somewhere
else??
Neal
"Eliyahu Goldin" wrote: Try it on unpopulated listbox or on a control that doesn't contain any other controls. It should work. Could be you have different setting for the inner controls interfering with the one for the listbox.
Eliyahu
"Neal" <Ne**@discussions.microsoft.com> wrote in message news:01**********************************@microsof t.com... Thanks, That takes care of the syntax error, but the mousepointer does not change on mouseover the lbox as anticipated.
I tried these ,.. all to no avail
1.. 'lbx.Attributes("onmouseover") = "this.className='xlink'" 2.. 'lbx.Attributes.Add("onmouseover", "clientfunction();") 'lbx.Attributes("onmouseover") =
"this.className='xlink'" 3..' lbx.Attributes.Add("onmouseover", "this.classname='xlink'")
All escape the syntax check, but none work.
anything I am missing here ? Neal
"Eliyahu Goldin" wrote:
lbx.Attributes("onmouseover") = "this.className='xlink'"
Eliyahu
"Neal" <Ne**@discussions.microsoft.com> wrote in message news:6E**********************************@microsof t.com... > Hi > > I need to change my mousepointer when the mouse moves over certain populated > controls on my aspx page. > > I've tried the following but without success (after visiting a site > recommended from this forum, ie css cursors tutorial) > > I have, in the HTML defined this > <Head> > <style type="text/css"> > .xlink { CURSOR: crosshair } > </style> > ... > .. > </HEAD> > > > and in the aspx.vb page > (where lbx is a listbox class variable (for a findcontrol in a grid)) > > lbx.Attributes("onmouseover") = "this.style.class=""xlink"" " > > which renders a syntax error (I have tried single quotes etc) > > Note: changing colours in the control with the following works > 'lbx.Attributes("onmouseover") = "this.style.color='red'" > > any ideas / help > TIA > > > -- > Neal Rogers > University of Cape Town
See inline
Eliyahu
"Neal" <Ne**@discussions.microsoft.com> wrote in message
news:6A**********************************@microsof t.com... I hear you, but
I need it on populated listboxes in the dgrids cells,(actually I need the cursor to be "hand") to indicate to users that there is more data (like a hyperlink cursor), which when they click it, displays a modal dialog with more indepth "drilldown" data.
You can set "onmouseover" for the cells rather than for the listboxes. It may be that the listbox being the inner control is not seeing the style class added in the HTML (in the Head section)... in fact that is probably
the case.
No, this is not the case. There is no difference between inner and outer
controls in this respect. I have creatd scripts dynamically for each listbox only when they are populated, identifying them and their data and these respond correctly to
a click event and show the modal dialog with each's respective data, should i maybe perpetuate this methodology instead,.. maybe add some
jscript to handle the cursor type ??
You can try. BTW you don't have to use css. this.style.cursor='hand' should
also do. or try moving the style class out somewhere else??
Neal
"Eliyahu Goldin" wrote:
Try it on unpopulated listbox or on a control that doesn't contain any
other controls. It should work. Could be you have different setting for the
inner controls interfering with the one for the listbox.
Eliyahu
"Neal" <Ne**@discussions.microsoft.com> wrote in message news:01**********************************@microsof t.com... Thanks, That takes care of the syntax error, but the mousepointer does not change on mouseover the lbox as
anticipated. I tried these ,.. all to no avail
1.. 'lbx.Attributes("onmouseover") = "this.className='xlink'" 2.. 'lbx.Attributes.Add("onmouseover",
"clientfunction();") 'lbx.Attributes("onmouseover") =
"this.className='xlink'" 3..' lbx.Attributes.Add("onmouseover", "this.classname='xlink'")
All escape the syntax check, but none work.
anything I am missing here ? Neal
"Eliyahu Goldin" wrote:
> lbx.Attributes("onmouseover") = "this.className='xlink'" > > Eliyahu > > "Neal" <Ne**@discussions.microsoft.com> wrote in message > news:6E**********************************@microsof t.com... > > Hi > > > > I need to change my mousepointer when the mouse moves over certain > populated > > controls on my aspx page. > > > > I've tried the following but without success (after visiting a
site > > recommended from this forum, ie css cursors tutorial) > > > > I have, in the HTML defined this > > <Head> > > <style type="text/css"> > > .xlink { CURSOR: crosshair } > > </style> > > ... > > .. > > </HEAD> > > > > > > and in the aspx.vb page > > (where lbx is a listbox class variable (for a findcontrol in a
grid)) > > > > lbx.Attributes("onmouseover") = > "this.style.class=""xlink"" " > > > > which renders a syntax error (I have tried single quotes etc) > > > > Note: changing colours in the control with the following works > > 'lbx.Attributes("onmouseover") =
"this.style.color='red'" > > > > any ideas / help > > TIA > > > > > > -- > > Neal Rogers > > University of Cape Town > > > This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Barb Alderton |
last post by:
I am working with SharePoint 2003. I am using an existing webpart as a
child control (server control). I need to access/manipulate the HTML that
the control outputs prior to rendering it to the...
|
by: Tom Rowton |
last post by:
This one has me a bit confused and I'm not finding what I
need in the MSDN or by searching these forums, so here
goes...
I have a rather large, complex code-in-page WebForm
(don't ask) and a...
|
by: Bharat |
last post by:
Hi Folks,
Suppose I have two link button on a page (say lnkBtn1 and
lnkBtn2). On the click event of the lnkbtn1 I have to add a dynamically
created control. And On the click event of the lnkBtn2 I...
|
by: Chad |
last post by:
I have a problem that I am desperate to understand.
It involves dynamically adding controls to a Table control that is built as a result of performing a database query.
I am not looking to...
|
by: serge calderara |
last post by:
Dear all,
I am new in asp.net and prepare myself for exam
I still have dificulties to understand the difference between server control
and HTML control.
Okey things whcih are clear are the fact...
|
by: Hexman |
last post by:
Hello All,
I'd like your comments on the code below. The sub does exactly what I want it to do but I don't feel that it is solid as all. It seems like I'm
using some VB6 code, .Net2003 code,...
|
by: Ken Fine |
last post by:
I'm interested in programmatically manipulating groups of ASP.NET controls
by type. Can someone suggest code for the following?
Loop through, say, all label controls on a page, and assigning a...
|
by: MLH |
last post by:
Dim Found, MyObject, MyCollection
Found = False ' Initialize variable.
For Each MyObject In MyCollection ' Iterate through each element.
If MyObject.Text = "Hello" Then ' If Text equals...
|
by: =?Utf-8?B?TWljaGFlbA==?= |
last post by:
Hello,
I am in serious need of help. I have an ASP.NET application written in C#.
I have a page that processes a file on the web server. The page uses a class
I created and stored in the AppCode...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
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...
|
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
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...
| |