get (49,646) #5


Length of a JavaScript object

Length of a JavaScript object

If I have a JavaScript object, say var myObject=new Object(); myObject["firstname"]="Gareth"; myObject["lastname"]="Simpson"; myObject["age"]=21; is there a built-in or accepted best practice…


c# When do Request.Params and Request.Form differ?

I recently encountered a problem where a value was null if accessed with Request.Form but fine if retrieved with Request.Params. What are the differences between these methods that could cause this?…


php Add 1 to a field

How do I turn the following 2 queries into 1 query $sql="SELECT level FROM skills WHERE id=$id LIMIT 1;"; $result=$db->sql_query($sql); $level=(int) $db->sql_fetchfield('level'); $db…


Get size of a file before downloading in Python

I'm downloading an entire directory from a web server. It works OK, but I can't figure how to get the file size before download to compare if it was updated on the server or not. Can this be done as…



javascript Getting the text from a drop-down box

This gets the value of whatever is selected in my dropdown menu. document.getElementById('newSkill').value I cannot however find out what property to go after for the text that's currently displayed…


What is the best way to store connection string in.NET DLLs?

The application my team is currently developing has a DLL that is used to perform all database access. The application can not use a trusted connection because the database is behind a firewall and…


.net Regular expression for parsing links from a webpage?

I'm looking for a.NET regular expression extract all the URLs from a webpage but haven't found one to be comprehensive enough to cover all the different ways you can specify a link. And a side ques…


Java Time Zone is messed up

I am running a Tomcat application, and I need to display some time values. Unfortunately, the time is coming up an hour off. I looked into it and discovered that my default TimeZone is being set to…


How to access.Net element on Master page from a Content page?

Is it possible to access an element on a Master page from the page loaded within the ContentPlaceHolder for the master? I have a ListView that lists people's names in a navigation area on the Master…


How should I load files into my Java application?

How should I load files into my Java application?…




how from value example javascript and set name with java