web-development

Are there any special server requirements for rendering a .mobi site?

I need to develop a mobi site for a client, do I need a specific server setup for this, or are there any additional server configurations that I need in order to render a mobi site or does it work the same as a normal website? ...

PHP: Can we build a web application to send email from localhost, like ThunderBirds, OutLook.?

Hi All I don't know whether or not it's a good question :( But my intention is to know if it is possible to to build an email client application like Thunderbird or OutLook . And can we able to configure/create a Web Application in PHP? Please let me know your thoughts! Thanks in advance!!! ...

How can I make the browser wait to display the page until it's fully loaded?

I hate how you can actually see webpages load. I think it'd be much more appealing to wait until the page is fully loaded and ready to be displayed, including all scripts and images, and then have the browser display it. So I have two questions... How can I do this? I'm a total noob to web development, but is this common practice? I...

What are the effects of the Last Modifed Header (LMH) changing too often on a dynamic site?

We have a web application that has a defect and is updating all pages Last Modified Header to the date of the last publish. We are in the process of fixing the defect, but we wanted to know if this defect might impact our SE results for this site. Basically each time a page on the site get's updated all pages updates the last modifie...

How do you make a site private?

I'm just fooling around, learning the ins and outs of web development and I'd like to make my domain private until I'm ready to display it. What's the best way to do this? BTW, I have an Apache server on Debian. ...

Why doesn't HTML have a "slogan" tag?

It seems really obvious to me that there should be a "slogan" tag in addition to the "title" tag. Many, perhaps most, websites use their business name with a slogan in their title. Unfortunately, it means that every time I bookmark a site I seem to have to edit the properties to remove the stupid slogan from the bookmark name. The behav...

strategies / patterns for handling complex web crud forms?

using classic asp, over the years we have developed a framework to handle some fairly complex web crud pages. the crud class is designed as some kind of "finite-state machine" the state is preserved between posts using hidden fields, and every event on the pages raises a post with a certain action. according to the action triggered, an...

Which Java web development framework for an AJAX application?

I read through a few threads (simple web framework, java web development, etc). Very informative. However I have not seen a focus on the AJAX side of things. For the app I am trying to create, most of the client side will be written in Google GWT, and JSON will be used to communicate with the server side. In that case, all templating is ...

Cannot add event handlers to ASP. net page

In visual studio 2008 when I drag and drop asp controlXXX on aspx page. Property page for this control, does not show event handlers button. It can reappear after switching to designer view but then disappears again. Screenshot attached. ...

do search engines crawl the source or destination page when using 301,302 redirect?

What search do when they found different status code? 302 301 404 etc... I knew they would ignore the pages with 404 status code but what about the other statuses do search engines crawl the source or destination page? ...

How to get the destination URL using cURL?

Hello How to get the destination URL using cURL? when the http status code is 302? <?PHP $url = "http://www.ecs.soton.ac.uk/news/"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $html = curl_exec($ch); $status_code = curl_getinfo($ch,...

jQuery file name

This one should be easy, and I think I know the right answer, but here goes. For compatibility reasons, should I leave the filename of jQuery as "jquery-1.3.2.min.js" or just rename it to jquery.js? My guess is leave it as is to avoid conflicts in case another app uses a different version of jQuery. If they've renamed it to "jquery.js...

Component controller in Spring-MVC

I am designing a web application that requires loading multiple components on a single page. (In terms of page layout is similar to Google reader) I like to keep these components separate from each other (for reasons such as reusability). For example, I have a left panel that let's user navigate among multiple feeds that he's subscribed...

Find file size with jQuery

I was wondering if there was a way to use jQuery to find out the file size for a PDF that i'm linking to a webpage. I want to make it so that on hovering over the download link, a modal box pops up saying the file size of the PDF. I can do the second bit, the only thing i'd like to know is how to find out the file size. I dont know if ...

problem with counterCache of cakePHP

I have in a video sharing website project these models : class Video extends AppModel { var $name = 'Video'; var $hasAndBelongsToMany = array( 'Tag' => array( 'className' => 'Tag', 'joinTable' => 'videos_tags', 'foreignKey' => 'video_id', 'associationForeignKey' => 'tag_i...

Problem regarding mail content

Hi Guys, I am sending mail to the customers. And the format is like this: Name: abc. Company:ccc. Address: sde. So the mail is coming out in continuous format which I don't want. I want it in this format: Name: abc. Company:ccc. Address: sde. I'm currently using string.format to populate each of the values and late...

Deciding which image format to use

I'm working on a web application that will allow users to upload profile pictures (avatars, basically). These images will be no bigger than 100 x 100 pixels and will be pictures of peoples' faces. We want to allow the user to upload various image formats, but we also want to convert them all to the same image format. What would be the b...

Programmatically login to website from Java application

Hello Folks, I am using Apache's HttpCommons 3.1 package to login to a website. The website is jsp page with the form using j_security_check along with j_username and j_password. From a browser, I would do the following: o to the Login.jsp page fill in user name and password click on login button With the valid username and passw...

How to solve base Controller dependency injection for testing purposes?

I have implemented my mvc base controller called DefaultController using dependency injection pattern in order to be able to construct test cases. Example below: public class DefaultController : Controller { protected readonly ISessionHelper _sessionHelper; string _thisUserOpenID; protected IUsersRepository _UserRepository;...

Flash Video automatically starts downloading (don't want them to)

This question might be specific to SoThink Video Encoder v2.5, but it might not. I've transcoded some videos [from AVI] to SWF/FLV for embedding in a web page. I used SoThink Video Encoder. The problem is I have 9 videos on a page, and as soon as the page loads, they ALL start downloading. I would like them each to start downlo...