Results 1 to 4 of 4

Thread: Javascript isNull function

  1. #1
    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.

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    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")
    %>

  3. #3
    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>

  4. #4
    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.

Similar Threads

  1. Passing XSL value to javascript function
    By Steadfast in forum Software Development
    Replies: 6
    Last Post: 13-05-2010, 11:51 PM
  2. c# function equivalent to gettime function in javascript
    By Omaar in forum Software Development
    Replies: 4
    Last Post: 10-03-2010, 10:44 PM
  3. Eval function in javascript
    By Solaris in forum Software Development
    Replies: 5
    Last Post: 02-03-2010, 05:59 PM
  4. JavaScript Sleep Function
    By DARIELLE in forum Software Development
    Replies: 3
    Last Post: 29-06-2009, 09:30 AM
  5. JavaScript function help
    By suseman in forum Software Development
    Replies: 3
    Last Post: 26-05-2009, 05:11 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,047,929.59343 seconds with 16 queries