web-development

Java MVC Web development framework ?

Hi all I want to develop a website with java but I'm absolute begginer in java web development. I want to use a framework that uses the MVC pattern and Ajax. I did some search and found that Spring or Struts are suitable but I'm not sure. could you please recommend a framework ? Thanks ...

Improving performance of cgi

I have 5 python cgi pages. I can navigate from one page to another. All pages get their data from the same database table just that they use different queries. The problem is that the application as a whole is slow. Though they connect to the same database, each page creates a new handle every time I visit it and handles are not shared ...

How to get the child directory and file names of the website

If we know the URL, can we access the names of the files inside the parent directory. Like we do in dos, when we enter a folder we can view the list of files inside that directory by giving command DIR For Eg., If we have URL like http://www.ahilam.com . I want to know what are the files and folders inside the ahilam.com such as htt...

Share information beetween ASP.NET applications on the same IIS

I have a solution with more than one ASP.NET web-application. Every application has its own virtual directory on the same IIS. One application is calling aspx pages in the other applications. How can I share some information (e.g. user/password) between these applications. Is the only way using querystrings (in this case, I must encrypt...

How to Inject ManagedBeans in JSF2.0

Hi folks, I have got Controller-ManagedBeans and Model-ManagedBeans (like MVC-Pattern). Here my Controller: @ManagedBean @RequestScoped public class ProjectController { private ProjectData projectBean; //The Model-ManagedBean (see below)! private IProjectService projectService; //My Service-Layer public ProjectCon...

Google maps, on click not adding lat/lng to form.

Hey, Just a follow up from a previous question. I've got the following form.. <body onload="initialize()" onunload="GUnload()"> <form action="welcome.php" method="post"> Name: <input type="text" name="fname" /><br/> <br/>Description: <BR> <TEXTAREA NAME="description" COLS=40 ROWS=6></TEXTAREA><br/> <div i...

Adding pin to location clicked

Hey guys, I've got the following Google map on my website.. function initialize() { if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map_canvas")); map.setCenter(new GLatLng(53.347247,-6.259031), 13); map.setUIToDefault(); GEvent.addListener(map, "click", function(overlay, latLng)...

First project for resume

Which project is better to write the for job ( Developer PHP )and then not be ashamed to refer to on his resume? What functions should it feature ? If anyone has a ready, detailed terms of reference for similar Drafts, please point me in that direction, or if you have the opportunity, show a sample list of what to do in such projects. ...

HTML form on Google Maps on click

Hey Guys, I'm new to Google maps and I'm wondering how would I program a Map which would pop out a HTML form when the user clicked a location on the map? I'd like the form to "pop out" of the map on screen. is this possible? I've got the following... <script> var contentString = '<div id="content"> <form actio...

Validate page request only client side

I'm using a caching server to cache different instances of some pages. All the pages have two instances.(they have a version for the html when logged in and another when logged out). What I am trying to achieve is the following: I want to make a request to the server based on some credentials(username password for example) for validatio...

What code to place in a post to have exactly these three social media buttons looking like this?

Look below the title http://news.cnet.com/8301-30684_3-20010696-265.html retweet, fbshare count and digg. What code (html, css, js) is needed to place in a html to have them looking exactly like that? :) ...

How to calculate distance between 2 places.

I've been asked if i could create a website like these: http://www.trackdollarbills.com/tour/ http://www.wheresgeorge.com/hits_by_county.php/ http://www.wherehaveibeen.com/ I'm curious as to how i would be able to calculate distance between places. For example if i were to enter a dollar bill in the system form Minneapolis, and that ...

Ambiguous Objects in Quick Test Pro

I'm just wondering if it's possible to uniquely identify a given object in an application through Quick Test Pro. For example, if there are 10 Ok buttons on a web page, with no HTML or Javascript giving them unique identifiers, how would I choose the 3rd button? Thanks for your help. ...

What's the purpose of creating jQuery code inside this elements like this...

(function ($) { ... } ) (jQuery); ...

Rails: creating RESTful web services with XML and JSON

Hi, I'm curious about the best practice in creating web services which support both XML and JSON output. At the moment, my service is very XML oriented (see below), but I want to add JSON support. Here's one example: def create render_authentication_error and return if !@user render_parameter_not_found_error("item") and...

Cross controller function conventions for MVC web?

I have a question about the best practices of placing certain functions in controllers in an MVC web framework. Lets say I have a User & Tags controller. I have a function/method called addTag_to_user(). What is the conventions or best practices for placing this in either the Users or Tags controller? Though personally I am more incli...

Preventing JavaScript Injections in a PHP Web Application

What are the measures needed to prevent or to stop JavaScript injections from happening in a PHP Web application so that sensitive information is not given out (best-practices in PHP, HTML/XHTML and JavaScript)? ...

Text on a picture, but like this one. How ?

I've made a pure PHP script that uses GD library to put text on an image, text entered from a HTML form. The problem is that i can't give the user the possibility to position the text properly. I've found this good example http://lolkot.ru/lolmixer/#1369, it allows users to play with the text very easily with the mouse ! How is this po...

Good combination of web application languages

I've looked around some of the asked questions and I noticed many questions dealing with THE best web application language. I'm curious into looking into a combination of web application languages, possibly some that would compliment each other well. At the moment my list of possible web app languages at the moment are: PHP Ruby on Rai...

Google Web Optimizer (A/B Testing) Why no clear winner?

I've previously asked how long it takes for a winning combination to appear on Google's Web Optimizer, but now I have another weird problem during an A/B test: For the past two days has Google announced that there was a "High Confidence Winner" that had a 98.5% chance of beating the original variation by 27.4%. Great! I decided to l...