Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 11-11-2009
Member
 
Join Date: Apr 2009
Posts: 79
Javascript isNull function

I need information on IsNull() in javascript. I know the function returns the null value but what are syntax need to declare. I want to check all the null value assign in the field. Can any one explain me the javascript isnull function with example.
Reply With Quote
  #2  
Old 11-11-2009
Member
 
Join Date: May 2008
Posts: 2,293
Re: Javascript isNull function

Check this example of javascript isnull function :

Code:
%
if IsNull(rs("field")) then
    sVar = ""
else
    sVar = rs("field")
end if
%>
<%
sVariable = "" & rs("field")
%>
Reply With Quote
  #3  
Old 11-11-2009
Member
 
Join Date: Jan 2009
Posts: 199
Re: Javascript isNull function

Try this example of javascript isnull function :

Code:
<html>
<head>
<title> javascript isnull </title>
<script language="JavaScript" src="./dynapisrc/dynapi.js"></script>
<script language="Javascript">
dynapi.library.setPath('./dynapisrc/');
dynapi.library.include('dynapi.library');
dynapi.library.include('dynapi.functions');
dynapi.library.include('dynapi.api');
</script>
</head>
<body>
<font face="boldl" size="3">
<script>
var doc=document;
j=dynapi.functions;


doc.write('isNull: '+f.isNull('not null','is null')+'<br><br>');
</script>
</font>
</body>
</html>
Reply With Quote
  #4  
Old 11-11-2009
Member
 
Join Date: Dec 2008
Posts: 177
Re: Javascript isNull function

ISNULL() Replaces NULL with the specified replacement value, it can have 2 arguments, first is the field which is supposed to be checked whether it is NULL or not..Use the IsNull function to determine whether an expression contains a Null value.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Javascript isNull function"
Thread Thread Starter Forum Replies Last Post
Passing XSL value to javascript function Steadfast Software Development 6 13-05-2010 11:51 PM
c# function equivalent to gettime function in javascript Omaar Software Development 4 10-03-2010 10:44 PM
Eval function in javascript Solaris Software Development 5 02-03-2010 05:59 PM
JavaScript Sleep Function DARIELLE Software Development 3 29-06-2009 09:30 AM
JavaScript function help suseman Software Development 3 26-05-2009 05:11 AM


All times are GMT +5.5. The time now is 12:12 PM.