web-development

What are the advantages and disadvantages of CSS variables?

I'm faced with a business requirement that I believe may be solved by implementing CSS variables. Basically, while the front-end developers on this project are in charge of CSS implementation, the designer wants to be able to introduce different "themes" for the site. By swapping one theme for another, a range of changes (such as font-...

jQuery UI Date Picker

Hi, I am showing the birthday option and have used the jquery ui date picker. The problem is that I want show past dates for example starting from 1950 till 2000 but I don't know how to do that, i tried this but it did not work: $('#dob').datepicker({ showOn: 'button', buttonImage: 'images/calendar.gif', buttonImageOnly: tr...

Any info how Lombardi's Blueprint is built needed

Hi, I've found Lombardi's Blueprint as an example of applying GWT. It's awesome. I wonder how is it built, inspite of using GWT. What kind of widget and client JS frameworks did they use. Any info appreciated. ...

ASP.NET MVC 2 "RequiresRole" attribute does not work

Hi to all. I'm developing a ASP.NET MVC 2 web application. So far, I managed to define access rules for every controller function, using "RequiresRole" attribute. Suddenly, this way of defining access rules stopped working (now every user can invoke any of the controller methods). :S. I tried debugging, and it seems that user-roles are...

CSS selectors: (menu ul li) or (menu li)

which is better for use .menu{ float:left; width:600px; height:25px; background:url(bg.png) repeat-x; } .menu ul{ float:left; } .menu ul li{ float:left; width:150px; height:25px; background:#F00; } or .menu{ float:left; width:600px; height:25px; background:url(bg.png) repeat-x; ...

Is it a good or bad idea to start testing your pages in the IE9 platform preview?

I want to ensure my pages will look right as soon as IE9 comes out. For example, I have already noticed that the background-size in the IE9 platform preview works, but is inconsistent with chrome, chrome resizes maintaining the aspect ratio, while the IE9 platform preview distorts the aspect ratio. But who knows if this will be addres...

can you clear all sessions without going through each individual one? (emulate the page closing)

Firstly, I am fairly new to server side scripting so I don't know if this question makes sense. Suppose a page has stored sessions for PHP, Perl and ASP. Is there a quick and easy way to emulate the browser being closed and re-opened to reset/destroy/clear all the sessions at once? Or would one have to go through the session clearing fo...

webpages and resizing browser window

Hello, I'm currently working on a webpage and I'm having troubles with Firefox when I resize the browser window. Content in the "featured" div overflows when the window is made smaller. However, this is not an issue in IE 8. I have not tried any other browsers yet. Any ideas? HTML: <div class="slider_container> <div id="featured> ...

JW Player on iPad causes issues

Hi. I'm trying to use the JW HTML5 player in an AnythingSlider. It works fine on all the browsers but not on iPad; Page is here: http://bit.ly/d3ouub Here's what's going on: - If you start a video in any of the AnythingSlider panels (Panel 1 and Panel 5 contain video), the video will overflow the AnythingSlider and appear either on the...

Redirecting old asp files to new aspx (asp.net) files (Permanent Redirect, SEO)

Hello, I upgraded my site from asp to asp.net. This means that all of my previous asp files became obsolete. I don't want to lose my Google Ranking of the old pages. What is the proper way to redirect? I tried to catch all of the old asp pages is my 404 and then to: if Request.QueryString("aspxerrorpath").contains("index.asp") = true ...

a system design question

I was asking the following question during interviewing in a company working on cloud computing, and did not answer well. Any suggestions on how to analyze this question will be greatly appreciate. Our company has hundreds of millions of users and we expect zero down time in production, explain techniques and programming practices that ...

Web technologies for an embedded server

Hey everyone, I've recently started a new web development project for an embedded device and wanted to solicit some recommendations for technologies to use. The device will serve HTML pages which include AJAX code to retrieve data from a JSON server. We're tentatively using Cherokee as the web server, though we're not tied to it. Curre...

JavaScript Timed Image Swap Need Help

So in my script I have... <script type="text/javascript"> var images = new Array(); var numImages = 3; var index = 0; function setupSwapper() { for (i = 0; i < numImages; i++) { images[i] = new Image(266, 217); images[i].src = "images/image" + i + ".png"; } setTimeout("swapImage()", 5000); } function swapIm...

What is the Microsoft version of an embedded Java web applet?

What is the Microsoft version of an embedded Java web applet? Is there a good example of one on the web? Also, why is the dynamic web dominated by ajax and not embedded applications? ...

Highlight selected Tab - Python webpage

I am trying to develop my first python web project. It have multiple tabs (like apple.com have Store, iPhone, iPad etc tabs) and when user click on any tab, the page is served from server. I want to make sure that the selected tab will have different background color when page is loaded. Which is a best way to do it? JavaScript/CSS/Direc...

Database Design: Separate Live and Test databases for PHP Website

My organization is rewriting our database-driven website from scratch including a brand new database schema. In the current setup both live and test websites use the exact same database. We would like the next version to have a separate database for both live and test versions of the website. Updating the live version of the database ...

Very large HTTP request vs many small requests

Possible Duplicate: Very large HTTP request vs many small requests I need a 2D array(as Json) to be sent from server to client. It would be around 400X400 in size with each entry around 4 characters of text. So that makes it around 640KB of data. Which of the following extreme approaches is better ? I make a large HTTP requ...

which browser to start with? IE, Firefox, Chrome, Safari?

We all know the difference rendering on different browsers and various support for styles and other things on different browsers. While start developing a site, which browser would be optimal to start and then to proceed with convincing other browsers by various methods. For e.g. Is it ok to start with IE and then do the necessary chan...

Formatting html.ep

Is there any tool available to just format (remove whitespace and indent correctly) an *.html.ep file? Its a template file of a perl app. Thanks ...

How to stop all timeouts and intervals using javascript?

I'm working on an ajax web appliation which contains many running timeouts and intervals. And now I need to clear all running timeouts and intervals sometimes. Is there a simple way to stop everything without need to store every timeout and interval ID and iterate through them and clear them? ...