[ Log On ]

List

Create New

Author:

nick.kinney

Title:

JQuery Parallax Rotator

Comment:

Lots of different rotators exist, but the coolest one I have seen would be the Jquery Parallax rotator. Here is a great example.

Replies...

Id Comments Name

Author:

nick kinney

Title:

super mouse

Comment:

Dude, I found the best mouse ever!

Replies...

Id Comments Name

Author:

hi

Title:

hi

Comment:

saweet

Replies...

Id Comments Name

Author:

asd

Title:

sad

Comment:

sdfsdfsdfsfsdf

Replies...

Id Comments Name

Author:

kinney

Title:

Great Article!

Comment:

How great of an article can this be?

Replies...

Id Comments Name

Author:

My name is

Title:

Rockstar

Comment:

SCORE!!!!!!!!!!!!!

Replies...

Id Comments Name

Author:

Random

Title:

Random

Comment:

Cid!

Replies...

Id Comments Name

Author:

nick.kinney

Title:

Grass Car

Comment:

This is about the new grass car.

Replies...

Id Comments Name

Author:

nick kinney

Title:

Chevy Volt

Comment:

Chevy Volt is very nice looking. I like how it can get 40 miles without using any electricity!

Enjoying this vehical does come with a cost. About 32-40k. The only question I have, is where are the government incentives? Why are they not more clearly labeled on the website?

Chevy Volt

By: Nicholas Kinney

Replies...

Id Comments Name

Author:

nick kinney

Title:

95/90 mpg

Comment:

Not only would I buy this, but I would have to figure out how to charge it in Wisconsin!

http://autos.msn.com/research/compare/default.aspx?mode=compete&modelid=14133

Replies...

Id Comments Name

Author:

anonymous user...

Title:

credit card

Comment:

free credit cards.

Replies...

Id Comments Name

Author:

nick.kinney

Title:

Zoe Saldana

Comment:

For the first time in eleven years, the “Avatar” stunner is single after splitting from entrepreneur Keith Britton. A rep for Saldana told Access Hollywood that the split was amicable and that the pair will remain “committed business partners.” They co-founded fashion site MyFDB.com.

Replies...

Id Comments Name

Author:

nick.kinney

Title:

movember

Comment:

growing mustaches. keep it growing!

Replies...

Id Comments Name

Author:

nick.kinney

Title:

2008 audi s6

Comment:

This engine is the bomb. More information to come on the V10 machine.

Replies...

Id Comments Name

Author:

nkinney

Title:

dynamically served page

Comment:

This sounds like a route to take. Enable web-page to allow dynamic content. An example would be how sharepoint uses webparts in order to distinguish which control the site is capable of creating and consuming.

Replies...

Id Comments Name

Author:

nkinney

Title:

plank

Comment:

I guess planking is the internet trend now!

Replies...

Id Comments Name

Author:

anonymous user...

Title:

trans am

Comment:

my trans am

Replies...

Id Comments Name

Author:

nick.kinney

Title:

cheesesteak

Comment:

Looks so good.

Replies...

Id Comments Name

Author:

nick.kinney

Title:

exception-handling

Comment:

if (e.Exception != null) { // Display a user-friendly message ExceptionDetails.Visible = true; ExceptionDetails.Text = "There was a problem updating the product. "; if (e.Exception.InnerException != null) { Exception inner = e.Exception.InnerException; if (inner is System.Data.Common.DbException) ExceptionDetails.Text += "Our database is currently experiencing problems." + "Please try again later."; else if (inner is NoNullAllowedException) ExceptionDetails.Text += "There are one or more required fields that are missing."; else if (inner is ArgumentException) { string paramName = ((ArgumentException)inner).ParamName; ExceptionDetails.Text += string.Concat("The ", paramName, " value is illegal."); } else if (inner is ApplicationException) ExceptionDetails.Text += inner.Message; } // Indicate that the exception has been handled e.ExceptionHandled = true; // Keep the row in edit mode e.KeepInEditMode = true; }

Replies...

Id Comments Name

Author:

nick.kinney

Title:

Dynamic LINQ

Comment:

I am attempting to write dynamic linq with sql. My approach is to have each possible sql "where" clause allow user's to dynamically generate sql statements. The benefit, as far as I can see, is how you can generate a where clause dynamically. An example I can think of is I want to generate a query, that queries a result set from a data warehouse. Save this query to a database, and in turn use an SSIS package to execute this query.

Replies...

Id Comments Name

Author:

nick.kinney

Title:

nuclear-levels

Comment:

I think that letting everyone know the truth is the best policy. The only problem with this is that it will cause issues with order and everyone would go crazy to flee. What do you think?

Replies...

Id Comments Name

Author:

nick.kinney

Title:

workflow foundation

Comment:

I am trying to understand this example. My issue, is can I save a .xoml/.xaml definition to the database the same way you save an xml file? Or do I have to convert this file to something else?

Replies...

Id Comments Name

Author:

nick.kinney

Title:

Rift

Comment:

Screenshot of RIFT. Decent elevation.

Replies...

Id Comments Name

Author:

nick.kinney

Title:

ajax-accordion

Comment:

Binding ajax accordion inside listview template.

Replies...

Id Comments Name

Author:

nick.kinney

Title:

e-cigarette

Comment:

This little cigarette had me interested for quite some time. But as usual, days go on and the trips to the gas station to buy a pack as well as whatever else I "thought" I needed continued. Then I got laid off. Shoot, now I can't even afford my cigarette habit. Let alone myself, but my wife also smokes. We needed to do something. So we bought the e-cigarette. To keep a long story short, it has been 7 days and no cravings have derailed us yet. Despite family that smoke, offering us cigarettes, we have been 100%. I hope this helps any who read it!

Replies...

Id Comments Name

Author:

nick.kinney

Title:

siblings

Comment:

this is great

Replies...

Id Comments Name

Author:

nick.kinney

Title:

namespace-javascript

Comment:

function pageLoad() { var Managers = {}; Managers.CssManager = {}; Managers.CssManager = { addStyleSheet: function(id, url) { var newStyleSheet = document.createElement("link"); newStyleSheet.setAttribute("rel", "stylesheet"); newStyleSheet.setAttribute("type", "text/css"); newStyleSheet.setAttribute("id", id); newStyleSheet.setAttribute("href", url); document.getElementsByTagName("head")[0].appendChild(newStyleSheet); }, removeStyleSheet: function(id) { var currentStyleSheet = document.getElementById(id); if (currentStyleSheet) { currentStyleSheet.parentNode.removeChild(currentStyleSheet); } }, swapStyleSheet: function(id, url) { this.removeStyleSheet(id); this.addStyleSheet(id, url); } } Managers.CssManager.addStyleSheet("test", "App_Themes/Styles/StyleSheet.css"); }

Replies...

Id Comments Name

Author:

nick.kinney

Title:

ldap-authentication

Comment:

more testing blog with jquery reload issue

Replies...

Id Comments Name

Author:

anonymous user...

Title:

char_reverse

Comment:

This code will allow the user to reverse a char[] array by calling this method. public char[] char_reverse(string value) { int outerIndex; char[] mystring = new char[value.Length]; char[] newarray = new char[mystring.Length]; for (int i = 0; i < value.Length; i++) { mystring[i] = value[i]; } int math = mystring.Length / 2; for (int j = 1; j < mystring.Length; j++) { outerIndex = mystring.Length - j; // we have hit the 'middle', exit loop // otherwise overriting will occur if (outerIndex == mystring.Length / 2) break; mystring[j - 1] = value[outerIndex]; mystring[outerIndex] = value[j - 1]; } return mystring; }

Replies...

Id Comments Name

Author:

anonymous user...

Title:

Venus

Comment:

Is a planet.

Replies...

Id Comments Name

Author:

nick.kinney

Title:

Trees

Comment:

I need to create functionality to validate blogs using a web service and parse the string of illegal chars.

Replies...

Id Comments Name

Author:

nick.kinney

Title:

Trees

Comment:

trees are actually line segments

Replies...

Id Comments Name

Author:

anonymous user...

Title:

awesome-coding-skills

Comment:

more coding comments about no bot and image streams

Replies...

Id Comments Name

Author:

nick.kinney

Title:

more stuff

Comment:

compose in chrome has issue with the image button not having an image

Replies...

Id Comments Name

Author:

nick.kinney

Title:

Name That Blog

Comment:

Blogging is just the beginning.

Replies...

Id Comments Name

Author:

Kinney

Title:

javascript

Comment:

will be appreciated

Replies...

Id Comments Name

Author:

Kinney

Title:

javascript

Comment:

will be appreciated

Replies...

Id Comments Name

Author:

ldap-authentication

Title:

ldap-authentication

Comment:

ldap-authentication

Replies...

Id Comments Name

Author:

Author

Title:

New BLog

Comment:

Capability to submit blog with picture while being bot protected.

Replies...

Id Comments Name

Author:

Author

Title:

New BLog

Comment:

Capability to submit blog with picture while being bot protected.

Replies...

Id Comments Name

Author:

nick

Title:

Blogging 101

Comment:

this is a comment for blogpost on bloglist

Replies...

Id Comments Name

Author:

nick

Title:

BLogzor

Comment:

More comments with PICTURE QUALITY BLOG

Replies...

Id Comments Name

Author:

anonymous user...

Title:

served-pages

Comment:

Testing bot protection.

Replies...

Id Comments Name

Author:

nick.kinney

Title:

testing

Comment:

this is a funny, test.

Replies...

Id Comments Name

Author:

nick.kinney

Title:

Fan-Club

Comment:

I am a fan with bot protection.

Replies...

Id Comments Name

Author:

nick.kinney

Title:

leaves

Comment:

I wish people would vote on the control so I can get an understanding if it is good or not!!! But, no one uses it, so...

Replies...

Id Comments Name

Author:

nick.kinney

Title:

effort

Comment:

Coding effort.

Replies...

Id Comments Name

Author:

nick.kinney

Title:

ldap-authentication

Comment:

My goal is to use ldap authentication for good.

Replies...

Id Comments Name

Author:

nick.kinney

Title:

Archdiocese-of-Milwaukee-files-for-bankruptcy-protection

Comment:

Archdiocese-of-Milwaukee-files-for-bankruptcy-protection
Another problem for the church has come to be. But I am sure this too, will pass. But is that what we should do? Turn the other cheek and turn a blind eye?

Replies...

Id Comments Name

Author:

anonymous user...

Title:

Tree

Comment:

package { import flash.display.Sprite; public class Tree extends Sprite { public var xpos:Number = 0; public var ypos:Number = 0; public var zpos:Number = 0; public function Tree() { init(); } public function init():void { graphics.lineStyle(0, 0xffffff); graphics.lineTo(0, -140 - Math.random() * 20); graphics.moveTo(0, -30 - Math.random() * 30); graphics.lineTo(Math.random() * 80 - 40, -100 - Math.random() * 40); graphics.moveTo(Math.random() * 60 - 30, -110 - Math.random() * 20); graphics.lineTo(Math.random() * 60 - 30, -110 - Math.random() * 20); } } }

Replies...

Id Comments Name

Author:

anonymous user...

Title:

Trees

Comment:

package { import flash.display.Sprite; import flash.events.Event; import flash.events.KeyboardEvent; import flash.ui.Keyboard; [SWF(backgroundColor=0x000000)] public class Trees extends Sprite { private var trees:Array; private var numTrees:uint = 1000; private var fl:Number = 250; private var vpX:Number = stage.stageWidth / 2; private var vpY:Number = stage.stageHeight / 2; private var floor:Number = 50; private var ax:Number = 0; private var ay:Number = 0; private var az:Number = 0; private var vx:Number = 0; private var vy:Number = 0; private var vz:Number = 0; private var gravity:Number = 0.3; private var friction:Number = 0.98; public function Trees() { init(); } private function init():void { trees = new Array(); for(var i:uint; i < numTrees; i++) { var tree:Tree = new Tree(); trees.push(tree); tree.xpos = Math.random() * 2000 - 1000; tree.ypos = floor; tree.zpos = Math.random() * 10000; addChild(tree); } addEventListener(Event.ENTER_FRAME, onEnterFrame); stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown); stage.addEventListener(KeyboardEvent.KEY_UP, onKeyUp); } private function onEnterFrame(event:Event):void { vx += ax; vy += ay; vz += az; vy -= gravity; for(var i:uint = 0; i < numTrees; i++) { var tree:Tree = trees[i]; move(tree); } vx *= friction; vy *= friction; vz *= friction; sortZ(); } private function onKeyDown(event:KeyboardEvent):void { switch(event.keyCode) { case Keyboard.UP: az = -1; break; case Keyboard.DOWN : az =1; break; case Keyboard.LEFT : ax = 1; break; case Keyboard.RIGHT : ax = -1; break; case Keyboard.SPACE: ay = 1; break; default: break; } } private function onKeyUp(event:KeyboardEvent):void { switch(event.keyCode) { case Keyboard.UP: case Keyboard.DOWN: az = 0; break; case Keyboard.LEFT: case Keyboard.RIGHT: ax = 0; break; case Keyboard.SPACE: ay = 0; break; default: break; } } private function move(tree:Tree):void { tree.xpos += vx; tree.ypos += vy; tree.zpos += vz; if(tree.ypos < floor) { tree.ypos = floor; } if(tree.zpos < -fl) { tree.zpos += 100000; } if(tree.zpos > 10000 - fl) { tree.zpos -= 100000; } var scale:Number = fl / (fl + tree.zpos); tree.scaleX = tree.scaleY = scale; tree.x = vpX + tree.xpos * scale; tree.y = vpY + tree.ypos * scale; tree.alpha = scale; } private function sortZ():void { trees.sortOn("zpos", Array.DESCENDING | Array.NUMERIC); for(var i:uint = 0; i < numTrees; i++) { var tree:Tree = trees[i]; setChildIndex(tree, i); } } } }

Replies...

Id Comments Name

Author:

nick.kinney

Title:

zombify-my-ride

Comment:

Zombify your vehicle to be the best at navigating a zombie apocolypse. Destroy zombies and survive with zombify your ride!

Replies...

Id Comments Name

Author:

nick.kinney

Title:

wiki-leaks

Comment:

Perhaps the best website created. I hope this will continue and perhaps expand to a television station that will enlighten all of the WORLD. Not just America with the information, but every country that thinks their government is doing the citizens a favor. Everyone is sick and tired of being pushed around by money hungry losers. In the scheme of this debate, we are losing all self worth.

Replies...

Id Comments Name

Author:

nick.kinney

Title:

bing-sucks

Comment:

I believe bing is junk because it is useless. It is supposed to be a different flavor, but it is not. It tries to mimic the same concepts as google, which will get you no where fast. If you want to get ahead of google, think where the market is going. People are not going to physically search for things, because the system will understand what you mean. When I say potato, a surplus of meals with how to cook with potatos should appear. Not the history of the potato and its chemical qualities.

Replies...

Id Comments Name

Author:

john.latherow

Title:

Comment:

WOW!

Replies...

Id Comments Name

Author:

nick.kinney

Title:

adam-lambert

Comment:

That is the only song that has value.

Replies...

Id Comments Name

Author:

anonymous user...

Title:

adam-lambert

Comment:

What do you want from me.

Replies...

Id Comments Name

Author:

anonymous user...

Title:

745

Comment:

Replies...

Id Comments Name

Author:

nick.kinney

Title:

downgrade-visual-studio-2010-to-visual-studio-2008

Comment:

Downgrade

Replies...

Id Comments Name

Author:

nick.kinney

Title:

Fan-Club

Comment:

Replies...

Id Comments Name

Author:

nick.kinney

Title:

Fan-Club

Comment:

Replies...

Id Comments Name

Author:

anonymous user...

Title:

foo

Comment:

Replies...

Id Comments Name

Author:

nick.kinney

Title:

asp.net-website-administration-tool

Comment:

I like games

Replies...

Id Comments Name

Author:

anonymous user...

Title:

business-to-business-blog

Comment:

This will help increase your traffic to your site as well as revenue. This will be a new type of way to work between companies.

Replies...

Id Comments Name

Author:

anonymous user...

Title:

mysql-server-instance-configuration-wizard-not-responding-windows-7

Comment:

I would have to say that this is being a huge pain! I am trying to install on a 64 bit windows 7 machine with no luck!

Replies...

Id Comments Name

Author:

nick.kinney

Title:

mysql-server-instance-configuration-wizard-not-responding-windows-7

Comment:

Does anyone know how to fix this?

Replies...

Id Comments Name

Author:

anonymous user...

Title:

s

Comment:

s

Replies...

Id Comments Name

Author:

nick.kinney

Title:

automotive

Comment:

This is where the automotive blog is.

Replies...

Id Comments Name

Author:

nick.kinney

Title:

asp.net-logout-not-working

Comment:

Logout Code

Replies...

Id Comments Name

Author:

nick.kinney

Title:

green-bay-packers

Comment:

So far, the Green Bay packers have done a great job on Defense with multiple interceptions. Their offense has scored but are unable to hook up short plays due to the Detroit Lions defense.

Replies...

Id Comments Name

Author:

nick.kinney

Title:

seadragon

Comment:

must learn how to code this out for wide shots

Replies...

Id Comments Name

Author:

nick.kinney

Title:

new-blog-system

Comment:

Enhancing the system based on google brain. Reference

Replies...

Id Comments Name

Author:

nick.kinney

Title:

seo

Comment:

AdWords AdSense Analytics Apps xequence@gmail.com My Account Help Sign out We weren't able to verify your site: http://www.servedpages.com/ « Go back Verify ownership Help with: Understanding verification Verifying with meta tag Verifying with HTML Verifying with DNS Verifying with Google Analytics Verification errors Verify ownership Verification status Not Verified - Last attempt Less than a minute ago - Hide history Attempted Method Outcome Less than a minute ago 10/2/10 3:29:45 AM UTC Meta tag Verification failed. The connection to your server timed out. There are several ways to prove to Google that you own http://www.servedpages.com/. Select the option that is easiest for you. Add a DNS record to your domain's configuration You can use this option if you can sign in to your domain registrar or hosting provider and add a new DNS record. Add a meta tag to your site's home page You can choose this option if you can edit your site's HTML. Upload an HTML file to your server You can choose this option if you can upload new files to your site. Link to your Google Analytics account You can use this option if your site already has a Google Analytics tracking code that uses the asynchronous snippet. You must be an administrator on the Analytics account. Instructions: 1. Copy the meta tag below, and paste it into your site's home page. It should go in the section, before the first section. Show me an example My title page contents 2. Click verify below. Leave the meta tag in place even after verification succeeds. © 2010 Google Inc. - Webmaster Central - Terms of Service - Privacy Policy - Webmaster Tools Help

Replies...

Id Comments Name

Author:

nick.kinney

Title:

seo

Comment:

Search Engine Optimization helps site's be found on common search engines. Every one says this is better than that but the true way to figure this out is to learn how the search engine performs.

Replies...

Id Comments Name

Author:

nick.kinney

Title:

the-recession-is-over

Comment:

Do you believe this? I do but at the same time I do not. The recession is over if you have a technical background and years of experience. If you do not have either, the recession is still in full swing. The main problem, I think, is the media outlook on current events. Media does not sell good news, obviously. What it does for us is remind us the worst case scenario. This scenario that the media has painted for us is years and years of mistakes and waste. Now, true American values have shifted in the direction of, "I do not have faith in this system, I will now control". This mentality will keep cash in hand and destroy big investment companies that provide the "yes sir we can do that" approach.

Replies...

Id Comments Name

Author:

anonymous user...

Title:

jammin

Comment:

I like jammin with Toe Jam n' Earl!

Replies...

Id Comments Name

Author:

anonymous user...

Title:

jammin

Comment:

Bob Marley

Replies...

Id Comments Name

Author:

anonymous user...

Title:

abc

Comment:

Replies...

Id Comments Name

Author:

anonymous user...

Title:

browser-detection

Comment:

how do i format my blog text?

Replies...

Id Comments Name

Author:

anonymous user...

Title:

ldap-authentication

Comment:

using System; using System.Text; using System.Collections; using System.DirectoryServices; /// /// Summary description for LdapAuthentication /// /// namespace FormsAuth { public class LdapAuthentication { private string _path; private string _filterAttribute; public LdapAuthentication(string path) { _path = path; } public bool IsAuthenticated(string domain, string username, string pwd) { string domanAndUsername = domain + @"\" + username; DirectoryEntry entry = new DirectoryEntry(_path, domanAndUsername, pwd); string defaultNamingContext = entry.Properties["defaultNamingContext"].Value.ToString(); DirectoryEntry default1 = new DirectoryEntry("LDAP://" + defaultNamingContext); try { // bind to the native adsobject to force authentication object obj = entry.NativeObject; //DirectorySearcher search = new DirectorySearcher(entry); DirectorySearcher search = new DirectorySearcher(default1, "(objectClass=orginizationalUnit)", null, SearchScope.Subtree); search.Filter = "(SAMAccountName=" + username + ")"; search.PropertiesToLoad.Add("cn"); //search.PropertiesToLoad.Add("memberOf"); SearchResult result = search.FindOne(); if (null == result) { return false; } // update the new path to the user in the directory. _path = result.Path; _filterAttribute = (string)result.Properties["cn"][0]; //_filterAttribute = entryTest.Properties["memberOf"][0].ToString(); GetGroups(); } catch (Exception ex) { throw new Exception("Error authenticating user. " + ex.Message); } return true; } public string GetGroups() { DirectorySearcher search = new DirectorySearcher(_path); search.Filter = "(cn=" + _filterAttribute + ")"; search.PropertiesToLoad.Add("memberOf"); StringBuilder groupNames = new StringBuilder(); try { SearchResult result = search.FindOne(); int propertyCount = result.Properties["memberOf"].Count; string dn; int equalsIndex, commaIndex; for (int propertyCounter = 0; propertyCounter < propertyCount; propertyCounter++) { dn = (string)result.Properties["memberOf"][propertyCounter]; equalsIndex = dn.IndexOf("=", 1); commaIndex = dn.IndexOf(",", 1); if (-1 == equalsIndex) { return null; } groupNames.Append(dn.Substring((equalsIndex + 1), (commaIndex - equalsIndex) - 1)); groupNames.Append("|"); // check if groups exists ArrayList arr = new ArrayList(); arr.Add(dn.Substring((equalsIndex + 1), (commaIndex - equalsIndex) - 1)); if (arr.Contains("mygroup")) { } } } catch (Exception ex) { throw new Exception("Error obtaining group names. " + ex.Message); } return groupNames.ToString(); } } }

Replies...

Id Comments Name

Author:

anonymous user...

Title:

what

Comment:

what is funny?

Replies...

Id Comments Name

Author:

nick.kinney

Title:

who

Comment:

Get to the choppa!

Replies...

Id Comments Name

Author:

nick.kinney

Title:

asp.net-website-administration-tool

Comment:

I must implement control of this remotely through the internal content of the site. Perhaps allow users to create their own role security for the site as to add a more robust environment that is ultimately in the user's control. This way if family members want to access part of the same group of roles, it is allowed. Same concept as facebook, instead of allowing you to see other profiles, it allows you to perform more functions and add/remove webparts to display/update data.

Replies...

Id Comments Name

Author:

nick.kinney

Title:

autocomplete-extender

Comment:

I will need timed queries that execute and recategorize my data using indexes. This should speed up the autocomplete-extender processes.

Replies...

Id Comments Name

Author:

nick.kinney

Title:

served-pages

Comment:

Speed is my primary concern and wasting memory without caching images and database hits will be in vain if not implemented correctly.

Replies...

Id Comments Name

Author:

nick.kinney

Title:

served-pages

Comment:

I have to allow XMLHTTPRequest for my gridview once typing in autocomplete extender to dynamically populate my gridview based on criteria. I have it set up now to rebind my gridview textchanged and onblur() but I do not think that is enough speed.

Replies...

Id Comments Name

Author:

nick.kinney

Title:

google-chrome

Comment:

I have to write cross browser compatability on my set_height() javascript function. Chrome, Safari, Netscape, IE9, Ie8 and subsequent versions of IE. Perhaps enhance my commenting capabilities by adding spell checker and hyperlinks Google Chrome

Replies...

Id Comments Name

Author:

nick.kinney

Title:

sitemap-path

Comment:

I must remember to choose a blog type otherwise all is in vain!

Replies...

Id Comments Name

Author:

nick.kinney

Title:

sitemap-path

Comment:

This will help spiders crawl my site and find related content.

Replies...

Id Comments Name

Author:

nick.kinney

Title:

adam-lambert

Comment:

He has some cool songs, and by songs I mean one.

Replies...

Id Comments Name

Author:

nick.kinney

Title:

javascript-create-file-upload

Comment:

i am finding lots of duplicate information

Replies...

Id Comments Name

Author:

anonymous user...

Title:

javascript-create-file-upload

Comment:

How to format a blog?

Replies...

Id Comments Name

Author:

nick.kinney

Title:

javascript-create-file-upload

Comment:

function addFileUploadBox() { var newUploadBox; if (!document.getElementById || !document.createElement) { return false; } var uploadArea = document.getElementById("upload-area"); if (!uploadArea) return; // find the initial file upload control var initialUploadControl = uploadArea.getElementsByTagName('input') for (var i = 0; i < initialUploadControl.length; i++) { selectElement = initialUploadControl[i]; // this only works for subsequent upload control // once i am past the first array value, this code does not work for (var j = i; j < initialUploadControl.length; j++) { if (initialUploadControl[j].value == '') { alert('Please choose a file before adding another.'); return false; } } } createFileUploadBox(uploadArea); } function createFileUploadBox(uploadArea) { try { // var newLine = document.createElement("br"); // uploadArea.appendChild(newLine); if (!addFileUploadBox.lastAssignedId) addFileUploadBox.lastAssignedId = 100; var divSupport = document.createElement("div"); //divSupport.style.padding = "2px 4px"; divSupport.setAttribute("id", "DivField_" + addFileUploadBox.lastAssignedId); uploadArea.appendChild(divSupport); var newUploadLabel = document.createElement("label"); newUploadLabel.style.width = "90px"; newUploadLabel.htmlFor = "htmlFor"; var text = document.createTextNode("File Name: "); newUploadLabel.appendChild(text); divSupport.appendChild(newUploadLabel); newUploadBox = document.createElement("input"); // set attributes newUploadBox.type = "file"; newUploadBox.size = "60"; newUploadBox.style.width = "200px"; newUploadBox.setAttribute("id", "FileField_" + addFileUploadBox.lastAssignedId); newUploadBox.setAttribute("name", "FileField_" + addFileUploadBox.lastAssignedId); divSupport.appendChild(newUploadBox); // delete functionality var deleteButton = document.createElement("img"); //deleteButton.type = "button"; deleteButton.setAttribute("id", "DeleteButton_" + addFileUploadBox.lastAssignedId); deleteButton.setAttribute("name", "DeleteButton_" + addFileUploadBox.lastAssignedId); //deleteButton.value = "Delete"; deleteButton.src = "Images/delete.gif"; deleteButton.style.height = "20px"; deleteButton.style.width = "20px"; deleteButton.align = "top"; deleteButton.style.padding = "2px"; deleteButton.style.cursor = "hand"; deleteButton.title = "Delete Upload"; // mouse over image deleteButton.onmouseover = function() { mouseOver(this); } // mouse out image deleteButton.onmouseout = function() { mouseOut(this); } // remove all fields if delete button clicked deleteButton.onclick = function() { removeField(this); } divSupport.appendChild(deleteButton); // increment addFileUploadBox.lastAssignedId++; } catch (e) { alert(e); } } function removeField(field) { var myDivFieldIHope = field.parentNode; for (var i = 0; i < myDivFieldIHope.childNodes.length; i++) { myDivFieldIHope.removeChild(myDivFieldIHope.firstChild); } myDivFieldIHope.parentNode.removeChild(myDivFieldIHope); } function mouseOver(field) { field.src = "Images/deleteMouseOver.gif"; } function mouseOut(field) { field.src = "Images/delete.gif"; } function ValidateFileNames() { var uploadArea = docum

Replies...

Id Comments Name

Author:

nick.kinney

Title:

browser-detection

Comment:

uniqueInteger.counter = 0; function uniqueInteger() { // increment and return our "static" variable return uniqueInteger.counter++; } function Rectangle(w, h) { this.width = w; this.height = h; } Rectangle.prototype.area = function() { return this.width * this.height; } /* inner width */ try { var x, y; if (self.innerHeight) // all except Explorer { x = self.innerWidth; y = self.innerHeight; } else if (document.documentElement && document.documentElement.clientHeight) // Explorer 6 Strict Mode { x = document.documentElement.clientWidth; y = document.documentElement.clientHeight; } else if (document.body) // other Explorers { x = document.body.clientWidth; y = document.body.clientHeight; } } catch (e) { //alert(e); } } var r = new Rectangle(x, y); var a = r.area(); //alert('inner width ' + x + ' inner height ' + y + ' area: ' + a); r.hasOwnProperty("width"); // true: width is a direct property of r r.hasOwnProperty("area"); // false: area is an inherited property of r "area" in r; // true: "area" is a property of r /* PAGE HEIGHT */ try { var x, y; var test1 = document.body.scrollHeight; var test2 = document.body.offsetHeight if (test1 > test2) // all but Explorer Mac { x = document.body.scrollWidth; y = document.body.scrollHeight; } else // Explorer Mac; //would also work in Explorer 6 Strict, Mozilla and Safari { x = document.body.offsetWidth; y = document.body.offsetHeight; } } catch (e) { //alert(e); } //alert('page width ' + x + ' page height ' + y); } try { /* scrolling offset */ var x, y; if (self.pageYOffset) // all except Explorer { x = self.pageXOffset; y = self.pageYOffset; } else if (document.documentElement && document.documentElement.scrollTop) // Explorer 6 Strict { x = document.documentElement.scrollLeft; y = document.documentElement.scrollTop; } else if (document.body) // all other Explorers { x = document.body.scrollLeft; y = document.body.scrollTop; } } catch (e) { //alert(e); } } //alert('scroll detection ' + x + ' x direction ' + y + 'y direction');

Replies...

Id Comments Name

Author:

nick.kinney

Title:

imageloop.js

Comment:

/** * ImageLoop.js: An ImageLoop class for performing image animations * * Constructor Arguments: * imageId: the id of the tag that will be animated * fps: the number of frames to display per second * frameURLs: an array of URLs, one for each frame of the animation * * Public methods: * start(): start the animation(but wait for all the frames to load first) * stop(): stop the animation * * Public Properties: * loaded: true if all frames of the animation have loaded, * false otherwise * */ function ImageLoop(imageId, fps, frameURLs) { // remember the image id, dont look it up yet since this constructor // may be called before the document is loaded. this.imageId = imageId; // computer the time to wait between frames of the animation this.frameInterval = 1000 / fps; // an array for holding image objects for each frame this.frames = new Array(frameURLs.length); this.image = null; this.loaded = false; this.loadedFrames = 0; this.startOnLoad = false; this.frameNumber = -1; this.timer = null; // initialize the frames[] array and preload the images for (var i = 0; i < frameURLs.length; i++) { this.frames[i] = new Image(); // create image object this.frames[i].onload = countLoadedFrames; this.frames[i].src = frameURLs[i]; } // this nested function is an event handler that counts how many // frames have finished loading. when all are loaded, it sets a flag, // and starts the animation if it has been requested to do so. var loop = this; function countLoadedFrames() { loop.loadedFrames++; if (loop.loadedFrames == loop.frames.length) { loop.loaded = true; if (loop.startOnLoad) loop.start(); } } // here we define a function that displays the next frame of the // animation. this function can't be an ordinarty instance method because // setInterval() can only invoke functions, not methods. so we make // it a clouse that includes a reference to the image object this._displayNextFrame = function() { // first, increment the frame number. The modulo operator (%) means // that we loop from the last to the first frame loop.frameNumber = (loop.frameNumber+1)%loop.frames.length; // update the src property of the image to the URL of the new frame loop.image.src = loop.frames[loop.frameNumber].src; }; } /** * this method starts an ImageLoop animation. if the frame images have not * finished loading, it instead sets a flag so that the animation will * automatically be started when loading completes */ ImageLoop.prototype.start = function() { if (this.timer != null) return; // already started // if loading is not complete, set a flag to start when it is if (!this.loaded) this.startOnLoad = true; else { // if we haven't looked up the image by id yet, do so now if (!this.image) this.image = document.getElementById(this.imageId); // display the first frame immediately this._displayNextFrame(); // and set a timer to display subsequent frames this.timer = setInterval(this._displayNextFrame, this.frameInterval); //alert(this.timer); } }; /** Stop an ImageLoop animation */ ImageLoop.prototype.stop = function() { if (this.timer) clearInterval(this.timer); alert('stop prototype function hit'); this.timer = null; };

Replies...

Id Comments Name

Author:

nick.kinney

Title:

sinus

Comment:

Not doing very well!

Replies...

Id Comments Name

Author:

nick.kinney

Title:

games

Comment:

Blog on any topic of games!

Replies...

Id Comments Name

Author:

nick.kinney

Title:

droid

Comment:

Message from the droid.

Replies...

Id Comments Name

Author:

anonymous user...

Title:

super-validate

Comment:

Test

Replies...

Id Comments Name

Author:

anonymous user...

Title:

super-validate

Comment:

served pages

Replies...

Id Comments Name

Author:

anonymous user...

Title:

super-validate

Comment:

http://www.servedpages.com

Replies...

Id Comments Name

Author:

anonymous user...

Title:

super-validate

Comment:

www.servedpages.com

Replies...

Id Comments Name

Author:

anonymous user...

Title:

super-validate

Comment:

Replies...

Id Comments Name

Author:

anonymous user...

Title:

test-url

Comment:

served

Replies...

Id Comments Name

Author:

nick.kinney

Title:

greatness

Comment:

if(you>me) return;

Replies...

Id Comments Name

Author:

nick.kinney

Title:

greatness

Comment:

Final Fantasy XIV

Replies...

Id Comments Name

Author:

nick.kinney

Title:

greatness

Comment:

Beowulf

Replies...

Id Comments Name

Author:

nick.kinney

Title:

greatness

Comment:

Knowledge is power and so is greatness.

Replies...

Id Comments Name

Author:

anonymous user...

Title:

iran-nukes

Comment:

The less nukes the better. Isn't there a better word for nuculear engineer other than the word nuke?

Replies...

Id Comments Name

Author:

anonymous user...

Title:

iran-nukes

Comment:

I would have to say that a civilian does not know enough about this issue.

Replies...

Id Comments Name

Author:

nick.kinney

Title:

awesome-coding-skills

Comment:

I am the author because I am still typing it in.

Replies...

Id Comments Name

Author:

nick.kinney

Title:

awesome-coding-skills

Comment:

title should be non editable field for sorting and grouping logic

Replies...

Id Comments Name

Author:

nick.kinney

Title:

awesome-coding-skills

Comment:

more blogging skills

Replies...

Id Comments Name

Author:

rock

Title:

awesome-coding-skills

Comment:

testing again

Replies...

Id Comments Name

Author:

nick.kinney

Title:

awesome-coding-skills

Comment:

This is where these will go to good use.

Replies...

Id Comments Name

Author:

nick.kinney

Title:

served

Comment:

This is a served blog with a querystring blog category.

Replies...

Id Comments Name

Author:

Served Pages Blogmaster

Title:

AjaxControlToolkit

Comment:

ajax

Replies...

Id Comments Name

Author:

nick.kinney

Title:

Primerica-Scams

Comment:

Primerica is not a real company. They claim to have stocks and a website, but this is all a false impression of a real company. They interview you, tell you how great you are and fill your head with everything that is good. They then ask you 'what would you do with 112 million dollars', which is a typical scheme to load the subconcious with hope. Overloaded hope is the easiest way to get someone to say yes to a 99$ background check, which is how the scheme works. Word to the wise, validating websites is not the best choice to prove that a company is real. If the stock for the company has been around for 3 months, and the company(Primerica) says they have been around for 22 years, call fowl.

Replies...

Id Comments Name

Author:

served.pagesblogmaster

Title:

Fan-Club

Comment:

He is the coolest person in the world!

Replies...

Id Comments Name
Served Pages QR