web-development

"Forgot your password" or "Forget your password"?

On the login page where you usually put a link for requesting/resetting the password. What caption should be used for such link. I see both in use and not sure which one is grammatically and semantically correct. ...

Preventing form resubmission

2 pages. Page one contains an HTML form. Page two - the code that handles the form's data. The form in page one is submitted and the browser is redirected to page two. Page two handles the data. Now if page two is refreshed an alert titled "Confirm Form Resubmission" pops up. How do I prevent that? ...

Why is there extra whitespace at the beginning of my file after I write it with PHP?

Hello there, I am trying to make my PHP script create a file and add headers into that file but the file must be PHP only and nothing before the PHP tags. But the script is for some reason adding an extra blank line in the beginning before the <?php and it does not work. I know this because when I manually edited it and removed the line...

GET data from server via JQuery call and load into DIV without refreshing page

I've spent the best part of 90 minutes sifting through the many tutorials relating to this problem. Instead of using the rather long winded way of creating a XHR object , sending the request, getting the data back, doing a getElementById to find the div then loading the response into the div. I'm looking for a far more simpler - easier ...

Can JSF2 use beans as request-based controllers without a framework?

Hi! I'm working on the development for a web application using Java Server Faces for a group project. The majority of us have experience using request-based frameworks in PHP and we are having problems getting into the event-based (?) mindset of JSF-development. In PHP you would generally have a front controller (like the Faces Servlet...

iPhone web app freezes after incoming call is declined. Why? What can be done?

After an incoming call is declined, the iPhone web app that I've developed completely becomes unresponsive. The app is written in HTML, CSS, JavaScript, jQuery, and jQTouch. If the call is accepted, then the app restarts after the call ends. I’ve read that it is normal for iOS to terminate your app when a call is accepted. (I do not kn...

Dot in file name?

Is it okay to use a "." (dot) in file names instead of camelcase or dashes etc.. for example: ico_active.user.png Will it cause any performance or browser compatibility issues or some other disadvantage? Thanks! ...

Downloadable Mp3 Files from php headers not working

hello there okay so this is the deal i have my mp3 files on my server and each one is in its own folder. in that folder is the mp3 and a php file with the following script: <?php // We'll be outputting a PDF header('Content-type: audio/mp3'); // It will be called file.mp3 header('Content-Disposition: attachment; filename="mysong.mp3"...

jquery mobile web application

Hello folks., i would like to develop iPhone App something similar to this link i am planning to develop this using jQuery. i would like to have some pointers as how to set database and access it. ...

Why is a dynamic created JSF EL value expression not resolved?

Hi, I got a simple setup (and a big issue): a JSP page with en empty panel grid item container and a binding to a bean. <h:panelGrid binding="#{ bean.container }" id="container" /> When the getter of the bean will be called, the container is filled with a random number of columns with a command link inside. So far so good. The contai...

Setting a registry value Programatically using vbscript

I would like to change the ie setting under: Internet Options->Security->Trusted Zones->Custom Level->Miscellaneous->Enable I have done this with other registry keys like "Disable Debugging" and such. But I can't seem to set this value to enable. Here is what I have so far: WshShell.RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVer...

Algorithm to determine most popular article last week, month and year?

I'm working on a project where I need to sort a list of user-submitted articles by their popularity (last week, last month and last year). I've been mulling on this for a while, but I'm not a great statitician so I figured I could maybe get some input here. Here are the variables available: Time [date] the article was originally publ...

Are there any nice libraries / open source projects to implement a login system for users using php?

Hey guys I need a login based user account system where the user data is in my hands.. So no openID.. Are there any libraries which provide this feature along with security.. I'm using php mysql btw.. ...

100% websockets instead of HTTP in the future?

Today I thought about why the Web traditionally is stateless - opening a connection, then close it as fast as possible. I realized that this was the HTTP. And soon we will have fully implemented web-sockets to use for live things. So I thought, could websockets replace http in the future so that every connection made will be opened ti...

Does jquery property .css( propertyName ) not breaking the rule of separation of concerns?

Does .css( propertyName ) not breaking the rule of separation of concerns? As a rule of separation of concern , we keep content, style and behaviour in different layer. but when we add styles using behaviour (http://api.jquery.com/css/), does it not breaking the rules of concern. ...

Is there an API for actually purchasing airfares?

Does any major travel website have such an API, for example -- e.g., Expedia, Travelocity, Kayak, etc.? Presumably it would have to involve a secure connection, credit card information, etc. Honestly, I don't even know enough to know whether this is an absurd question. Just curious if anyone out there happens to know what the options ar...

Passing file data between Administration app and Web site app

We have two separate web applications for a site: One for the site itself, and one for the cms/administration side. I'm not sure why the original developer designed it this way, but whatever. I am tasked with adding some functionality to the administration side that uploads files. These files then need to exist within the folder stru...

How to fade in/out an HTML DIV container using JavaScript?

I have an DIV container with an id="myDiv" attribute+value. I'd like to fade this in/out smoothly. Would I have to create some sort of run loop with an timer and then modify the opacity value of the DIV? Is jQuery perfect for this kind of stuff? ...

Free for commercial use google-maps equivalent to do the following?

I'm looking for a mapping API something which has similar functionality to Google-maps but which perhaps has something along the lines of the Apache / MIT license. I basically want to plot points on the map. Does such a thing exist? If so are there any guides to plotting points on this map API? ...

Adding markers from a SQL db to OSM

I'm new to OpenStreetMap and I've been browsing the wiki and the net and I can't seem to find a tutorial anywhere but I've seen examples on the net. Basically I want to generate my own OpenStreetmap and plot markers taking the latitude and longitude from a MySQL database and plotting them on my map. When the user clicks on a mark I'd l...