Click here to Skip to main content
15,891,136 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: Stop a page moving upwards Pin
jkirkerx19-Jul-12 8:36
professionaljkirkerx19-Jul-12 8:36 
QuestionHow to develop Smart TV Apps? Pin
prithveesh.goel17-Jul-12 0:22
prithveesh.goel17-Jul-12 0:22 
QuestionRe: How to develop Smart TV Apps? Pin
markovl17-Jul-12 0:36
markovl17-Jul-12 0:36 
AnswerRe: How to develop Smart TV Apps? Pin
prithveesh.goel17-Jul-12 20:56
prithveesh.goel17-Jul-12 20:56 
AnswerRe: How to develop Smart TV Apps? Pin
Richard MacCutchan17-Jul-12 2:50
mveRichard MacCutchan17-Jul-12 2:50 
GeneralRe: How to develop Smart TV Apps? Pin
prithveesh.goel17-Jul-12 20:57
prithveesh.goel17-Jul-12 20:57 
GeneralRe: How to develop Smart TV Apps? Pin
Richard MacCutchan17-Jul-12 21:32
mveRichard MacCutchan17-Jul-12 21:32 
QuestionJavaScript Validation - DropDownLists Pin
EuphorialXTC15-Jul-12 23:04
EuphorialXTC15-Jul-12 23:04 
Hey guys.

I'm looking to do some Javascript validation for drop down lists. I have the idea, I think, I just can't get it to work.

Heres the javascript
JavaScript
function Test() {

            var ddlDevice = document.getElementById("<%=ddlDeviceType.ClientID%>");
            if (ddlDevice.value == "---Please Select---") {
                window.alert("Test");
                ddlDevice.focus();
                return false;
            }


Heres the code behind

C#
ddlDeviceType.Attributes.Add("onblur", "Test()");


I need it to be client side, and this kid of style, if that makes sense?

Thanks Guys
AnswerRe: JavaScript Validation - DropDownLists Pin
Sibasisjena16-Jul-12 0:08
professionalSibasisjena16-Jul-12 0:08 
AnswerRe: JavaScript Validation - DropDownLists Pin
jkirkerx19-Jul-12 8:57
professionaljkirkerx19-Jul-12 8:57 
Questionusing createElement, not working in IE8 on XP and Server 2003 Pin
jkirkerx13-Jul-12 16:42
professionaljkirkerx13-Jul-12 16:42 
General[solved] Re: using createElement, not working in IE8 on XP and Server 2003 Pin
jkirkerx15-Jul-12 16:46
professionaljkirkerx15-Jul-12 16:46 
Questionc# Webbrowser javascript submit then blank page Pin
koncuk12-Jul-12 3:36
koncuk12-Jul-12 3:36 
AnswerRe: c# Webbrowser javascript submit then blank page Pin
Sibasisjena12-Jul-12 4:30
professionalSibasisjena12-Jul-12 4:30 
GeneralHow to get the objects of the selected ITem Pin
Vimalsoft(Pty) Ltd11-Jul-12 23:27
professionalVimalsoft(Pty) Ltd11-Jul-12 23:27 
QuestionAdding a link to a table built in Javascript Pin
offroaderdan7-Jul-12 1:04
offroaderdan7-Jul-12 1:04 
AnswerRe: Adding a link to a table built in Javascript Pin
enhzflep8-Jul-12 22:17
enhzflep8-Jul-12 22:17 
AnswerRe: Adding a link to a table built in Javascript Pin
BobJanova9-Jul-12 1:52
BobJanova9-Jul-12 1:52 
AnswerRe: Adding a link to a table built in Javascript Pin
Sanjay K. Gupta9-Jul-12 3:44
professionalSanjay K. Gupta9-Jul-12 3:44 
AnswerRe: Adding a link to a table built in Javascript Pin
twseitex10-Jul-12 10:30
twseitex10-Jul-12 10:30 
QuestionProblem to add new field in javascript! Pin
Erika Silva4-Jul-12 23:33
Erika Silva4-Jul-12 23:33 
AnswerRe: Problem to add new field in javascript! Pin
Erika Silva5-Jul-12 0:14
Erika Silva5-Jul-12 0:14 
GeneralRe: Problem to add new field in javascript! Pin
Erika Silva5-Jul-12 5:45
Erika Silva5-Jul-12 5:45 
Questionautomatically break page in html code Pin
fsajjad4-Jul-12 1:41
fsajjad4-Jul-12 1:41 
Questionhow can zoom image in a datalist dynamically adding images Pin
shannya3-Jul-12 23:30
shannya3-Jul-12 23:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.