web-development

Using Action Filters for user login in Asp.NET MVC?

I recently built a site using Asp.Net. The way I chose to implement user login is through a base 'UserAwareController' class, that all controllers extend. It contained a reference to the UserRepository, and exposed a protected GetCurrentUser() method that concrete controllers could query. The whole process felt a bit wishy-washy to me....

Convert tags to html entities

Hello, Is it possible to convert html tags to html entities using javascript/jquery using any way possible such as regex or some other way. If yes, then how? Example: <div> should be converted to &lt;div&gt; Note: I am not talking about server-side languages. ...

"Does not implement IControllerFactory.CreateController" in Visual Studio 2010

When compiling this code: public class WindsorControllerFactory : IControllerFactory { private readonly WindsorContainer _container; public WindsorControllerFactory(WindsorContainer container) { _container = container; } public IController CreateController(RequestContext requestContext, ...

$_SERVER['HTTP_X_REQUESTED_WITH'] seemingly not available on PHP 5.1.6

Hi, I've run into a problem on a server running php 5.1.6 - the code i use to detect ajax requests isn't working as the $_SERVER['HTTP_X_REQUESTED_WITH'] variable is missing from the $_SERVER array. The same code works fine on php 5.2 and in firebug i can see the headers include X-Requested-With XMLHttpRequest. Anyone know any more about...

Check a Western server's access time and speed for Asian users?

Hello, I am building a web site targeting users in Europe, South America and Asia. We plan to use a global CDN like Amazon's for static files. However, the CMS itself cannot be easily load-balanced so we still have one central web server. It would be great if Pingdom, Site24x7 or others offered such tests, but AFAIK they don't. What i...

Linking to non-home panel in JQTouch site

I'm trying to create a link from an external site that arrives at a particular, internal panel on a JQTouch site I'm building. However the browser always opens the home panel of the JQT site no matter what anchor tag I use in the link. e.g. If I try to link to the User Interface panel in the official JQTouch demo I use http://www.jqtouc...

Alexa Top Rankers written in Java ?

What all Alexa top websites are written in Java, if any? ...

Languages and Tools for Web programming

I am wanting to start Web Development and I was wondering what languages I would want to learn and what (if at all possible) free tools I would want to use. ...

What is the best way to create a wizard for web?

I want to create a wizard that includes a few steps, that in the final steps we need to include all the steps and save to the data base. What is the best design to do this ? Is there an implementation for jquery ? Do I need to save the steps in session till the final save ? ...

Having trouble on mouse over tabs

I downloaded a webpage template from the internet because I don't know how to design webpage on photoshop. This was the one I downloaded: http://www.freewebtemplates.com/download/templates/9839 And modified it. And I have this code for mouse over tabs from dynamic drive. But doesn't seem to be working with the template that I downloaded....

How to POST using WebRequest ?

Hi Using WebRequest How to POST things, Should I use GetRequestStream? and how to format POST string Thanks ...

How to model and handle presentation DTO's to abstract from complicated domain model?

Hi I am developing an application that needs to work with a complex domain model using Hibernate. This application uses Spring MVC and using the domain objects in the presentation layer is very messy so I think I should use DTO's that go to and from my service layer so that these match what I need in my views. Now lets assume I have a Ca...

Running my web site in a 32-bit application pool on a 64-bit OS.

Here is my setup: Dev: - Windows Server 2008 64-bit - Visual Studio 2008 - Solution with 3 class libraries, 1 web application Staging Web Server: - Windows Server 2008 R2 64-bit - IIS7.5 Integrated Application Pool with 32-bit Applications Enabled In Visual Studio I have set all 4 of my projects to compile to 'Any CPU' but when I...

iframe accessing parent DOM?

How is it possible for a script within an <iframe> to have any notion of the page containing it? Can a script in the frame access any context outside of it? What about cross-domain? Up until now I believed an <iframe> is completely agnostic to the containing page, but I have seen an example which contradicts this belief. What exactly c...

How can I tell what script a website uses or is built with? Could it be an 'off the shelf solution' perhaps?

Hi. There is an excellent website that I would like to emulate some of the characteristics of in a website that I hope to develop. (I do not intend my site being in competition with them - mine would be more of a social networking site). Can anyone tell me if it is possible to detect which script and platform is being used on www.shoutl...

advice on working on remote asp.net applications

Hi folks, I'm a (relatively new) developer using asp.net with VB.NET. Currently all my applications are developed on my PC and then are built and moved onto the web server. I'm going to be working remotely for 3 months in which time I'll be connecting to the company network via VPN. What is the best way to access my projects? I need to ...

How to make URL pattern like app.example.com?

I have my domain say "example.com" (java, GlassFish Web Server) Now I have 3 application.. say A,B,C. Now what I want is, if user hit a.example.com OR example.com/X then A application should get invoked. similarly for B and C. b.example.com or example.com/B, c.example.com or example.com/C. like mail.google.com news.google.com. H...

Advice on embedding video content via CMS - what format?

Hi, if I set up the facility for people to embed video content on their site via their CMS (using TinyMCE editor), is there any reliable cross platform video format that should be used? From what I can find online, the only reliable way to embed and stream video is using FLV. Other formats seem to have caveats, e.g codecs required or qui...

High-Performance In-Browser Networking

(Similar in spirit to but different in practice from this question.) Is there any cross-browser-compatible, in-browser technology that allows a high-performance perstistent network connection between a server application and a client written in, say, Javascript? Think XMLHttpRequest on caffeine. I am working on a visualisation system th...

Asynchronous email processing in Java web application

Hi everyone, I would like to implement asynchronous email sending in my web application when users register for a new account. This is so that if there is a problem or delay in sending the email message (e.g. the mail server is down or the network connection to the mail server is slow) the user won't be kept waiting for the sending to c...