What is the error

Results 1 to 4 of 4

Thread: What is the error

  1. #1
    Ankita Guest

    Default What is the error

    This is statement in Jscript.<BR>It gives me syntex error<BR>var objcon = Session("DatabaseDSN");<BR>

  2. #2
    Join Date
    Dec 1969
    Los Angeles, CA

    Default We are NOT mind readers....

    ...nor do we have a crsytal ball to figure out your problem<BR><BR><BR>post the error message and also some RELAVENT code

  3. #3
    Join Date
    Dec 1969

    Default Tarrot reading!!

    I think its a javascript error, for the statement she has specified, ok dear Ankita, lets have some more information and we will enlighten you, this tarrot card of mine is having some problems lately :)

  4. #4
    Ankita Guest

    Default Code

    &#060;script LANGUAGE="JavaScript"&#062;<BR>function calProc(inte)<BR>{<BR> var a=0;<BR> a=inte.value<BR> alert("The parent is "+parent+" the databs URL name is"+db[inte].URL);<BR> parent.frames(2).src=db[inte].URL;<BR> parent.window.refresh();<BR>}<BR>var total=1;<BR>var db = new Array();<BR>// -- Enter Values Here Format is shown below Here all the data is being added in sequential way.<BR>//dbAdd(parent[true&#124false] , description, URL [blank for nohref], level , TARGET [blank for "content"], new? [1=yes])<BR>function f()<BR>{<BR>&#060;%@ LANGUAGE="JScript" %&#062;<BR>&#060;%<BR> objcon = Session("DatabaseDSN");<BR> dbConnection = Server.CreateObject("ADODB.Connection");<BR> rsExample = Server.CreateObject("ADODB.Recordset");<BR> dbConnection.Open(objcon);<BR> rsExample.Open ("Testtable",dbConnection);<BR> while(!rsExample.EOF)<BR> {<BR> //dbAdd( true , "Field1", "http:\www.yahoo.com" , 0 , "", 1,"");<BR> }<BR> %&#062;<BR>}<BR><BR> var current=getCurrState()<BR>var current=getCurrState()<BR>function getCurrState() {<BR> var label = "currState="<BR> var labelLen = label.length<BR> var cLen = document.cookie.length<BR> var i = 0<BR> while (i &#060; cLen) {<BR> var j = i + labelLen<BR> if (document.cookie.substring(i,j) == label) {<BR> var cEnd = document.cookie.indexOf(";",j)<BR> if (cEnd == -1) { cEnd = document.cookie.length }<BR> return unescape(document.cookie.substring(j,cEnd))<BR>}<B R>i++<BR>}<BR>return "";<BR>}<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts