html

Playing video on an iPad

I want to play video in iPad. It works well in all browsers in mac and windows but not on iPad (see example). I had used slider.js and the HTML5 video tag on click of "SD", made it display block and on close display none but it doesn't work on an iPad. ...

DHTML, iFrame and IE

I've got a piece of JavaScript that inserts/removes an iframe from the DOM. Everything is dandy in Chrome and FireFox but the iframe is not displayed in IE. The code below is the creation and insertion. When inspecting with a Developer tools I can see that the iframe is part of the DOM exactly as I expected it to be. Any suggestion on wh...

HTML/CSS drawing a square window in a css mask

Hi, So I have a grid of images (map tiles) and I draw a semi-transparent mask over it using an absolutely positioned div with width and height set to 100%. I now want the user to be able to draw out a rectangle on the mask, with the mouse using mouse-down, drag, mouse-up. The rectangle would be drawn dynamically as the mouse moves, and...

the value parameter is not being passed using jquery?

<textarea name="inputField" id="inputField" tabindex="1" rows="2" cols="40"onblur="DoBlur(this);" onfocus="DoFocus(this);" ></textarea> <input class="submitButton inact" name="submit" type="submit" value="update" disabled="disabled" /> <input name="status_id" type="hidden"> the javascript(jquery): function insertParamIntoField(anchor,...

Html 5 horizontal and vertical align img inside figure

Hi can someone help me horizontal and vertical align a img inside a figure <figure class="frontpagearticlefigure"> <img class="frontpagearticleimg" src="image.png" alt="image" title="imgtitle" /> </figure> and my css .frontpagearticlefigure { display: block; height: 140px; width: 250px; } Im working with html 5 ...

Google Analytics Code ONLY showing up in Chrome

I've been tasked with setting up a Google Analytics account for a potential client on their site, which unfortunately is powered by some Site Builder software. I eventually found where the template tags are located in the jumble of pages, and pasted my GA code in as you would normally. I then go to Google and check trackings been inst...

Possible to stop copy + pasting into a html textbox?

Got a password field, and ideally we want people to type their password rather than copy and paste it in. Is there an easy way using Javascript? ...

the value is not inserting into the textbox, it was working two days ago?

<html> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"&gt;&lt;/script&gt; <script type="text/javascript"> function insertParamIntoField(anchor, param, field) { var query = anchor.search.substring(1, anchor.search.length).split('&'); for(var i = 0, kv; i < ...

Disable the html page resizing

Hi I want to disable the resizing the html web page by the user. How to do that I want to disable the resize button and manual resizing by dragging. pls help ...

Page contains both secure and nonsecure items

I'm working on a legacy web application - frames and a mixture of html, asp and aspx. The entire site is https. For some strange reason when I hit a specific page I get the magic message that says the Page contains both secure and nonsecure items. (IE obviously doesn't want to tell me what those resources are) I have checked the page...

HTML - Page's Full Height including the content beyond the scroll

Hi, I need to find out height of a page including the content that goes beyond the vertical scrolls which is hidden. I have searched google and stackoverflow QA's but those solution don't apply to my situation. One condition is I cannot change HTML or BODY css. Basically I am trying this out for a firefox extension All the methods lik...

How to know when Solr Optimize is done?

I am using the Solr-php-client to communicate with Solr, via php. This piece of code triggers the solr optimize command: $solr->optimize(); I wonder if there is any method to know for sure that the optimization is done? This is all because I have an administrations page on my website where I manually once a day must optimize the S...

change cursor when loading page

So what I trying to do is to change the cursor to wait when some page is loading. I thought this was possible with css, I trying to achieve this when someone click on some link, so what I have is this: #something a:hover { cursor: hand; } #something a:active { cursor: wait; } But this doesn't work, it's a hand when hover links, and w...

CSS - IE doesn't display quite right

<div class="searchWrapper"> <table height="100%" width="100%" cellpadding="0" cellspacing="0"> <tr> <td align="center"><input type="text" id="searchInput" class="searchBox" /></td> <td><div class="searchBtn">Search</div></td> </tr> </table> ...

CSS Layout liquid column issue wrapping content

+-----------------------------------------------------+ |.....................................................| |..header height: 128px...............................| |.....................................................| +-----------------------------------------------------+ |.............|.......................................| |....

html tags inside xml tags - how access in javascript?

I'm passing my xml data through php where all xml nodes are contains html tags <bccfalna-ad> <ad-id>99</ad-id> <ad-title>New Ad</ad-title> <ad-code><u><b>C Language</b></u></ad-code> when i access this code in javascript, its easily access ad-id and ad-title but it always print null for ad-code node var edit_ad_id = xmlDoc.getElement...

Is there a better way to write this php code?

return' <li> <a href="nano.com/' . $username . '"><img class="avatar" src="images/' . $picture . '" width="48" height="48" alt="avatar" /></a> <div class="tweetTxt"> <strong><a href="nano.com/' . $username . '">' . $username . '</a></strong> '. autolink($tweet).' <div class="date">'.relativeTime($dt).'</div><div class...

HTML form w/ method = "get" VS. JQuery $.get

I have an embedded application running httpd for a web server. On the main page I have two buttons. One uses JQuery to add a click event with the following code: $.get("example.cgi"); The other button is the submit button for a blank form (i.e. other than the form tags and the input with type = "submit" the form contains no fields)...

Jquery +html table

how to find the html or controls of next td using jquery in an html table? ...

How to get a list of all elements that resides at the clicked point ?

On user click I would like to get a list of all elements that resides at the clicked point. For example, if user clicks on Hello here: <div><span>Hello<span></div> I would like to get the following list: <span> element <div> element <body> element <html> element What would be the easiest method to get these elements ? ...