How do I hide the address bar on iPhone? I tried two different methods so far: The scroll down one pixel trick with JavaScript on page load And the following meta tags: Also this: I am completely confused. PS: Oh, I forgot a really important thing: the web page itself does not overflow the browser window. It probably is the
Tag: html
Client Checking file size using HTML5?
I’m trying to ride the HTML5 wave but I’m facing a small issue. Before HTML5 we were checking the file size with flash but now the trend is to avoid using flash in web apps. Is there any way to check the file size in the client side using HTML5? Answer This works. Place it inside an event listener for
How can I change an element’s text without changing its child elements?
I’d like to update element’s text dynamically: I’m new to jQuery, so this task seems to be quite challenging for me. Could someone point me to a function/selector to use? If it is possible, I’d like to do it without adding a new container for the text I need to change. Answer Mark’s got a better solution using jQuery, but
Can setTimeout ever return 0 as the id?
I am writing a check to see if a timeout is active. I was thinking of doing this: I was wondering if it would ever be possible that a will be 0. In that case I would use a !== null Answer First: 0 isn’t the same as null, (0 == null) would be false in every case’; if you
Image onclick event for calling function is not working for Firefox and Chrome
I have a div section in which I have an image whose onclick event should execute a function called in it, but it is not executable in Firefox or Chrome with my code, infact the image is not clickable at all . Could some one help me in get the thing done? Below is the code I am working with:
How can we avoid the shake when we hover over an element and set its border?
How can we avoid the shake when we hover over an element and set its border? Here is a sample of the code I wrote: http://jsfiddle.net/s3N2h/ Is there a technique to avoid the shaking? Suppose I hover on File, the borders appears, but that line of text moves a little to the right due to the borders getting rendered. If
HTML input fields does not get focus when clicked
I have a problem and I can’t figure out what exactly is causing this behavior. I cannot access my input fields and textareas on my HTML form. Unfortunately, the JS, HTML and CSS are very large, so I can’t really post it all here. Can anybody tell me what to look for when debugging this strange behavior? UPDATE If I
How can I get pixel data of every frame in a HTML5 element
I’m thinking I’ll have to wait for the video to finish loading, then set up an interval (at 1/24 sec.) to get the current frame data, for the duration of the video. But that seems pretty hacky and looks like it might skip frames and such… So, is there a “onFrameChange” listener I can hook on to, so I can
Does HTML5 allow drag-drop upload of folders or a folder tree?
I haven’t seen any examples that do this. Is this not allowed in the API spec? I am searching for an easy drag-drop solution for uploading an entire folder tree of photos. Answer It’s now possible, thanks to Chrome >= 21. More info: https://protonet.info/blog/html5-experiment-drag-drop-of-folders/ As a note (from the comments) this code is not complete if more than 100 entries
How to change the text of a label?
I have a radiobutton list and on click on the radio button item I have to change the text of its label. But for some reason it’s not working. Code is below: Answer ASP.Net automatically generates unique client IDs for server-side controls. Change it to In ASP.Net 4.0, you could also set the ClientIDMode property to Static instead.