web-development

Is it bad practice to use LinkButtons as hyperlinks?

I have a web app with a start page composed of various links. I used the LinkButton control of System.Web.UI.WebControls for these links. I do a little bit of processing on postback, then I redirect to the appropriate page. The problem I find is that in IE7 I cannot right click the "link" and open in a new tab. The postback occurs ...

SSH automate ftp upload

I have a website that I work on locally and is hosted with a web host on another server. How would I use SSH to automatically push my local files to the production server? Would it possible to setup a list of files that are on my local machine that I do not want uploaded and can I have it upload only the files that have changes? EDIT: T...

Is it possible to work with GSP (groovy server pages) without the whole grails stuff?

I'd just like to play a little bit with groovy I was thinking about developing my own-tiny web framework, something very simple and manageable... So i'd like tou use GSP pages whtout having to install the whole grails stuff, with all its dependencies and behind-the-scenes frameworks... can anyone provide me detailed instructions on wh...

JSP template inheritance

Coming from a background in Django, I often use "template inheritance", where multiple templates inherit from a common base. Is there an easy way to do this in JSP? If not, is there an alternative to JSP that does this (besides Django on Jython that is :) base template <html> <body> {% block content %} {% endblock %} </body...

Opening ASP.net development server to world

I'm using the built in web server in Visual Studio to test some pags but I wanted to be able to connect to it from other machines to test out browsers on different platforms. I was wondering if it was possible to configure that server to listen to an external interface or if I have to throw this over to IIS. I've turned off the windows...

Is there a super-high-load (Ajax) chat script out there?

For a pet project, I have been looking for a web chat script capable of running potentially tens of thousands of users simultaneously. I don't want to use any kind of applet or browser extension, so on the client side, it should be simple Ajax. On the server side I'm pretty much open to anything. I'm not looking for bells and whistles, ...

Optimize 0ms query (or optimizing ahead) ?

In the final stage of development I started looking at code to try to find some bad practices. I discovered that while accessing a page, I'm querying the DB n times (n is the number of rows of an HTML table) just to get the translation (different languages) for a given record... I immediately thought that was bad and I tried a small opti...

CSS Selector for selecting an element that comes BEFORE another element?

I'm working on a login page for my website and I want to bold the label that comes before the input box when the text box gains focus. Right now I have the following markup: <label for="username">Username:</label> <input type="textbox" id="username" /> <label for="password">Password:</label> <input type="textbox" id="password" /> I c...

How can I get state and city information from a US zip code through an online web service?

I want to be able to give a best guess for what city and state a zip code is in via a web application. Is there some web service I can use to figure this out? ...

How secure is this ASP.Net authentication model?

I've created an web authentication app using c# & asp.net and want to bounce off how secure you think it is. All navigation is done by https. User Registration User enters 3 datapoints (SSN,Lname and DOB). If that combination is found in our system, a session variable is set and navigates to next page. If session variable for #1 is se...

How to automatically log on to asp.net application

I am building an intranet application, the requirement is to log in user without asking for credentials with the windows credentials he has logged on to computer, user if wants can logout from application and log in using the windows credentials pop up. ...

Best way to transparently log downloads?

I have a personal project that's been online for sometime now. I've been keeping a tally of downloads by doing this: When the user clicks the download link, it hits a PHP script that writes some information to a table. Once the data is written, the script returns the path to the actual file. The user then has the ability to save the fi...

Free tools to speed up web development

As a little side project, I am starting to build a new website for a certain organization I am affiliated to, which current site is simply outdated. I am regularly a Java developer, and last time I really did some web development was back in the late 90s, when <p> was still more popular than <div> and Javascript was cutting-edge technol...

Hosting a SilverLight website

Hi all, I am new to web development and am seeking some help :-) I have followed a silver light tutorial to build a basic silverlight app. http://weblogs.asp.net/scottgu/pages/silverlight-2-end-to-end-tutorial-building-a-digg-search-client.aspx i then hosted this app on aspspider. i have now modified the app to connect to a SQLExpre...

How do you determine what technology was used to build your favorite site?

Before the advent of all of the MVC web development frameworks available (Django, CakePHP, Rails, etc.), it wasn't too difficult to figure out what sort of tools were used to build a given website. You could usually look at the file extension on a given page and know right there. But now, a great many newer sites (such as this one) use...

How to check if a function is callable with parameters?

I'm calling a function with call_user_func_array : call_user_func_array(array($this, 'myFunction'), array('param1', 'param2', 'param3')); Everything is ok unless I don't know how many parameters the function needs. If the function needs 4 parameters it sends me an error, I'd like to test if I can call the function (with an array of pa...

How I turn an average desktop PC into server for hosting a website using Ruby on Rails?

What is the best way to turn an average desktop PC into server for hosting a website using Ruby on Rails? I am open to changing operating systems, buying parts if I need to, using whatever Database People recommend and any software. Here are the approximate details of the computer: The computer is an HP Desktop with 1.86GHz Duo Core...

Intranet back-office data on the webserver?

I am upgrading a client's e-commerce webstore and have hit a bit of a snag. The store is a custom-made set of PHP scripts. At each sale, the credit card is charged via the merchant account interface, and then the order is e-mailed to the client's desktop INBOX. However, as the company grows, this became unscalable, as the client spends ...

Javascript YUICompressor error

Using YUICompressor I get the following error from my javascript code: [ERROR] 270:201:missing name after . operator [ERROR] 292:6:missing ; before statement Here's the javascript code at the following lines: Line 270: new _ow.getScript(_ow.wwwurl+'/widget/save?title='+encodeURIComponent(this.obj.title.value)+'&url='+encode...

What might my user have installed thats going to break my web app?

There are probably thousands of applications out there like 'Google Web Accelerator' and all kinds of popup blockers. Then theres header blocking personal firewalls, full site blockers, and paranoid cookie monsters. Fortunately Web Accelerator is now defunct (I suggest you read the above article - its actually quite funny what issues it...