Home »
Tag: Web Development Tag: Web Development
-
IEBlog : File URIs in Windows.
¶ (0)
Tags: [Web Development, Windows]
-
JavaScript Kit- DOM Table Object Methods.
¶ (0)
Tags: [Javascript, Web Development]
C# is ugly as heck:
private static string JoinNvcToQs(System.Collections.Specialized.NameValueCollection qs){
return string.Join("&", Array.ConvertAll<string, string>(qs.AllKeys, delegate(string key){
return string.Format("{0}={1}", HttpUtility.UrlEncode(key), HttpUtility.UrlEncode(qs[key]));
}));
}
In Ruby, this would be (essentially):
e = URI.escape
qs.collect{ |k,v| e(k)+"="+e(v) }.join("&")
-
AppJet: Instant Web Programming (via).
¶ (0)
Tags: [Javascript, Web Development]
-
Simon Willison: Comet works, and it’s easier than you think.
Edit: see this, also via Simon.
¶ (0)
Tags: [Web Development]
-
Simon Willison: jQuery for JavaScript programmers. Maybe I'll use jQuery instead of Prototype for future development.
¶ (0)
Tags: [Javascript, Web Development]
-
IEBlog : IE6 and IE7 Running on a Single Machine. Run IE6 through Virtual PC... Virtual PC and IE6 image all provided free by Microsoft.
¶ (0)
Tags: [Web Development, Windows]
-
Scale rails from one box to three, four and five (via).
¶ (0)
Tags: [Ruby on Rails, Web Development]
-
YSlow for Firebug (via). Clever name. Yahoo-developed plugin for Firebug that helps analyze site performance.
¶ (0)
Tags: [Firefox, Web Development]
I always wind up needing functions to dynamically populate the options on a <select> list, or select a given item in an existing <select>. So I've finally written them out in a reusable form:
<select id="foo" onchange="alert(this.value)"/>
<script language="javascript" type="text/javascript">
function loadSelectOptions(selectId, keys, values, selectedOption){
var list = document.getElementById(selectId)
if(!list)
return;
var selectedIndex = 0;
list.length = 0;
var found = false;
for(var i=0,n=keys.length; i<n; i++){
list.options[i] = new Option(values[i], keys[i]);
if(selectedOption == keys[i]){
list.selectedIndex = i;
found = true;
}
}
return found;
}
function selectSelectOption(selectId, value, runEvent){
var list = document.getElementById(selectId)
if(!list)
return;
var options = list.options;
for(var i=0,n=options.length; i<n; i++){
if(options[i].value == value){
list.selectedIndex = i;
if(runEvent)
list.onchange();
return true;
}
}
return false;
}
loadSelectOptions("foo",['foo','bar','baz'], ['FOO','BAR','BAZ'],'baz')
var list = document.getElementById("foo")
list.remove(1)
selectSelectOption("foo","baz")
</script>
-
Destroydrop » Javascripts » Tree. dTree has worked great for me so far.
¶
Tags: [Javascript, Web Development]
|
Generated in about 0.179s. (Used 10 db queries) |
new⇒Maps of Iraq
my husband is in Scania too..hesays it's not too bad..he's been atworse...
Cristy: May 16, 3:54pm