newObjects (fromerly known as ZmeY soft) JScript/JavaScript code snippets
Home Products Docs & Libs
pixel.gif (49 bytes)
Home
Products by category
ALP site
ISAPI filters
ActiveX
Forums (discussions)
Buy direct (RegNet)
Articles and samples
Documentation online
Links
ACOMTools

Site navigation
Code snippets
JScript code


HTML Parser Light

Parse HTML content to a document tree, change it regenerate it. Wtih this component you can do what the browsers do - understand the page. Can be used for development of HTML template systems, indexing of HTML content and many other tasks.


Highlights of the day
Active Label ActiveX
Barcode ActiveX? Much more - the design and printing inside your WEB application
SQLite3 COM
SQLite3 COM ActiveX embeds the SQLite3 database engine and interface to it. Supports paremeterized views and triggers.
Active Local Pages 1.2
Write desktop apps in ASP and CGI. Create wutorun CDs using WEB technologies - yes it is possible!
ActiveX Pack1 family
Desktop Windows, CE/CE.NET and PocketPC! About 50 powerful components for all the Windows platforms.
AXGate 1.1 (new)
Script dafely any ActiveX in Pocket IE. Build applications in HTML and use local resources and components in them.
IE ScriptBar
Create complex toolbars for Microsoft Internet Explorer easier than you may have expected.

Check these sites
ASP Index
ASP Experts
Web development portal
Code.newObjects.com
Articles, code samples, snippets


Active visitors
22
Suggested links
Suggest this page to the other visitors. Click the button below to place this page in the list above .

Quick contact
General
zmeyinc@newobjects.com
Support
support@newobjects.com
Sales
sales@newobjects.com

sprintf simple realization in JScript

JScript has no strict types thus this realization does not support C library
format, instead it supports format applicable for the Javascript specifics. It
has only field width and alignment capabilities implemented. Example sprintf("A=%20l,B=%30r","Blah
Blah",234.56)
will generate string with % escapes replaced with 20 and 30
characters wide fields containing: 1-st "Blah Blah" left aligned in the field
and 2-nd 234.56 right aligned. Also it supports a little type conversion excapes
but their purpose is to specify the type of the printed value. Genraal format
is:

%[width][type]alignment

width
- optional integer field width in characters. Only the resulting
string is formatted!

type - type to convert to. Can be f - convert to float or n
- convert to integer.

alignment - Alignment in the field (as specified by width). Can be l
- left, r - right, c - center. If width is not specified the
letter used is not meaningful.

Click the image below to download (sprintf.js-code)
click here ...

File prprocessor

UNIX OS-es have some good utilities for file preprocessing based on
regular expressions, but Microsoft Windows does not. But Microsoft Windows has powerful scripting
engines and WSH thus the problem can be solved.

This script is able to process files described by the command line parameters
and replace some texts in them. It supports directory tree recursing, matching
file names with regular expression, processing parts of the files files
depending on the begin-end statements (defined by reg. exps. too) and so on.

Please note! You must be familiar with the JScript regular expressions in order
to use this utility. Wrong usage may cause loss of data thus it is recommended to
test it over some not important files first.

Also download the JScript documentation from the Microsoft site and see Regular Expression
object for the regular expressions syntax.

preprocessor.zip
click here ...

Barcodes
Active Label ActiveX
Barcoding and label design and printing embedded into the WEB applications.
 
Active Label Browser
Light weight application for Label design with support for most 1-d barcodes and pictures. Links to databases, works with local and online resources, acts like a browser.
WEB programming
Active Local Pages
The same code on a WEB server or running as normal Windows application. ALP removes the borders between WEB and desktop programming, it even allows you build autoruns, start your program from a flash drive. ALP now has its own WEB site dedicated to it.
All-in-one ActiveX
ActiveX Pack1
Ever wanted an ActiveX package that covers almost everything and everywhere (PC, Pocket PC, Smartphone)? AXPack1 is close to that - work with files/streams, scripting, string formatting, write components in script, dictionary collections, data persistence and exchange and much more.
 
NetStreams
Part of AXPack1 that treats the TCP/IP and IRDA netwroking just like files - you can do with them almost everything you can do with files.
 
SQLite COM
Part of AXPack1. Full SQL database engine in a single object. ActiveX port of the popular SQLite datqabase.
IE Toolbars
IE ScriptBar
Create custom toolbars for IE, and make them do something really useful. You can do it in script, VB or C but as easy as creating a dynamic WEB page.
For Pocket IE
AXGate
Work safely with unsafe ActiveX in Pocket Internet Explorer.
IIS Plug-ins
ISAPI Authenticator
Implement custom authentication for your WEB sites. ISAPI filter for all IIS and PWS versions.
 
ISAPI Variable parser
Make the parameters passed to your pages look like plain URL.
 
ISAPI Redirector
Spread the trafffic to your site to more than one server or simply implement smarter redirection.
Copyright newObjects/ZmeY soft 2001-2005