Below are snippets for Casper42.
0
This function pops open a new window - it bypasses security and most pop-up stoppers in IE and FF. This is used by the CreateUtilityLinks snippet.
1
This script allows the creation of an Outlook Distribution List from a text file. This is handy for creating a quick email distribution list without having to manually add each contact to the list.
I have used it only a couple times, but was born out of a need from a listserv member - they use it almost daily for emailing contacts pulled from a terminal-windowed application and saved as standard output.
Maybe you'll find this useful, maybe not, but thought I'd share it...
I have used it only a couple times, but was born out of a need from a listserv member - they use it almost daily for emailing contacts pulled from a terminal-windowed application and saved as standard output.
Maybe you'll find this useful, maybe not, but thought I'd share it...
2
Have you ever wanted to create a task in your Outlook To-Do list based on an email you just got?? I have many times, so I wrote this script a while back - it will create an Outlook task (syncs with handheld and such) based on the contents of an email - incuding any attachements.
handy to get stuff out of your inbox and on your To-Do list!
handy to get stuff out of your inbox and on your To-Do list!
4
This was an update someone else's snippet...
VBScript is a graceful language and Windows Scripting Host cleans up after itself, so this is a compact version for simple usage - reducing code bloat is what small scripts are for.
Just my $.02...
VBScript is a graceful language and Windows Scripting Host cleans up after itself, so this is a compact version for simple usage - reducing code bloat is what small scripts are for.
Just my $.02...
6
This function sets a particular style for an element based on it's class
6
This function will set the style of an element by it's ID
7
This little number will allow the contents of other pages to be included or embedded into the rendered HTML of an aspx page. Using the WebClient class from the .NET framework, you can conditionally load pages, even manipulate the HTML before it is rendered and in this example, fill in forms and execute javascript actions.
The following example shows how to auto-login to an Exchange Server - this was something requested for inclusion into our portal, but I left out the logic that pulls/decrypts the real password - for obvious reasons.
Enjoy!
~Jeremy
The following example shows how to auto-login to an Exchange Server - this was something requested for inclusion into our portal, but I left out the logic that pulls/decrypts the real password - for obvious reasons.
Enjoy!
~Jeremy
7
I wrote this script to ease installation of LDIF files into ADAM (Active Directory Application Mode). Some .NET portal vendors choose a hybrid of SQL and ADAM for their applications, ours did just that. When developing portlets, they must be registered in ADAM to be made available to the portal.
In the course or portlet development it was a pain to locate the directory the LDIF file (description file) lived and then to execute the LDIF installer - so I made it easy - a generic LDIF installer script. It uses the common OpenDialog to allow for searching for the file and then installing it once the file is selected - a real time-saver.
I will have more AD type goodies for you soon...(LDIFs are also used for creating or manipulating User and Computer accounts in AD)
In the course or portlet development it was a pain to locate the directory the LDIF file (description file) lived and then to execute the LDIF installer - so I made it easy - a generic LDIF installer script. It uses the common OpenDialog to allow for searching for the file and then installing it once the file is selected - a real time-saver.
I will have more AD type goodies for you soon...(LDIFs are also used for creating or manipulating User and Computer accounts in AD)
8
This code is used in an Educational Portal product but can be tweaked to fit your need.
This code adds a small icon next to the title of a 'portlet' that resides on the page. By clicking the portlet title, the portlet usually maximizes within the constraint of the portal template - but the extra icon allows for the portlet to be opened in it's own window.
This simulates an MDI interface.
(REQUIRES PopItUp snippet)
This code adds a small icon next to the title of a 'portlet' that resides on the page. By clicking the portlet title, the portlet usually maximizes within the constraint of the portal template - but the extra icon allows for the portlet to be opened in it's own window.
This simulates an MDI interface.
(REQUIRES PopItUp snippet)
8
This one may get me in trouble or kicked off MySpace altogether, but I thought it would be a fun bit of CSS magic to post.
As some of you may already know, MySpace does a REALLY good job of preventing images, script and some other tags from being used to customize your space. They have even gone to the extent of using tables without ID's to do the layout.
Pretty ingenious, allowing some customization, but still keeping those annoying ads for single women available to me and my youth groups kids, my family, etc..
Well no more - I want my friends to visit My Site, not just MySpace - so I have a clever method of getting them to go there, instead of posting comments on MySpace...
Check out my space to see this code in action!
www.myspace.com/casper619
As some of you may already know, MySpace does a REALLY good job of preventing images, script and some other tags from being used to customize your space. They have even gone to the extent of using tables without ID's to do the layout.
Pretty ingenious, allowing some customization, but still keeping those annoying ads for single women available to me and my youth groups kids, my family, etc..
Well no more - I want my friends to visit My Site, not just MySpace - so I have a clever method of getting them to go there, instead of posting comments on MySpace...
Check out my space to see this code in action!
www.myspace.com/casper619









