Results 1 to 5 of 5
  1. #1

    Default HOW TO ADD RECORD to database from ASP using jscript


    HOW TO ADD RECORD to database from ASP using jscript external file

  2. #2

    Default Re: HOW TO ADD RECORD to database from ASP using jscript

    ASP-VBSCRIPT man ako gamit...

    asp-javascript ka bai?


    yeah! bling bling men...abz'

  3. #3

    Default Re: HOW TO ADD RECORD to database from ASP using jscript

    asp-vbscript is good if ur using IE unfortunately im using FF and vbscript is not recognize by this browser...

    i used asp-jscript (not javascript) for dbase manipulation/updates infact i have 2 things to ask:

    HOW TO:
    1. call a jscript function in ASP
    2. perform record insertiion using jscript

    i have this code running

    <% @LANGUAGE="jscript" %>

    <%
    //open dns connection
    var strcon="DSNName";
    ocon=Server.CreateObject("ADODB.Connection");
    ocon.Open(strcon);

    //run execute command to insert new record
    ocon.execute("INSERT INTO tblname(fld1,fld2,...) VALUES(val1,val2,...);");
    ocon.close();

    %>


    now since this code is running as ASP file
    im planning to encapsulate the codes to a function and trigger a function call from
    other page where is it will execute record insertion. i rewrite the code to this:


    <% @LANGUAGE="jscript" %>

    <%
    function add(){
    //open dns connection
    var strcon="DSNName";
    ocon=Server.CreateObject("ADODB.Connection");
    ocon.Open(strcon);

    //run execute command to insert new record
    ocon.execute("INSERT INTO tblname(fld1,fld2,...) VALUES(val1,val2,...);");
    ocon.close();
    }
    %>


    but an error return...

  4. #4

    Default Re: HOW TO ADD RECORD to database from ASP using jscript

    Unsa ma'y error bai?

    Suwayi lang ni:
    Una gamit sa ka ug #include directive sa page diin imong gamiton ang imong hinimong function.
    (ex. ><!--#include file="functions.asp"--> )

    Dayon tawagon nimo ang function, kung sa vb kay maggamit man ka ug call nga keyword para matawag nimo ang function (i.e. <% call add() %>) sa jscript kay wala na na cya ang call nga keyword dritso nalang (i.e. <%add(); %>)


    Quote Originally Posted by hybrid_X
    asp-vbscript is good if ur using IE unfortunately im using FF and vbscript is not recognize by this browser...

    i used asp-jscript (not javascript) for dbase manipulation/updates infact i have 2 things to ask:

    HOW TO:
    1. call a jscript function in ASP
    2. perform record insertiion using jscript

    i have this code running

    <% @LANGUAGE="jscript" %>

    <%
    //open dns connection
    var strcon="DSNName";
    ocon=Server.CreateObject("ADODB.Connection");
    ocon.Open(strcon);

    //run execute command to insert new record
    ocon.execute("INSERT INTO tblname(fld1,fld2,...) VALUES(val1,val2,...);");
    ocon.close();

    %>


    now since this code is running as ASP file
    im planning to encapsulate the codes to a function and trigger a function call from
    other page where is it will execute record insertion. i rewrite the code to this:


    <% @LANGUAGE="jscript" %>

    <%
    function add(){
    //open dns connection
    var strcon="DSNName";
    ocon=Server.CreateObject("ADODB.Connection");
    ocon.Open(strcon);

    //run execute command to insert new record
    ocon.execute("INSERT INTO tblname(fld1,fld2,...) VALUES(val1,val2,...);");
    ocon.close();
    }
    %>


    but an error return...

  5. #5

    Default Re: HOW TO ADD RECORD to database from ASP using jscript

    k na to bai. nag ajax nlang ko

  6.    Advertisement

Similar Threads

 
  1. how to add 1hp to ur car
    By cptn_star in forum Humor
    Replies: 7
    Last Post: 07-06-2009, 03:09 PM
  2. Replies: 0
    Last Post: 12-02-2005, 07:53 AM
  3. How to create a ISO file from a CD using Nero 6.6 version
    By Bashka in forum Software & Games (Old)
    Replies: 1
    Last Post: 11-14-2005, 10:08 AM
  4. globe: how to turn off horoscope feature from 2340
    By geff_chang in forum Gizmos & Gadgets (Old)
    Replies: 1
    Last Post: 11-02-2005, 08:14 PM
  5. Software to record video directly from a video camera
    By kishni in forum Software & Games (Old)
    Replies: 0
    Last Post: 08-25-2005, 07:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top