html5

Best Practices for Sanitizing SQL inputs Using JavaScript?

So, with HTML5 giving us local SQL databases on the client side, if you want to write a select or insert, you no longer have the ability to sanitize third party input by saying $buddski = mysql_real_escape_string($tuddski) because the PHP parser and MySQL bridge are far away. It's a whole new world of SQLite where you compose your querie...

How could I play a shoutcast/icecast stream using HTML5?

Is it possible to play a shoutcast/icecast stream using HTML5? If so, how should I implement it? ...

Pixel Perfect Collision Detection in HTML5 Canvas

Hi, I want to check a collision between two Sprites in HTML5 canvas. So for the sake of the discussion, let's assume that both sprites are IMG objects and a collision means that the alpha channel is not 0. Now both of these sprites can have a rotation around the object's center but no other transformation in case this makes this any e...

Can i do 3d swivel animations along the z-axis with HTML5 / js?

http://gizmodo.com/5523721/microsoft-office-on-windows-phone-7-looks-fantastic I was wondering if it was possible to obtain an effect similar to the windows 7 mobile examples above without using Flash. I would like to have content swivel in along the z-axis. Thanks! ...

Best way to detect that HTML5 <canvas> is not supported

The standard way to deal with situations where the browser does not support the HTML5 <canvas> tag is to embed some fallback content, usually a polite version (and sometimes a less polite version) of <canvas>Your browser sucks</canvas> But the rest of the page remains the same, which may be inappropriate or misleading. I'd like some w...

HTML5 enabled browser for Windows Mobile 6

I did some research on Google but I couldn't find any HTML5 browser for Windows Mobile 6. The main resource I'm looking for in HTML5 is WebDatabase and/or localStorage. With a little research I found Iris (http://www.freewarepocketpc.net/ppc-download-iris-browser.html), a Webkit based browser with some HTML5 features, but localStorage a...

How do I include 2 tables in one LocalStorage item?

I've got a table that you can edit, and I've got a simple code saving that list when you're done with editing it. (the tables have the contenteditable on) The problem I've stumbled upon is that if I double click on enter, the table gets divided into two separate tables with the same ID. This causes the code I'm using to set the localSt...

Whats faster for including scripts, using CDN (Google) or store them locally in website root?

Whats faster for including scripts, using CDN (Google) or store them locally in website root? ...

HTML5 localStorage restrictions and limits

HTML5's localStorage databases are usually size-limited — standard sizes are 5 or 10 MB per domain. Can these limits be circumvented by subdomains (e.g. example.com, hack1.example.com and hack2.example.com all have their own 5 MB databases)? And is there anything in the standard that specifies whether parent domains can access their chil...

Silverlight or HTML 5 - what looks better on the resume?

To a developer who is about to delve into learning Silverlight would you recommend that its worth the effort OR would you say its better to focus on HTML5? I am asking purely from a marketability perspective ...

Will HTML 5 kill Flash? Is it even worth my time to learn Flash?

Apple is always in the news these days with "i" this and "i" that. One of the biggest beefs people have with Apple is the lack of Flash support. Last year I held the same belief, Apple's choice to exclude Flash support just seemed senseless. HTML 5 seems to have changed this though. One of the most popular users of Flash is YouTube, ...

How do I skew the text generated by fillText() for the canvas tag in HTML5?

How do I skew the text generated by fillText() for the canvas tag in HTML5? Would it be done the same way as MozTransform, webkitTransform, oTransform, transform, etc.? ...

In which case would HTML5 be advantageaous compared to flash ?

I have read a few articles, I can't see why one would use html5 instead of flash so any few examples which could show the advantages ? ...

Handling the rel attribute in a UIWebView?

Is there a way for my UIWebViewDelegate to see what the rel attribute of a clicked < a> element is? ...

Changing video on mouseclick?

I have two videos, and I want to loop the first video until the user clicks the mouse, at which point I want to switch to playing the second video. Does anyone know what the best way to do this would be? Edit: Sorry, to clarify, I would prefer to use HTML 5 (assuming this is possible). I am trying to have the two videos swapped out seam...

Using html5 localstorage to retrieve data from server, to allow editing of and appending to data source, then saving back to server.

So, I'm creating a standard user-data collection form that will be used by standard web browsers, as well as the iPhone and iPad. The app will allow users to create new records, as well as edit and delete existing records. I've gotten the gist of using html5's 'localstorage' to create a client-side data source and am looking for directi...

H.264 / FLV best practices for HTML

I run a website that has as part of it about 700 reference videos (And no, it's not porn -- get your mind out of the gutter :-) ). The videos are currently in FLV format. We use the JWPlayer to render those videos. IIS6 hosted. Everything works just fine. As I understand it, H.264 (not FLV and likely not OGG) is the emerging prefer...

.ogg video not playing in firefox

We're just getting started with html5 video, and cannot seem to get .ogg files to play in Firefox, any tips? Here is the source we are using: <video width="640" height="360" poster="http://video.thewebreel.com/episode_001/episode_001.jpg" controls autoplay autobuffer> <source src="http://video.thewebreel.com/episode_001/episode_001.og...

Drawing text to <canvas> with @font-face does not work at the first time

Hi all, First try the test case please: http://lemon-factory.net/test/font-face-and-canvas.html I'm not good at English, so I made the test case to be self-explanatory. On the first click to the DRAW button, it will not draw text, or will draw with an incorrect typeface instead of the specified "PressStart", according to your browser....

HTML5: Can an SQlite database be specified in a manifest's Cache section?

I'd like to be able to specify an SQLite database as a resource in the CACHE section of a manifest file. This would allow the script on the page to use the database in offline mode. I cannot find anything in the HTML5 spec that says this cannot be done, but I haven't had any success in getting it working either. Is it possible? ...