JavaScript Programmer’s (Web design seattle) Reference Example code: // Example derived

JavaScript Programmer’s Reference Example code: // Example derived from Wrox Professional JavaScript // This opens a database, selects some records // Traverses the collection that was selected // and for each one, outputs an image tag. database.connect(”ODBC”, “TargetDB”, “”, “”, “”); myCursor = database.cursor(”SELECT * FROM TARGET_TABLE”); while(myCursor.next()) { myBlob = myCursor.blobData; write(myBlob.blobImage(”bmp”)); } myCursor.close(); See also: Netscape Enterprise Server, unwatch(), watch() Method JavaScript JScript NES Notes blobImage() 1.1 + 2.0 + - blobLink() 1.1 + 2.0 + - blob.blobImage() (Method) This method creates an element having the appropriate MIME type for the blob object. Availability: JavaScript 1.1 Netscape Enterprise Server 2.0 Property/method value type: Image object NES myBlob.blobImage(aFormat) NES myBlob.blobImage(aFormat, aTxt) NES myBlob.blobImage(aFormat, aTxt, anAlign) NES myBlob.blobImage(aFormat, aTxt, anAlign, aPixWid) NES myBlob.blobImage(aFormat, aTxt, anAlign, aPixWid, aPixHgt) NES myBlob.blobImage(aFormat, aTxt, anAlign, aPixWid, aPixHgt, aPixBrdr) JavaScript syntax: NES myBlob.blobImage(aFormat, aTxt, anAlign, aPixWid, aPixHgt, aPixBrdr, isMap) aFormat Image file format anAlign The alignment of the image aPixBrdr The border value aPixHgt The height of the image aPixWid The width of the image aTxt The alt text for the image Argument list: isMap Whether the image is a map

Leave a Reply