web-development

One page only javascript applications

Have you experimented with single page web application, i.e. where the browser only 'GETs' one page form the server, the rest being handled by client side javascript code (one good example of such an 'application page' is Gmail)? What are some pro's and con's of going with this approach for simpler applications (such as blogs and CMSs)?...

How to permalink to dotCMS events

To my knowledge, the only way to link to a Calendar event in dotCMS (from a Field element type with a WYSIWYG display type) would be for the user to hard-code it into the URL anchor so that it'll look something like events/event.dot?id=12345. This method is highly prone to breaking as dotCMS automatically replaces the old event with a ne...

ADF Faces 11g ignores the template when it navigates to the same page

Hi, I'm using ADF Faces 11g\JDeveloper 11g to develop a web application and using Weblogic 10.3 to deploy it. I'm having some issues when I navigate to the same JSP page. Example: I have a page using a template: <f:view> <af:document id="d1"> <af:form id="f1"> <af:pageTemplate viewId="/base/te...

CookieTheftException with PersistentTokenBasedRememberMeServices

I'm using the PersistentTokenBasedRememberMeServices (Spring Security 2.04) in Grails App in conjunction with the OpenIDAuthenticationProcessingFilter. The configuration is as follows (This is Grails's DSL equivalent to Spring resource.xml but it should be quite easy to adapt): customTokenRepository(JdbcTokenRepositoryImpl) { dataSour...

Can Bots/Spiders utilize Cookies?

I am trying to detect is a visitor is human or not. I just got an idea but not sure if this will work or not. But if I can store a cookie on the persons browser and retrieve it when they are browsing my site. If I successfully retrieve the cookie can this be a good technique to detect bots and spiders? ...

Favourite Open Source Google App Engine apps (Java or Python)

To learn from good examples, what are the best open source Google App Engine applications out there? I don't care if it is Java or Python based. Please one app per answer. Feel free to add a link to the live app (if there is) and to the project page. ...

What are the strategies for a really fast single table database?

Hello there! I have a database in SQL Server 2008 that supports various applications. I am now starting the development of a new application and, from that database, I require data that fits in one table (though there is some replication). The data I way may be extracted to a view (a few inner joins) with 6 columns. I'm developing a we...

How to use our own fonts in web sites, which is compatible with all users?

I need to use different hi-style fonts in my webpage. But i had fear that, if the user had no such font, then they will be displayed with default font. How to use different new font that should be compatible with all users? ...

Lift style views in a PHP framework

Hi, just wondering if a PHP web framework or templating engine exists, that uses the clean view philosophy used in Lift, the Scala webframework. In short the clean view philosophy, is that there should be zero code in the views. And that the view should be valid HTML. I would like to replace a typical piece of PHP code like this: <ul...

Query string parameters and tempering

So let's that I have two dependent objects whose id's i pass in the query string, and let's say I am not going through parent to get the child but rather I read child directly via dao and I can save it also, without going through parent. What should one do on the client side, or should I even check it to see if id of the parent in the qu...

How to evaluate a search engine?

Hello I am a student carrying out a study to enhance a search engine's existing algorithm. I want to know how I can evaluate the search engine - which I have improved - to quantify how much the algorithm was improved. How should I go about comparing the old and new algorithm? Thanks ...

Anyone can suggest a jquery lightbox plugin that allow embedded html and is easy to custom CSS?

there are the criteria can style the modal box(round corner, window and background color etc ) allow embedded html and custom its position can custom style for the 'forward' and 'back' buttons, their images and positions have a 'play' button for image slideshow or allow custom JavaScript to do so thanks ...

access a cross domain iframe history.length or get its text in a variable on the parent document

I have a feedback pop up (TickBox) that loads a cross domain iFrame and when submitting the form it loads the "thanks for...." page. I want that when user submits the feedback button it should hide the iFrame wrapper. I know that because of the "same origin policy" security limitations you cant get the actual location of the iFrame wh...

What do you call <% %> escape characters in Rails/JSP/etc?

I read a book a while back (I don't know which one) that referred to these characters as "corn holders" or something clever. What do you call these characters across different web technologies that escape into code blocks with <% %>? ...

Web usability: alert/notification - how to attract attention?

I'm building a web application where one of the features causes users to be notified in real-time when an alert pertaining to them occurs, similar to the big orange bar in Stack Overflow. I have a few options, and I was wondering if there was a usability guideline on the best way to go about this. One option is to have a small notifica...

Getting icon from local file with JavaScript

I have a web form that will upload a user-selected file. I need to get the icon file that is registered on the user's system for this file to upload it along with the uploaded file. How can I access a local file and extract its associated icon in the browser with JavaScript? If this can be done, and you know how, thanks in advance. ...

Does the Rx Framework have any use in a web application?

I have been looking at the Rx Framework aslo refered to as LINQ to events. This is definately a great thing but I have been wondering if anyone sees this as having any uses in web applications rather than just normal windows based apps? ...

Can I write components in Haskell to be used on a Django site?

I have an idea for a web service, but am very new to web programming. Django looks great and like something I can pick up quickly. I have a lot of experience in Haskell (and very little in python) and would like to be able to start writing some of the backend non-web-related things in my favorite language. But of course I don't want to d...

Jquery Slider spacing fubar on ie7 and i6..

So ive been trying to debug this friggin spacing issue for the last 4 hours.. and I cant friggin solve it!!! If you go to http://myurbanlunchbox.com you will see right away what I am refering to. The image slider has spacing issues, but only in IE6 and IE7.. (as usual). Can anyone point out where im going wrong? ...

What's PHP Equivalent of Java Servlet Filter?

On Java side, we have a servlet filter that handles authentication. We don't have to change all other servlet or JSPs to add authentication to the page, unless the page needs customized content. How can we achieve the same on PHP? We don't use any frameworks on PHP. ...