web-development

CSS hover menu appearing behind pdf iframe

I am working on a web application that has a menu across the top of every page with sub menus that drop down when a menu item is hovered over. This works fine, except on one page where we are trying to show a pdf in an iframe. The hover menus all end up behind the iframe in this one case. I have tried adjusting the z-index of both the...

How to implement Symfony Partials or Components in Django?

I've been developing in the Symfony framework for quite a time, but now I have to work with Django and I'm having problems with doing something like a "component" or "partial" in Symfony. That said, here is my goal: I have a webpage with lots of small widgets, all these need their logic - located in a "views.py" I guess. But, how do I...

Java Web Project referencing another Java project

I have a Java Project, for which I'm now creating a Web interface, using a Dynamic Web Project from Eclipse. The Web project consists of a single servlet and two JSP's. Something like this: /JavaApplication /src /lib /resources /WebApplication /src /Servlet.java /WebContent /WEB-INF index.jsp other.jsp Now, I...

What is the proper way to make a link open in a new tab?

Is target=_blank the best way or is there something else that has replaced it? ...

How to use Google's Closure to compile JavaScript

Google just released Closure, which is a compiler to minify JavaScript. On the product site, it says "The Closure Compiler has also been integrated with Page Speed". How do I use Page Speed to compile my web pages JavaScript with Closure? (Or, is there a web site that I can simply paste in my JavaScript to have closure minify it? ...

Multiple applications sharing same configuration files

In my production environment I have several Web applications installed in the same machine. These applications access various web services and two SQL Server databases this means that my web.config files are very big and full of details. Besides this I also have windows services that consume the same web services and access different da...

Considerations for changing a page's URL in a CMS

I have written a CMS for a website. You can create pages and do all things you would expect but I am just wanting your opinions on what to do if a user changes the URL of a page. You would need to do a 301 for the previous stored URL but if the user changes the URL 10 times you have to account for all those changes. Therefore do you n...

Eclipse Web Project Dependencies

This question is about eclipse development, I am trying to create a web application in Eclipse, the problem is that I don't get the the dependencies jars to the deployed archive. I've created a new dynamic web project and linked it to another java project. The java project references a few 3rd party jars (e.g. Spring jars) but for some ...

Equivalent of "Google Closure Compiler" for HTML?

Is there an equivalent of Google's Closure Compiler for HTML minimizing? ...

Can we use & in url ?

Can we use "&" in a url ? or should "and" be used? ...

JQuery Slider alternative?

I am using the JQuery Slider control for use as a double sided slider. It's a great UI control but I'm looking for an alternative that isn't so "fat". Right now, just for me to use the Slider control, I have to include: JQuery core JQuery UI core JQuery Slider plugin When I both minimize using Google's awesome Closure (minimizer)...

Small JavaScript tab library? (alternative to JQuery tab or Tabber)

Hi I'm looking for a very light weight (small library) that can act as a JavaScript tab I've looked at both JQuery's Tabs and Tabber. Both look great and function flawlessly but they are both semi large downloads for what they just do. Both, even with minimized and GZIP'd run around 18kb in size. Does anyone know of a smaller, light...

JavaScript: I'm looking for a lightweight background color (div) fader

Does anyone know of a lightweight (small file size) HTML background color fader? Something like the below pseudo-JavaScript fadeDiv('div_element_to_fade','hex_start_color','hex_end_color','speed_of_fade'); ...

First website project how to specify for interoperability and ease of integration when site UI & backend are to be developed by separate developers?

Hello I would like to use Elance.com to find a developer to create a website for me. I have decided to split the development into two components: the UI and the back-end, with each being developed by separate developers. The technologies to be used for the back-end will be Spring MVC, Java, iBatis, MySQL/Derby/H2. The technologies to be...

JQuery background color animate not working

I want to change the background color of 'exampleDiv' from the original white background to when I call the code below to immediate change the background yellow and then fade back to the original white background. $("#exampleDiv").animate({ backgroundColor: "yellow" }, "fast"); However, this code does not work. I have only the JQuery...

JavaScript: How to create an Object and filter on those attributes?

I have a JavaScript array of houses like so, { 'homes' : [{ "home_id" : "1", "address" : "321 Main St", "city" : "Dallas", "state" : "TX", "zip" : "75201", "price" : "925", "sqft" : "1100", "year_built" : "2008", "account_type_id" : "2", "num_of_beds" : "2",...

Firefox show broken images

In firefox a broken image appears as just a blank white space. On a white background there is no way to distinguish between no image and a broken image. This makes identifying broken images difficult to recognise and makes them go uncorrected. How do I make it so that broken images produce an X like they do in Internet Explorer? ...

Helper script/tool for "one a day" reminders applications

I am looking for a helper tool/ script that can be used to power an application that presents some randomized content periodically eg once per day. Example applications are "One a Day Bridal Prep", "Daily Quotations", "Daily Programming Tips" etc etc It is simple enough to code one up myself but I am wondering if I don't need to reinvent...

Is it okay to start the layout of a website with a photoshop mockup?

This is a best-practice topic. I saw it as a prefer method for some web developers. Instead of doing the CSS layout from scratch, they start a photoshop mockup first and then decode it into CSS. What do you think about this approach? Best to all, ...

Struts2 multiple files upload with a twist

Let's say I have the following model classes package com.example.model; public class Product { private int productId; private String productName; //Getters and setters } package com.example.model; public class ImageTypes { private int imageTypeId; private String imageLocation; private String description; ...