Javascript

Creating Dynamic Controls with 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... ......

Posted On Wednesday, August 13, 2008 4:14 PM | Comments (2)

Replace URL's on the Quicklaunch in Javascript

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 ......

Posted On Friday, February 22, 2008 5:00 PM | Comments (7)

My Battle with the Quick Launch Accordion Slider Control

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 ......

Posted On Friday, June 13, 2008 9:49 PM | Comments (15)

Custom Flag Issue in Wikis

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 ......

Posted On Wednesday, February 27, 2008 6:12 PM | Comments (0)

Copyright © MOSSLover

Design by Bartosz Brzezinski

Design by Phil Haack Based On A Design By Bartosz Brzezinski