web-applications

How does gmail dictate if an attachment is to be rendered or downloaded?

I'm curious what the methodology is behind the way that gmail (in their web client) offers a "view" and "download" links right next to each other for things like an attached .jpg file. I have found that the browser generally decides how it's going to handle such things based on the file's extension or mime type, but in this case, you ha...

Help modify a javascript - need to open link instead of displaying result

I'm trying to modify the code from this script. Basically I'm trying to get the script to send the browser to another page rather than display the results in a div. This is the code in question: <script type="text/javascript"> function openOneSlot() { SpinningWheel.addSlot({1: 'First', 2: 'Second'}); SpinningWheel.setCancelAction(canc...

How do I configure nginx to "fall-through" various directories to find a file?

I'm setting up nginx as an asset server for our website, but I have a requirement that nginx needs to check in two directories for the file: \assets\dir1\pic.jpg \assets\dir2\pic.jpg I need nginx to check in the \assets\dir1 first and if it can't find the file, check in \assets\dir2. The problem is that nginx only allows for t...

c# create thead and tbody

Can anyone tell me how to dynamically create thead tbody tags in my c# code? private void MakeTable() { Table tb = new Table(); TableRow tr = new TableRow(); TableCell td = new TableCell(); td.Text="hello world"; tr.Cells.Add(td); tb.Rows.Add(tr); } Thanks ...

How to write good help pages for rich web based application screens?

I'm working on writing help pages for a web based application. What tools, resources, and/or best practices are there to write help pages that are geared towards individual pages of a rich web application with a lot of functionality? The help system will have a button on each screen that help is available for, when the user clicks on t...

web application session cache

I want to cache data for a user session in a web application built on struts.What is the best way to do it .Currently we store certain information from the DB in java objects in the user's session .Works fine till now but people are now concerned about memory usage etc. Any thought on how best to get around this problem. ...

Is ASP.net WebForms a CPU intensive platform?

I work in an asp.net shop, and I heard today that the bottleneck on our servers is CPU. I had always thought that webapps tended to be I/O and network bound before CPU. Is this an ASP.net/IIS thing? Is it our code? Or am I just completely wrong about the whole thing? Also, we do public facing social/commerce sites using webforms. It is ...

Perl: Get .htaccess status on the current folder

I have developed sort of a Server Explorer as a module for our web application, and it actually works great. I am doing some refinements to it and there is one problem I don't really know how to tackle. The Explorer is mainly used to choose pictures from a specified folder and subfolders. As some schools are concerned with distribution...

conflict between JQuery slider and iui (iphone)

Im trying to get a slider on an iphone web app, I'm using iui to handle the ui. The slider appears to be causing some kind of conflict with iui.js, when you drag the slider it tries to open another page. However it works fine when you just click on some part of the bar. I thought it was the slide event causing it but this event is trigge...

JavaFX or RIA desktop app (on dvd) also available on the web?

Is it possible to develop an application easily available on the web that also can be distributed on DVD (installer or started from the dvd)? For the moment, we use static html (frameset!) pages (generated by xml files), with one difference: pdf's are only on the DVD version, the web version only shows a preview of these files. Can thi...

Web Help for a ASP.net 3.5 web application

Hi, I need to create User help for my web application. I know there are several expensive tools to create webhelp like Framemaker or Robohelp. Is there any opensource easy to use ones you can think of? Thanks ...

Creating RSS Mashup Application

I am trying to create rss mashup application with php like this one.Application work like this user give one or more rss feeds to merge into one rss feed.Then my web application perform and output one rss feed for user given feeds(no user sign up will needed for site).I will do this application but i dont know where to start is database ...

Control Winforms App from Web App

A similar question has been asked before here ... but mine differs in the fact that I just need to control a winforms app from a web page (not bi-directional). I just need to tell the winforms app to open windows, etc. when the user clicks links inside the web app. This is all in a secure, corporate environment, so no real worries abo...

Secure authentication without SSL

I'm starting to write a small web application and have started thinking about securing login (only used for administration). If I could, I'd install a CACert or self-signed SSL certificate, since for now I'll be the only one logging in, but my host isn't too accommodating. Are there any reasonable options for securing the site without ...

Using Application Id Generator vs. Database Id Generator

Where is the best place to place your Id Generator? Using Database Generators? Using Custom Generator? What are the advantages/disadvantages? ...

Will Conditional Comments always be needed?

After creating some web-apps...i really think dealing with conditional comments is not fun after a while. Are there any Plans regarding this issue? Is it going to be more complicated or more easier to handle different browsers? ...

Add CMS functionality to an existing JSP website

I have an existing JSP website which I would like to painlessly add CMS functionality to. The site is a intranet portal and is backed by a database etc. however some pages like News and Events etc. I would like the user to be able to edit using a simple CMS. I would also like the user to be be able to create new pages and put them into...

username or email id for login?

For a web application, which is the better option? Usernames has to rely on an email for the person to recall later. Conversely, it's rare for a user to use multiple usernames for a particular web application. Also, sending details back to the user's email gives a certain level of security. Email on the other hand has additional relate...

Why is https only used for login?

Is performance the only issue? Can't an https connection be used throughout a user's session? There is obviously less redirection happening! I found this related question on http vs. https performance Edit: Ok, I didn't mean 'used only for login'. Rather, what I'm trying to ask is if you come to a point where you need https anywhere on...

Gwt multiple entry point and NetBeans 6.7

I want to make an homepage with GWT that let the user log in and then I want to redirect the user to another page, that will show a table or something else (the real part of the webapp). This will also be entirely coded with GWT. Now, I'm programming with netbeans 6.7 and I don't know how to manage different entryPoint (the home and the ...