To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
VBForums  

VB Wire News
MSDN Subscribers: Download the VS 2010 Release Candidate
MSDN Subscribers: Download the VS 2010 Release Candidate
Sell Your Code and Make Money?
Creating your own Tetris game using VB.NET
Article :: Improving Software Economics, Part 4 of 7: Top 10 Principles of Iterative Software Management



Go Back   VBForums > Other Languages > XML, HTML, Javascript, Web and CSS

Reply Post New Thread
 
Thread Tools Search this Thread Display Modes
Old Apr 6th, 2004, 04:01 PM   #1
Memnoch1207
Frenzied Member
 
Memnoch1207's Avatar
 
Join Date: Feb 02
Location: DUH, Guess...Hint: It's really hot!
Posts: 1,861
Memnoch1207 will become famous soon enough (50+)
Changing Style Class in Netscape

I created a custom textbox control in .NET, which calls a javascript function whent he control gets the focus. The function get's the contorls css className then adds the word "_Selected" on the end
So a control whose cssClass (className) is "textBox", would then have it's className changed to "textBox_Selected".

Everything works fine in Internet Explorer, but not in Netscape. So I was curious if anyone new why?

Here is the javascript function
VB Code:
  1. function activeField(ptr)
  2. {
  3.    'Get the current cssStyle
  4.    var myClass = ptr.className;
  5.    if((ptr.disabled != true) && (ptr.readOnly != true))
  6.    {
  7.       'Append '_Selected' to the current cssStyle
  8.       ptr.className = myClass + '_Selected';
  9.    }
  10. }
When the control get's the focus, the color just changes to white, however, it should change to a light brown.
__________________
Being educated does not make you intelligent.

Need a weekend getaway??? Come Visit
Memnoch1207 is offline   Reply With Quote
Old Apr 6th, 2004, 06:24 PM   #2
Acidic
Frenzied Member
 
Acidic's Avatar
 
Join Date: Sep 03
Location: UK
Posts: 1,090
Acidic is on a distinguished road (10+)
The function looks fine to me, except for how you're written your comments. I'm suprised it even workied in IE.
You probably added those comments just now though.

The only other thing I can think of is that NS doesn't support this yet or that or displayes the colour differently to IE, try something like black, see what happens then.
__________________
Have I helped you? Please Rate my posts.
Acidic is offline   Reply With Quote
Reply

Go Back   VBForums > Other Languages > XML, HTML, Javascript, Web and CSS


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 12:49 PM.




To view more projects, click here

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.