How do you show which page you’re on (in a menu)?

How do you show which page you’re on (in a menu)?
If PHP is not available to you, you could use the cascade. Put an id in your body tags and an id in each of your ‘a’ tags for the links.
Let’s say on page one you have this:
CSS

….
page one

In your CSS, you can have [...]

How do I move the list bullet to the left/right?

How do I move the list bullet to the left/right?
CSS1 has no properties for setting margins or padding around the bullet of a list item and in most cases the position of the bullet is browser-dependent. This is especially true since most browsers disagreed on whether a bullet is found within the margin or padding [...]

Can you use someone else’s Style Sheet without permission?

Can you use someone else’s Style Sheet without permission?
This is a somewhat fuzzy issue. As with HTML tags, style sheet information is given using a special language syntax. Use of the language is not copyrighted, and the syntax itself does not convey any content – only rendering information.
It is not a great idea to reference [...]

What security measures exist for .NET Remoting in System.Runtime.Remoting?

What security measures exist for .NET Remoting in System.Runtime.Remoting?

None. Security should be taken care of at the application level. Cryptography and other security techniques can be applied at application or server level.
What is a formatter?
A formatter is an object that is responsible for encoding and serializing data into messages on one end, and deserializing and [...]

How to getting values from cookies to set widgets? ,How to change style on an element?

How to getting values from cookies to set widgets?

function getCookieData(labelName) {
//from Danny Goodman
var labelLen = labelName.length;
// read cookie property only once for speed
var cookieData = document.cookie;
var cLen = cookieData.length;
var i = 0;
var cEnd;
while (i < cLen) {
var j = i + labelLen;
if (cookieData.substring(i,j) == labelName) {
cEnd = cookieData.indexOf(";",j);
if (cEnd == -1) {
cEnd = cookieData.length;
}
return unescape(cookieData.substring(j+1, [...]

How to reload the current page ? ,how to force a page to go to another page using JavaScript ?

How to reload the current page ?
window.location.reload(true);
how to force a page to go to another page using JavaScript ?

How to convert a string to a number using JavaScript?
You can use the parseInt() and parseFloat() methods. Notice that extra letters following a valid number are ignored, which is kinda wierd but convenient at times.
parseInt(”100″) ==> 100
parseFloat(”98.6″) [...]

eval()? , What does break and continue statements do?

eval()?
The eval() method is incredibly powerful allowing you to execute snippets of code during execution.

<script type="text/javascript">
var USA_Texas_Austin = "521,289";
document.write("Population is "+eval("USA_"+"Texas_"+"Austin"));
</script>

This produces
Population is 521,289
What does break and continue statements do?
Continue statement continues the current loop (if label not specified) in a new iteration whereas break statement exits the current loop.
How to create a function using [...]

How to Handle Event Handlers? , How to remove the event listener: ?

How to Handle Event Handlers?

You can add an event handler in the HTML definition of the element like this,

<script type="text/javascript"><!–
function hitme() {
alert("I’ve been hit!");
}
// –>
</script>

<input type="button" id="hitme" name="hitme" value="hit me" onclick="hitme()"

Or, interestingly enough you can just assign the event’s name on the object directly with a reference to the method you want to assign.

<input type="button" [...]

What does undefined value mean in javascript? ,What is the difference between undefined value and null value?

What does undefined value mean in javascript?
Undefined value means the variable used in the code doesn’t exist or is not assigned any value or the property doesn’t exist.
What is the difference between undefined value and null value?
(i)Undefined value cannot be explicitly stated that is there is no keyword called undefined whereas null value has keyword [...]

To put a “close window” link on a page ? ,How to hide javascript code from old browsers that dont run it?

To put a “close window” link on a page ?

<a href=’javascript:window.close()’ class=’mainnav’> Close </a>

How to hide javascript code from old browsers that dont run it?

Use the below specified style of comments

<script language=javascript> <!– javascript code goes here // –> or Use the <NOSCRIPT>some html code </NOSCRIPT>

tags and code the display html statements between these [...]