Javascript
I was working on a search hack and needed the session state from ASP .Net controls and the ids from html controls using this hack: http://www.tqcblog.com/arch... So I came up with a creative solution. I would add the html controls in the background. Here is some code if you would like to add your own hidden html controls or just create some for fun: var currentElement = document.createElement("inp... currentElement.setAttribute...
A good portion of this week was spent recovering some documents that were deleted by a rogue console application (most likely my fault). I wrote a Console Application to combine some document libraries and I spent a good portion of a week testing it. However, I did not really think of enough scenarios, because it obviously did not move the documents properly. Some libraries were moved and others were not. At any rate I practiced my SQL Restoration skills and wrote another two console applications...
I must admit that I know only the most basic things about javascript (how to create a slideshow, how to redirect items, and how to write basic functions). I am debugging someone else's code and I still have no idea what I am doing. Basically on every one of these sites we have one default master page with a script inside to check every list and document library to see if a yes/no "Flag" field is checked and also checks the "Flag Expiration" to see if it is expired. If the field is checked and it...
Here is some sample code: while(document.getElementBy... != null) { var menu = document.getElementById('zz... //looks for the hyperlink tags using the quicklaunch tag var hyperlinks = menu.getElementsByTagName('... hyperlinks[0].href = hyperlinks[0].href.replace(... URLToReplace); //replaces the URL text hyperlinks[0].target = "_blank"; //allows for opening the link in a new window i+=1; } This tag for the quicklaunch: zz2_QuickLaunchMenu you can find...