More stuff... I'm almost done however. ;^)

These scripts both work in the same way: import them and they'll create a
single object on that page.  You can then use methods of the objects.

The first is a cookie abstraction object, DP_Cookie:

http://www.depressedpress.com/Content/Development/JavaScript/Extensions/DP_C
ookies/Index.cfm

Using this you can set, get and erase cookies.  There's also a getAll()
method which returns an object representing all currently accessible
cookies.

The other one, DP_QueryString, performs similar tasks for the query string:

http://www.depressedpress.com/Content/Development/JavaScript/Extensions/DP_Q
ueryString/Index.cfm

This guy can get any query string parameter by name or convert all query
string parameters to an object.  By default it uses the current query string
but you can also pass it a query string to parse instead.

There's also a generate() method which accepts an object and converts it to
a query string.

All the methods are capable of dealing with multiple parameters of the same
name.  By default parameters are returned as arrays of values, but you can
specify that you'd rather get them as list or ignore multiple entries and
just return either the first or the last values.

Hope this stuff comes in handy for somebody.

Jim Davis


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:245273
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to