web-development

Optimal image size for browser rendering

The question Is there a known benchmark or theoretical substantiation on the optimal (rendering speed wise) image size? A little background The problem is as follows: I have a collection of very large images, thousands of pixels wide in each dimension. These should be presented to the user and manipulated somehow. In order to improve ...

Zaypay alternatives for payments using call or sms

We are currently trying to implement a payment provider in zaypay for paying for services using sms or by calling a number. We already have google checkout and paypal working for regular payments but zaypay is rather inflexible, poorly documented and a pain to setup when you have hundreds of products with varying prices. So my question ...

Stateless Apache Wicket stateless pages/requests

So I was reading another question under the Wicket tag comparing Apache Wicket and Apache Click. A concise explanation, in my opinion. I am more familiar with the Wicket world than the Click world. One of the comments I read was that you can make stateless Wicket pages. I started to think about this and couldn't figure out a way to make...

Preventing multiple browser sessions on the same server session

I'm sure we've all worked on, or are aware of web applications (especially in the enterprise) that have tightly bound themselves to the server session. In these cases, it's possible that the session will become corrupted if more than one browser session is open and using the same server session cookie. We've examined all of the options...

where does it call a pop up?

i am trying to find in this code where it instructs a new browser window? <div id="mlcalc-w1"> <div id="mlcalc-w2"> <div id="mlcalc-w3"> <div id="mlcalc-w4"> <div id="mlcalc-w5"> <link rel="stylesheet" type="text/css" media="screen,projection" href="http://www.mortgageloan.com/sites/all/themes/mortgageloan/css/tool/mlcalc-inline.css"&gt...

css - forcing width of menu items to take up 100%

i have this site: www.yoursdproperty.com i need the top menu items HOME, BUYING PROPERTY, SELLING PROPERTY ETC... to take up 100% of the width of the top bar. if i add more items, i went them to size accordingly. here is the CSS associated with this menu bar. is there something i can change here to do that? /* Moo Menus */ #cssmenu...

At what point in the ASP.NET page/app life-cycle should I redirect a user based on his country?

We have a web app where we need to redirect customers from .com to .co.uk domains based on the geolocation of ther IP address. When/where should I do this? The content will change slightly based on their location, but I think I can handle that OK. However, if anyone has any comments on the best way to handle this, I'd like to hear those...

Handling self-refreshing pages from selenium

I have been running into intermittent errors with some java selenium-rc tests which I think are related to a page which has an ajax poll and automatically refreshes when some condition is reached on the server. In this scenario, I have no way of asking selenium to wait for the page to load, and so I run into a bunch of random "Couldn't a...

Is it "safe" to use schemeless protocol URIs on public websites? Ex. //www.example.com/dir/file

In HTML when referencing images, css, javascript, etc... I sometimes use links without the http or https scheme portion, à la. <img src="//www.example.com/dir/file.gif" alt="" /> and I haven't had any browsers choke on it yet (that I know of). I've seen a few other public sites use it as well, but not many. I even reference the Google ...

What kind of data should never go into session?

What kinds of data should never be kept in a session? ...

Jquery - how to use $()

How do I convert the following javascript to using JQuery? document.getElementById("asc").removeAttribute("href"); document.getElementById("asc").onclick = ""; document.getElementById("asc").style.textDecoration = "underline" I think I'm close using the below code but this doesn't quite work. $('#asc').attr('href', '').click(function...

I need to to open a new window in the background with JavaScript, and make sure the original is still focused

I have a window I'm opening with a Javascript function: function newwindow() { window.open('link.html','','width=,height=,resizable=no'); } I need it that once the new window opens that the focus returns to the original window. How can I do that? And where do I put the code - in the new window, or the old one? Thanks! ...

What is considered fast performance for a single server request?

I understand there are several factors involved when making db calls and internet, but i am referring strictly to the methods processing the requests, not the roundtrip to the client. I am using stopwatch to get an average range but i do not know what is generally considered fast or decent performance. 10ms 500ms? ...

Create a text file on client-side programatically

We have a Ruby-on-rails server-side deployment that needs to allow users to download a pre-compiled self-extracting Windows EXE file on their computer. We also need to generate a text file dynamically (based on the users id) and deploy it somewhere on the client machine where the EXE can find it. We have 2 options: Generate this tex...

Advantages/disadvantages of using the built-in Apache for web development on Mac OS X

What are the advantages and disadvantages of using the built-in Apache for local web development on Mac OS X, specifically 10.6 Snow Leopard? Instead of using the built-in Apache, I know that options such as MAMP and XAMPP exist. However, for some reason I just haven't wrapped my head around the benefits or potential pitfalls with using...

Advice on data capture management system

Hi, I'm looking at a potential piece of work involving a fairly complex data capture and management site and am wondering how best to approach it. I would be using a LAMP architecture. The backend will involve: Mass user creation via user uploaded csv file - I have done this before so am confident about this part. Once registered, us...

Saving the manipulated DOM/HTML after editing it with Firebug

Assume that I've fired up Firefox with Firebug enabled on a random site (say slashdot.org). After loading the site I start editing the page using the Firebug > HTML panel. So far so good: my changes are immediately visible in Firefox. My questions: How do I save the edited DOM tree (represented as HTML)? How do I load a previously man...

HTML valid DIV attributes?

What are all the valid DIV attributes? Based on this link, it appears only class, id, title. Is that correct? Meaning, the for attribute and others is not valid for DIV? ...

Logic for stacking behaviour in javascript

I'm trying to write some javascript that will stack objects by setting z-index. Test Case: http://christophermeyers.name/stacker/ I've hacked that together, but I'd like to extrapolate that behavior to something a little more logical. That is: Given x number of elements, when element C is moved to the top, all elements above that elem...

XHTML, how not to display the TITLE attribute as a tooltip

To make my web site XHTML compliant, I have added a title attribute to all of my IMG tags. However, when you mouseover an image, the text from my title attribute displays as a small popup. I don't want that text to be viewable. Question: How do I prevent the browser from displaying the title attribute text as a popup while still keepin...