web-development

Is there a html opposite to noscript

Is there a tag in html that will only display its content if JavaScript is enabled? I know noscript works the opposite way around, displaying its html content when JavaScript is turned off. but I would like to only display a form on a site if JavaScript is available, telling them why they cant use the form if they don't have it. The onl...

Problems passing special chars with observe_field

I am working on a rails project. Using the tag observe_field, I am taking text typed into a text area, processing it in a control, and displaying the result in a div (very similar to the preview in stack overflow). Everything works fine until I type certain special chars. ? => causes the variable not to be found in the params object (p...

What is Web 3.0?

My boss asked me this yesterday just to gauge my response. Apparently, some of our clients are asking for "Web 3.0" I told him I really didn't know. He said when he's asked around the consensus is that it's microformats, etc. Frankly no one really knew either. (probably get a varied response now to "what is web 2.0?" still) I watche...

Is there some way I can validate a user in client side?

Is there some way I can authenticate a user in the client-side (browser) in a web application? ...

How to program user preferences

I'm using Ruby on Rails for an internal site. Different users of the site have access to a wide variety of data and highly disparate perspectives of the data. Within those different classes of users, there needs to be levels of access. Within the levels of access I need to be able to add features from other classes of users. In the rele...

How Do Sites Suppress Pasting Text?

I've noticed that some sites (usually banks) suppress the ability to paste text into text fields. How is this done? I know that JavaScript can be used to swallow the keyboard shortcut for paste, but what about the right-click menu item? ...

Concurrent logins in a web farm

I'm really asking this by proxy, another team at work has had a change request from our customer. The problem is that our customer doesn't want their employees to login with one user more than one at a time. That they are getting locked out and sharing logins. Since this is on a web farm, what would be the best way to tackle this issu...

Is it possible to persist (without reloading) AJAX page state across BACK button clicks?

I am familiar with several approaches to making the back button work in AJAX applications in various situations, but I have not found a solution that will work gracefully in my specific scenario. The pages I am working with are the search interface for a site. You enter terms in a normal search box, click "go and wind up at a search re...

How do I implement Search Functionality in a website?

I want to implement search functionality for a website (assume it is similar to SO). I don't want to use Google search of stuff like that. My question is: How do I implement this? There are two methods I am aware of: Search all the databases in the application when the user gives his query. Index all the data I have and store it som...

Cheapest SSL certificates

I'm looking for cheap SSL certs for running a personal website over https without triggering Firefox's "you may be facing a man-in-the-middle-attack" response that self signed certs provoke. Nothing particularly fancy, no EV, etc. Any recommendations/where do you get your certificates from? ...

Large File Download

Internet Explorer has a file download limit of 4GB (2 GB on IE6). Firefox does not have this problem (haven't tested safari yet) (More info here: http://support.microsoft.com/kb/298618) I am working on a site that will allow the user to download very large files (up to and exceeding 100GB) What is the best way to do this without using...

Designing a threaded commenting system

What would be the best way to design a threaded commenting system so that it doesn't hammer the database? ...

Best Practices for versioning web site?

What's are the best practices for versioning web sites? Which revision control systems are well suited for such a job? What special-purpose tools exist? What other questions should I be asking? etc... ...

PHP : session variable aren't usable when site is redirected

I've to admin a small website for my alumni group which is hosted by my ISV. The url is something like www.myIsv.com/myWebSite/ which is quite ugly and very forgetable. The main admin of the webserver has registered a domain name www.mysmallwebsite.com and put a index.html with this content: <html> <head> <title>www.mysmallwebsite.com</...

How do you transition from desktop application development to web development and back again?

I've worked on several desktop application projects, however whenever I'm faced with a web application project, I don't know where to begin. I have a grasp of the technologies I need to build an app - Rails, PHP, HTML, JavaScript, CSS, various SQL databases - but when it comes to actually building the app, it feels like I'm always stuck....

How do you build a multi-language web site?

A friend of mine is now building a web application with J2EE and Struts, and it's going to be prepared to display pages in several languages. I was told that the best way to support a multi-language site is to use a properties file where you store all the strings of your pages, something like: welcome.english = "Welcome!" welcome.spani...

Login Integration in PHP

In my host, I currently have installed 2 wordpress applications, 1 phpBB forum and one MediaWiki. Is there a way to merge the login so that all applications share the same credentials? For instance, I want to register only in my phpBB and then I want to access all other applications with the given username and password. Even if you do...

What does Google Chrome mean to web developers?

From a web developer point of view, what changes are expected in the development arena when Google Chrome is released? Are the developments powerful enough to make another revolution in the web? Will the way we see web programming change? Or is it just another web browser? ...

Encrypt data from users in web applications

Some web applications, like Google Docs, store data generated by the users. Data that can only be read by its owner. Or maybe not? As far as I know, this data is stored as is in a remote database. So, if anybody with enough privileges in the remote system (a sysadmin, for instance) can lurk my data, my privacy could get compromised. Wh...

How do you implement a "Did you mean"?

Suppose you have a search system already in your website. How can you implement the "Did you mean: " like Google does in some search queries? ...