/* * BufferedCursor.jsb 1.0 97/08/28 * * Copyright (c) 1997 Netscape Communications Corporation * * Netscape grants you a non-exclusive, royalty free, license to use, * modify and redistribute this software in source and binary code form, * provided that i) this copyright notice and license appear on all copies of * the software; and ii) Licensee does not utilize the software in a manner * which is disparaging to Netscape. * * This software is provided "AS IS," without a warranty of any kind. * See the CDK License Agreement for additional terms and conditions. */ writeln("") function netscape_peas_BufferedCursor(params) { if ( (params.database == null) || (params.database == "") ) params.database = "database" if (server.httpdlwVersion.indexOf("1.0") != -1) // Server 2.0 (LiveWire version 1.0) cursorObj = database.cursor(params.SQL, params.updatable) else { // Server 3.0 dbObj = eval(params.database) cursorObj = dbObj.cursor(params.SQL, params.updatable) } cursorObj.cursorName = params.id cursorObj.maxRows = params.maxRows createClientSideJSCursor(cursorObj) return cursorObj } // netscape_peas_BufferedCursor