|
Are you sure it is disabled? IE applies a stylistic change to buttons when they are disabled. FF doesn't.
|
|
|
|
|
Yes i am pretty sure, no style changes are occurred and the event is still being fired. Try It Your Self
|
|
|
|
|
just to see what you can learn, try reversing the code: add a disabled button and enable it on the databound event.
|
|
|
|
|
|
hello,
i am using some iframes on my website, is there a way in CSS that you can do so that u don't have to use i frames and the Div content changes instead ? this would be really helpful if there is....
Thanks
|
|
|
|
|
No, there's no way to get what an iframe does out of css.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
Christian Graus wrote: No, there's no way to get what an iframe does out of css.
Yerright, of course, but you could play games with javascript and innerhtml. Not that I would waste my time. Iframes are like tables - everybody sneers at 'em and sooner or later, everybody uses 'em.
|
|
|
|
|
Oakman wrote: everybody sneers at 'em and sooner or later, everybody uses 'em.
That alone is worth a 5
I've had job interviews where they asked me what class reuse was, and I said that's where people kid themselves that if they build a class, they will reuse it somewhere, someday. I got the job.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Christian Graus wrote: where people kid themselves that if they build a class, they will reuse it somewhere, someday.
ROFL
Christian Graus wrote: I got the job.
Of course.
I think a case could be made that the more OO you build your apps, the less likely you are to reuse much. If you really practice "everything is an object" you aren't like to be creating a few goshohwowieboyohboy one-size-fits-all classes that are models of elegance and coding style. But then you and I didn't have the benefit of 4 years of computer-sci taught by professors with advanced degrees, so what do we know?
|
|
|
|
|
Oakman wrote: But then you and I didn't have the benefit of 4 years of computer-sci taught by professors with advanced degrees, so what do we know?
*grin* precisely.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
The problem is not with OO or the professors who teach us OO, it is what forces us to tie our code to business requirements with scant regard for reusability - DEADLINES.
|
|
|
|
|
how true,
its not about the quality of the software you develop, its all about the time frame that you deliver it within.
Jd.
|
|
|
|
|
hello, for my college project i have to create a nice looking website, i am thinking of translucent backgrounds ..... if any of you can help me , i would like to know how I would do translucent backgrounds in an external style sheet and doesn't affect my content colours, that would be really useful ... I know it’s to do with the tag opacity i think....
Thanks
|
|
|
|
|
Yes it is done with opacity in css....
For mozilla and others it is
#id{
opacity: 0.4;
}
for IE it is
#id{
filter:alpha(opacity=40 );
}
so mix 'em up
#id{
opacity: 0.4;
filter:alpha(opacity=40 );
}
|
|
|
|
|
but that also turns my content to be translucent ... so how do i stop that ?
|
|
|
|
|
to simply stop
opacity:1 for mozilla
and for IE
filter:alpha( opacity:100 )
|
|
|
|
|
thanks for all your help :P
|
|
|
|
|
Put all of your content inside a div with a higher z-index.
|
|
|
|
|
Hello,
I am trying to make a textbox with default text..as user clicks it should disappear.I succeeded in doing that but got struck while differing the classes of default text and user input...
here is my code
............................................................................................................
<html>
<head>
<style>
.hint{color:blue;}
.real{color:black;}
</style>
<script type="text/javascript">
window.onload = onchange;
function foc(){
if(this.value.length==0 || this.className=="hint"){
this.value="";
this.className=="real";
}
}
function blur(){
if(this.value.length==0){
this.className = "hint";
this.value="Enter";
}
}
function onchange(){
var text = document.getElementById("textbox1");
text.onfocus = foc;
text.onblur = blur;
}
</script>
</head>
<body>
<input type="text" id="textbox1" class="hint" value="Enter"/>
</body>
</html>
..........................................................................................................
The problem is in function foc(), i want that if onfocus event rises then class of the textbox should change to real...but that's not happening and creating all trouble.
I want that the hint text should appear in blue and input in black. Also if user purposely enters the hint text as input then script should judge on classes not on text values. Like here hint text or default text is Enter....even if user input is Enter then that text should not disappear onblur...
THNX.
|
|
|
|
|
greendragons wrote: want that the hint text should appear in blue and input in black.
Not possible in the same textbox at the same time
Basically you seem very confused as to how CSS and JavaScript actually work
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Then how this feature i have seen on many sites....there must be some way to create it...any ideas...
|
|
|
|
|
Just because you've seen something done doesn't mean it was done the way you think it was.
What you are asking for, applying two styles to the same textbox for two seperate pieces of text is not possible with HTML. With Flash or Silverlight it is.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
|
Mark Nischalke wrote: What you are asking for, applying two styles to the same textbox for two seperate pieces of text is not possible with HTML.
Set the background of the text box to transparent. Line it up directly over a label (maybe in a user control) Format the text of the textbox one way and the text on the label another. A kluge, but it'd meet the design parameters as written.
|
|
|
|