|
|
Your select will need a onchange event to call a javascript function that will test the value of the selected option. If it turns out to be equal to "Others" then you can either, add the need html dynamically or just make it visible by using the css display property.
javascript
function test_selection()
{
var sel = document.getElementById('dept');
var val = sel.options[sel.selectedIndex].value;
if(val=="Others")
{
....you can figure the rest from here.
}
}
html
<select id="dept" onchange="test_selection();">
<option value="Dept1">Dept1</option>
<option value="Dept2">Dept2</option>
<option value="Dept3">Dept3</option>
<option value="Others">Others</option>
</select>
|
|
|
|
|
Thanx a lot..its working..
|
|
|
|
|
How to choose a standard open-source CMS tool that can work across the various different projects we may get?
The sites can vary from a microsite (with a contact-us) to sites with complex business logic with forms, reports, etc. In other words lot of customization for particular customer.
A CMS tool where multiple developers can work together.
modified on Tuesday, November 2, 2010 12:56 PM
|
|
|
|
|
Best thing I can suggest is that you create a wish list of features and requirements and test against various CMS tools
As barmey as a sack of badgers
Dude, if I knew what I was doing in life, I'd be rich, retired, dating a supermodel and laughing at the rest of you from the sidelines.
|
|
|
|
|
A couple of options for larger CMS projects come to mind.
OpenCMS
- Java based enterprise CMS
- Open source with commercial support available
- Extensible using Java API to build custom modules
- Concept of multi-site and micro-sites
DotNetNuke
- .NET based
- Both open source and commercial versions available
|
|
|
|
|
Hi,
Does anyone know where I can find an example of a horizontal menu bar, preferably using CSS, but I'm happy if some Javascript is required? I can find many single-level examples, but I want a nested list that has the nested items also displayed horizontally.
I would be happy to use the ASP.NET Menu control too, but I seem not to be able to find any really good help on this, beyond what MSDN gives.
I have tried both the ASP.NET way and the CSS way, and I have so far struggled with both, so maybe what I am really asking for is: does anyone know of any really good tutorials on either of these?
Any help would be very much appreciated.
Best wishes, Patrick
|
|
|
|
|
|
Certainly plenty to get my head round there. Thank you.
Best wishes, Patrick
|
|
|
|
|
Hello
what does this error mean?
"500-inernal server error .
There is a problem with the resource you are looking for, and it cannot be displayed."
This project has been written with visual studio .net 2010 and the database is ms sql server 2008.
Every few times I am faced with this error.
Can anyone help me to solve this error ?
Thanks
Davood
D.riazi
|
|
|
|
|
This will explain it all[^]
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC League Table Link
CCC Link[ ^]
|
|
|
|
|
Stop spamming the forums. Pick one and use it. Posting to multiple, three in your case, forums will just get you ignored now and possibly in the the future.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hi,
I am having trouble getting a CSS selector to hit a target. The included HTML and CSS showing an image inside some layout divs. I have been trying to separate colour from layout using classes, and this seemed to work fine until I got to the problem of separating the colour of the border on the image. As the files stand, the image has the border colour I want, but if I comment out the line labelled 'Can't separate this colour' the image gets a white border from somewhere. Though I have tried adding both a class and an ID to the img, these seem to be ignored.
Why are these lines being ignored? And where is the image inheriting its border colour from?
I have experimented with many ways of trying to separate the border colour for the image into its own CSS rule, but none of them works. It seems that the colour has to be in the same rule as the border width to work.
I confess to struggling with CSS at the best of times, but this seems such a simple thing. Can anyone tell me what I am missing, and - hopefully - come up
with a way of allowing me to specify the colour of the image's border in a separate rule to the border itself?
Any help would be very much appreciated.
Best wishes, Patrick
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb">
<head runat="server">
<link rel="stylesheet" type="text/css" href="Screen.css" media="screen" />
</head>
<body class="baseColour">
<form id="homePage" class="borderOutlineColour" runat="server">
<div id="headerOuterContainer" class="borderColour">
<div id="headerLogo">
<img id="doesNotWorkID" class="doesNotWorkClass" src="NonExistantImage.jpg" height="100px" width="100px" />
</div>
<div class="clear">
</div>
</div>
</form>
</body>
</html>
body
{
font-family: arial, helvetica, sans-serif;
padding: 10px;
}
.clear
{
clear: both;
}
#homePage
{
width: auto;
border-style: solid;
border-width: 2px;
}
#headerOuterContainer
{
border-style: solid;
border-top-width: 0;
border-bottom-width: 0;
border-left-width: 150px;
border-right-width: 150px;
z-index: 3;
}
#headerLogo
{
float: left;
position: relative;
z-index: 20;
margin-top: 0;
margin-right: 1px;
margin-bottom: 0;
margin-left: -150px;
height: 150px;
width: 150px;
}
.baseColour
{
background-color: black;
color: white;
}
.borderOutlineColour
{
border-color: rgb( 246, 199, 21 );
}
.borderColour
{
background-color: rgb( 15, 10, 100 );
border-color: rgb( 15, 10, 100 );
}
#headerLogo img
{
border: 2px solid;
border-color: rgb( 246, 199, 21 );
}
#doesNotWorkID
{
border-color: rgb( 246, 199, 21 );
}
.doesNotWorkClass
{
border-color: rgb( 246, 199, 21 );
}
|
|
|
|
|
Hi Patrick,
I debugged this using FireBug and made it work by either prefixing either of the CSS rules #doesNotWorkID or .doesNotWorkClass with img:
img#doesNotWorkID
img.doesNotWorkClass
Why that did the trick only the CSS gods may know.
It may help you though!
Cheers
Manfred
|
|
|
|
|
Thank you for that, Manfred. It does work, though I won't pretend to know why it is necessary.
It seems to matter where I put it in the file; it seems to need to go somewhere near the bottom of the file, which suggests another rule somewhere is overriding it.
And, just as an experiment, I tried it with a space between img and #doesNotWork , and that fails. I suppose I need to RTFM, but I don't know what the difference in meaning is between having a space there and joining the two specifiers.
Thanks again.
- Patrick
|
|
|
|
|
Here's a bit I just found that might shed some light on the situation:
http://reference.sitepoint.com/css/specificity
I only skimmed over it, as I'm getting ready to hit the sack (gotta get up early this Friday morning),
but it explains why one rule may be chosen over another because it's more specific than the other one (thus the title Specificity etc.)
Laters
Manfred
|
|
|
|
|
That really is the best explanation of CSS specificity I have ever read. Thanks for that, Manfred.
- Patrick
|
|
|
|
|
The question remains if whether it can explain what is happening with your CSS?
Or to be more specific: What makes the browsers interpret your CSS in a
way that makes the images border white. FireFox and IE8 even seem to
agree on that interpreation in showing the same result.
FireBug tells me that the border-color style is calculated (infered), but
it does not explain in which way that was done.
Did you gain any insights from the above mentioned document regarding this
strange behaviour? If you did please share them with us.
Greetings
Manfred
modified on Friday, October 29, 2010 7:36 AM
|
|
|
|
|
Hi,
I have had a play around with this, and I am none the wiser about where the image was getting a more-specific CSS rule. All my other rules were either IDs or classes not applied to the image, or they were one of a handful of rules applied to document elements, which shouldn't be overriding classes and IDs as the document elements have lower specifity than classes and IDs.
I'm going to try reading tealeaves to solve my next CSS problem.
Thanks again for the help.
Best wishes, Patrick
|
|
|
|
|
You can increase your webpage performance by using 80/20 rule of Vilfredo Pareto. Please have a look at the following link
[80/20 Rule by Vilfredo Pareto]
Thanks,
Imdadhusen
sunaSaRa Imdadhusen
+91 99095 44184
+91 02767 284464
|
|
|
|
|
Hi All,
I am using Yahoo,google oauth APIs in my application. I have implimented it successfully in my local machine. It is going to our production soon. So can any one please tell me, will these APIs cause any performance or security impact on my website. Because my site is an e commerce site where we are giving much importance for security and performance. If so what are all the precautions i need to take before it goes to the production. It would be really helpfull for me if anyone can give me some idea on this since this is the first time i am working on these APIs.
Thanks
Lijo.
|
|
|
|
|
Let's take this example; in a html-doc:
<img src="mypic.gif" title="Hello world" />
"Hello world" tooltip/title does not show up in Opera kioskmode/fullscreen (not F11), nor does any other html element title attribute value..
Anyone know how to get opera to show this ?
Cant seem to find a kioskmode switch to enable this..
Is this a opera bug ?
(btw using Opera version 10.63. Linux and Windows)
I really dont want to use javascript/css to make tooltip-popups.
thx!
modified on Saturday, October 23, 2010 12:31 PM
|
|
|
|
|
Hi,
I am running web application on Pocket IE(Ver.5.0),application contains some server controls and i have to access those controls using javascript.
I used getElementById('controlName') ... so on. but i could not acces those controls.. I searched lot on google but dint got any decent reason why this is happening.
Can anyone help in this regards.?
Thanks in advanced
Rahul C.
-- Modified Monday, October 25, 2010 3:17 AM
|
|
|
|
|
I have an application that basically acts as a web server (it's more involved then that, but this gets the point across). I am putting the code in place to use SSL to secure the stream. I need to test this on my local PC, so of course I need a test cert. Try as I might, I cannot get makecert.exe create a certificate that will let me export it to a file as an X.509 certificate for use in my code (e.g. X509Certificate.CreateFromCertFile()). Can anyone point me toward a good tutorial on the whole process of doing this, please?
|
|
|
|
|
You need 2 or 3 files to implement this - .cer for the public key, .pvk for the private key and optionally (recommended) a .pfx for the combined certificate store key.
This is the sequence i've used before to generate all the bits:
makecert -n "CN=My Secure Key" -sv "MyKey.pvk" MyKey.cer
cert2spc "MyKey.cer" "MyKey.spc"
pvk2pfx -pvk "MyKey.pvk" -pi KeyPassword -spc "MyKey.spc" -pfx "MyKey.pfx" -f
Once you have the files, embed the .cer in the 'public' past of your code, Install the .pfx in the server certificate store. Load the .cer with X509Certificate2 & find the private key in X509Store, e.g.
_publicCert = New X509Certificate2()
_publicCert.Import(My.Resources.PublicKeyCer)
Dim certStore As X509Store = New X509Store()
certStore.Open(OpenFlags.ReadOnly)
For Each installObj As X509Certificate2 In certStore.Certificates.Find(X509FindType.FindByThumbprint, _publicCert.Thumbprint, False)
Next
Hope this helps, Rob
"An eye for an eye only ends up making the whole world blind"
|
|
|
|