web-development

Prevent user from accidentally navigating away

My problem is a bit more complex than using the following simple JavaScript code window.onbeforeunload = function (e) { return 'Are You Sure?'; }; On an e-commerce web page I would like to remind the user that he has items in the shopping cart so that he can change his mind before closing the browser tab/window navigating to...

Will HTML5 allow web apps to make peer-to-peer HTTP connections?

This is probably a dumb question, but I have to ask it anyway. I'd like to know if it is at all possible to create a web app that, with the help of a central server, could create direct connections with other users of the same web app. I'm imagining a process similar to UDP hole punching. I've read about the new WebSockets API in HTML5,...

Application developers wanting to start web development?

So what's your best advice for someone who knows application side development (C++/C#) and wants to start developing web applications and websites? What languages should i start with? (php/javascript/other) What kind of tips do you have for me? ...

Paging Mechanism

I am in the situation of working with large amount of records in a grid. Instead of, binding all records into the gird. why we should not bind set of records which are belongs to 5th page. ...

Best Solution for Caching....

Hi there, Where is the best place to implement caching in a web based app? At the presentation layer (hope not)? At the Business Logic Layer? At the data layer? I'm going to use something like memcached or MS Velocity under the hood. I'm just finding myself writing so much code to update the cache here and there in the business lo...

Using google API or building your own?

We are interested in using one or more of the Google APIs but we are afraid (or worried) about the future implication of this path. I will like to know other people's experiences of using the 3rd party API versus building their own service, if they found legal issues or if they found limitations other than the technical limitations. ...

Retrieve GET variables from URL in ASPX

What's the easiest / standard way to retrieve the GET (in URL) variables passed to a .aspx (VB) page? ...

Embedding web controls across sites - using IFrames/Javascript

Hi I'm just looking for clarification on this. Say I have a small web form, a 'widget' if you will, that gets data, does some client side verification on it or other AJAX-y nonsense, and on clicking a button would direct to another page. If I wanted this to be an 'embeddable' component, so other people could stick this on their sites,...

What are the best web design sites?

Hello! I just wanted to know what are the best websites about web design? I'm looking for websites about either web design, CSS, Photoshop for the web or web development in general (like new web technologies). ...

How do get clean URLs like Stackoverflow?

On some .NET driven sites URLs don't end with asp.net page names, like default.aspx, instead they use a pattern http://sitename.com or http://sitename.com/subdirectory/subdirectory. The site is mapped as sub directories off the root, ie. /tags, /users, /badges, the URLs would be /tags, /users, /badges respectively. StackOverflow, to use...

What does eCommerce programming involve?

I'm trying to land my first programming-related job, and I found a website for a company which is accepting resumes for an eCommerce development position. This is the requirements they listed: To be proficient in: HTML (hand-coded) CSS PHP Javascript MySQL Preferred skills: PEARL Linux The fact that they (unless they're actuall...

How to save data upon http session invalidation through jsp / servlets?

To track user activity history on a web application, I am attempting to save some session data to a database when the session is invalidated. My initial approach was to store the data on a javabean with a session scope and have it dump its data to the database through the finalize method. I figured this wouldn't be a perfect solution du...

Is there a way of including HTML pages without needing any javascript or server-side code, only HTML

Is there a way of including HTML pages without needing any javascript or server-side code, only HTML. Basically I can't be sure if the server supports server side includes. I don't want to use javascript and I don't want to use any PHP or other server side functionality. Is there any way to do this. At the moment I suspect not, but wou...

Using @font-face slows load time. Can I force the client to cache the font?

Update: Looks like the header request information is the culprit. How would I change the max-age property of the request header? TIA. Hi, I'm using @font-face on a website and i'm experiencing delayed loading of the text (presumably due to the loading of the font every page). I understand the client has to download the font once to di...

Creating a dynamic menu with jQuery

we are creating a new website. We would like to make up the site with iframes that represent different parts of the page, navigation, content, headers etc. However our navigation menu has some "context" built into it. That is if you are the "About" section the button/link for About will be highlighted to indicate that this is your loca...

Mutliple sites on same server sharing code.

Hi, I am going to be making a series of about 5 sites. They need to all run on the same system. I am planning on making them all point to the same server, then depending on which domain is used to access it, different content/styles will be served. So its essentially going to be 5 or so different retail sites specializing in a particula...

What is a reliable method to record votes from anonymous users, without allowing duplicates

First of all, I searched as best I could and read all SO questions that seem relevant, but nothing specifically answered this. This is not a duplicate, afaik. Obviously if anonymous voting on a website is allowed, there is no fool proof way to prevent someone voting more than once. However, I am wondering if someone with experience can...

What should I ask the previous development team during my only (1-3hr) meeting?

There is Ruby on Rails (1.8, 2.3.2) project. First version of project was made by some organisation. I will implement next versions of this project without any help from this organisation. I will be able to talk with developers from previous development team during meeting (1-3 hours). Project statistics: ~10k LOC, 1.0/0.6 code to test ...

Is there a way to detect a click anywhere on a page except for a certain region?

Here is my problem, I'm designing a website that allows you to select a certain item from a list by clicking on it using the onClick attribute. I would like to be able to deselect the item by clicking anywhere else on the page. I tried doing <body onClick="deselect()"> but then if I click anywhere on the page it deselect my item (even wh...

SVN Website Development and Deployment Solution

Here is the situation: we have multiple developers with varying degrees of commandline experience and we are putting together a deployment solution for our websites. The production environment is 2 SUSE Linux boxes. The development environment is a SUSE Linux box as well. Each developer has/will have a copy of the SVN tree in their h...