ScriptManager.RegisterClientScriptBlock(upSSP, upSSP.GetType(), "BindSWF", "CreateSSPSwf();", true);
Post Info
- Abhijit Aitwade
- 11:09 PM
- 0 comments
Post Info
- Abhijit Aitwade
- 11:01 AM
- 0 comments
Post Info
- Abhijit Aitwade
- 10:57 PM
- 0 comments
Make Rounded Message Div in CSS
Make your div with round borders.
Record saved successfully!
.divMessage
{
background-color: #DEFDDF;
color: #33A333;
font-family:Arial;
font-size:12px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border: solid 1px #C7F2C8;
padding: 5px;
z-index:88556;
bottom:0px;
margin-left:5px;
}
But its not work in IE.
Post Info
- Abhijit Aitwade
- 4:04 AM
- 0 comments
Select and Unselect All CheckBoxes in javascript
Set all Checked and Unchecked check boxes in JavaScript.
function SelectAllCheckboxes(cbAll)
{
var frm = document.forms[0];
for (i=0; i < frm.elements.length; i++)
{
if ((frm.elements[i].type == "checkbox") && (frm.elements[i].name.indexOf('chkEmp') > -1))
{
frm.elements[i].checked = document.getElementById(cbAll).checked;
}
}
}
Post Info
- Abhijit Aitwade
- 2:06 AM
- 1 comments
Control ASP.NET Timer Control with JavaScript
Labels:
Ajax,
Timer Control
We can control Asp.net Timer control in JavaScript.
Find the timer control like this var timer = $find('<%= Timer1.ClientID %>');
For stop timer control tick event - timer._stopTimer();
For start timer control tick event - timer._startTimer();
For change interval of timer - timer.set_interval(5000);
Below code i a written function. When i call this function its first stops timer tick event and its update the interval time of timer control and again starts the timer control tick event.
<script language="javascript" type="text/javascript">
function UpdatdeTimerControl()
{
var timer = $find('<%= Timer1.ClientID %>');
if(timer)
{
timer._stopTimer();
timer.set_interval(5000);
timer._startTimer();
}
else
{
alert("Timer control is NOT found.");
}
}
</script>
Post Info
- Abhijit Aitwade
- 4:30 AM
- 0 comments
split string in javascript
Labels:
Javascript
We can split string in JavaScript. Most of times we use it our programming. with help splitting we can get string in array after split. we split string after specific character. In below code i have splitter string after - (DASH).
<html>
<head>
<title>Javascript Split demo</title>
<script type="text/javascript">
//var myString = "Lexus Ferrari Skoda Audi";
var myString = "closedisp-50";
var mySplitResult = myString.split("-");
alert('length = '+mySplitResult.length);
for(i = 0; i < mySplitResult.length; i++)
{
document.write("<br /> Element " + i + " = " + mySplitResult[i]);
}
</script>
</head>
<body>
</body>
</html>
Post Info
- Abhijit Aitwade
- 11:12 PM
- 0 comments
Subscribe to:
Posts (Atom)