web-development

Add handheld touch events to web app

Hi. What's the best way to add touch events to a web app? The page works well enough on the iPad but it would be nice to have some touch events specific to the handheld devices. Do you recommend any jQuery plugins for this? Thanks. ...

IIS7: Internet explorer cannot display a web page

Hallo, I am tryiing to migrate an application written with visual studio 2008 from windows XP IIs 6.0 To Windows 7 with IIS 7.5 and I have this problem: Sometimes when I post the page, the server does not respond and after some minutes i receive e message "Internet explorer can not display a web page" With IIS 6.0 the application wor...

Javascript detect scrollbar in textarea

Hi, I was wondering if anybody knows how I would go about detecting when the scrollbar appears inside a text area. I am currently using mootools for my JavaScript but I am really having issues getting it to detect a scrollbar. Any example would be useful thank you!. Jamie ...

Web front end for a QT/C++ application?

I've been tasked with looking into creating a web front end for an existing application written in C++ with QT for the UI. There are multiple constraints put on the task, along with several suggestions that would be nice to add in. There is currently a QT-drawn graph updating multiple times per second with data contained in C++ object...

javascript catch paste event in textarea

Hi, I currently have a textarea which I requires control over text that has been pasted in, essentially I need to be able to take whatever the user wants to paste into a textarea and place it into a variable. I will then work out the position in which they pasted the text and the size of the string to remove it from the textarea, The...

jQuery image rotator

Hey, I'm trying to make this simple image rotator but, as usual, my code doesn't work. I want to swap between 2 images ("image1" and "image2") $x = 0; function rotateImage(){ if($x == 0){ //if function is being called for the first time $x = 1; } $(".window").html("<img src=\"../images/image" + $x + ".png\" />"); ...

Record audio from web page and upload to server

From a web page, I'm looking to record audio from the user's microphone and then upload the file to a server to be stored as an MP3. My solution is built using .NET. Most similar apps that I've seen use Flash on the client and presumably Flash Media Server on the server. We don't have the kind of budget for FMS. I'm looking for a fre...

what's with a "embedded webserver in a web application" in Python?

CherryPy claims: Your CherryPy powered web applications are in fact stand-alone Python applications embedding their own multi-threaded web server. You can deploy them anywhere you can run Python applications. Apache is not required, but it's possible to run a CherryPy application behind it (or lighttpd, or IIS). Cherr...

android emulator and local site

Hi I've started android emulator app and trying to open from embeded browser locally started web-site, but local dns name (from /etc/hosts) is not resolved. Is there any option to enable local resolving? ...

Website to mobile website conversion

Hi guys, I have a simple webpage here. If I want to convert it into mobile website, what should to my html or something such that when I open it with my mobile, I should be able to see the whole page in my screen. I tried adding this to my html code... in head <meta name="viewport" content="width=device-width; initial-scale=1.0; maxi...

How to create a site like www.iconfinder.com ? ?

How to create iconfinder.com ...

Passing IDs between web applications

We have several web applications that create a shopping cart, save it to a database, then redirect to a centralized web application to process and accept payment for the shopping cart. Right now, we are using GUIDs for the shopping cart IDs and passing those GUIDs in the querystring to the payment application. We are using GUIDs so tha...

Search Parameters

I have a Detail Search form on the Startpage, where the user have many Search options available. What would be the best practice to keep Search paramets for the user Session. What are the Pros and Cons if the put them in URL Session Cookie What should be used as Best practice. ...

Is if(document.getElementById('something')!=null) identical to if(document.getElementById('something'))?

When I want to check if an element exists in a page. Are these 2 checks the same? Is there a better more compact way to check the existence. What if I want to check if the value==''. Can this be included in this check as well somehow. ...

When should HTML5 video fall back to Flash player?

Hi. I'm working on implementing a fallback mechanism for the HTML5 video player. I've got a way to replace it with the swfobject Flash player, but how should I detect if any issues have developed? In other words, if we use the following list of error events that can be thrown, which one should trigger the Flash player replacement? Or sh...

Firefox applying styling to script block

I have simplified a problem I faced in Firefox (the original code is generated by server side controls). Open the following snippet in IE and in Firefox: <html> <style> .AllInline, .AllInline * { display: inline; } </style> <span class="AllInline"> Test <script type="text/javascript"> <!-- var obj = {}; //--> </s...

Why does django complain that I have not set my ENGINE yet?

DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. 'NAME': 'djangobb', # Or path to database file if using sqlite3. 'USER': 'root', # Not used with sqlite3. 'PASSWORD': 'ro...

Show "Please wait" modal while function runs

Hi. I'm trying to add a jQuery UI modal dialog to show when a function starts, which says "Please wait". Then have it close when the function is done. I've tried the following: function flashFallback(){ $('#dialog').dialog({ modal:true, autoOpen:false }); $("#dialog").dialog("open"); /* Other code goes here... */ ...

App_GlobalResources Compilation Error on Apache

I wrote an ASP.NET application and am running it on apache with mod mono. I get this error when trying to run it. It runs fine in Visual Studio and Mono Develop Compilation Error Description: Error compiling a resource required to service this request. Review your source file and modify it to fix this error. Compiler Error Message: Ap...

Which direction is better for sorting multi-column lists?

Please note, I'm not asking how to implement or code a multi-column list. There are two ways to sort multi-column lists: horizontal and vertical. Many of the Microsoft System.Web.UI.WebControls have a RepeatDirection property that offers these two options. I'm sure other frameworks also offer these direction options. Below are sampl...