web-development

php include statement

I'm working on my first website using php. I came up with a good way, or so I thought, to deal with including the css sheet depending on where I am. For example, I have a form that I submit to with this code: $root = '../'; function died($error) { include '../includes/header.php'; echo "We are very sorry, but there were erro...

How long should reset-your-password links be available?

In a web application, if the user forgets his password, its fairly common practice to send an email to the user with a temporary link or password that expires after a given amount of time. Most of the posts I read on SO suggested expiring the link after 24 to 72 hours, but it seems to me that it would really only be needed for about 10 ...

how to generate javascript embed code

how to generate embd code/blgger like widget with CodeIgniter? please give me the idea how to make ...

PHP: Creating Extensible CMS System

Hello, I have been given a new task from the client which is basically creating a CMS for actors/singers and the like that client will be selling out to them. It will basically be a package and would work out-of-box pretty much similar to WordPress, you just hand over to whoever buys it but of course this is not going to be a blogging ...

Should a web page with a login form be secured?

Question in title, but I'll elaborate. Say I have a form on a non-secure page, but I don't want the data that the user is posting to my web server to make sense to anyone who might intercept it. Do I need to serve the form securely or simply post the form to a secure URL? ...

JSF2: navigation flow question

I am not sure if what I want is possible, but it worth a try to ask. Let say, I have 2 pages: List.jsf and CreateNew.jsf. List.jsf display data from datasource as <p:dataTable>. CreateNew.jsf insert a new entry into the datasource. What I want is from CreateNew.jsf, when I click create, it create a new entry in a database, then return ba...

What are some places to find out about bleeding edge web tech and trends?

Hey guys, As a web developer it's always nice to be knowledgeable about upcoming web trends and tech, but currently I am very limited to what I hear about through friends and at work. Where are some places you go to find out about bleeding edge web stuff? Examples might be things like: Non-Relational Databasing Augmented Reality ...

Java Web Application Frameworks, keeping Mobile Phones in mind

There are about as many questions on this site about Java web application frameworks as there are frameworks themselves, but I'll try to make this question as specific as possible. I'm developing web applications to mirror my company's Java applications. (Unfortunately, they don't have pure presenter layers so I can't just make another ...

Invisible caching in ASP.Net MVC

I'm creating a page that has some dynamically generated images built from data that comes from web services. The image generation takes a fair amount of time due to the time involved in hitting the web services, so I need to do some caching. One option would be to use the OutputCache parameter to cache the images, but I don't like forci...

Resize div that's inside another div

Hi! I have a div that is the body of my site, inside that div I put a div on the left side (to have a vertical menu) http://www.freeimagehosting.net/uploads/117f79fa0e.png http://www.freeimagehosting.net/uploads/4569a5f550.jpg My question is, how can I make the menu div follow up to the bottom of the body div so that it doesn't look ...

What is the best Eclipse distribution for a mix of Java and Web?

Basically, I want to mix in Java and Web (JavaScript, CSS, HTML, PHP, .NET, etc..) into one. So what is the best IDE for that? Since I'm a huge fan of Eclipse, I'd like to move from Dreamweaver to Eclipse for my Web Development. I love using Eclipse for Java development but I want to be able to maintain the functionality of Dreamweaver ...

ul with links remains selected

Hi! I have a side bar menu composed of ul->li->a, styled with css to look as a vertical menu on the left side. I just noticed that when I choose an option a thin grew dotted line surrounds the box(button of the menu) that I selected. To me this looks "wrong", is there a way to prevent this from being visible? Thanks! ...

How do I get started in graphics design side of web design?

In past years I have learned the most important languages for web development (CSS, HTML, JS, PHP) and I can create good-structured sites. But an important part of web design is the images used for buttons, backgrounds, text, gradients... Also the main logo is a very important element in the layout of a website. However, I dont know...

What platform should you use to build your first web application?

I'm deciding between LAMP and Google App Engine with Python. Mainly this is an educational experience so I'm weighing the potential ease/quickness of developing on App Engine against the value in learning LAMP from the get go (and not being locked into the App Engine way of doing things ...

update gridview and go back to the previous page

Hi there, I have a gridview, getting data from sql server, there is an Edit link to get the detailed information for example, for a user from database. this link open a new page with detailed information and when I click the updated button,I want to go back to the same page with that users informaton. I set the page size to 10, it mea...

F# web development

What is the best way to use F# in a web development situation in order to make the most of the language? E.g. on its own with something like the Websharper framework, or together with C# and design tools, or otherwise. ...

How much time would be good to set in expire header for a website?

"Web pages are becoming increasingly complex with more scripts, style sheets, images, and Flash on them. A first-time visit to a page may require several HTTP requests to load all the components. By using Expires headers these components become cacheable, which avoids unnecessary HTTP requests on subsequent page views....

Disabling works in IE8 and not in lower versions of IE

I have a jsp code like this <html:option value="${apealstaList.appealStatusMasterId}" disabled="true">${apealstaList.appealStatusDescription}</html:option> This disable the options and it works fine in IE8 and not working in the lower versions like IE7 and IE6. Please help me in this issue. EDIT Please share If there are any other a...

J2EE Submit a form and leave background process working ??

Hello I need to generate a report with java (exporting data from oracle) that can take several minutes, by the amount of data involved, so when I submit my form the screen freezes until it ends. How can I generate the report in a background process, so that the user can continue browsing? JMS? How can i do this with JMS? (Any example ...

Using HTML to open a program with variables

Greetings, all! I have hit a bit of a brick wall and was hoping that I could get some help. I'm trying to write a site that people can access with IE6+ that will allow them to click a link that will open a piece of software on their desktop (the run/save dialog is OK) that also contains variables. Thoughts, ideas? It should look some...