html

Fading out and in with $(this).parent().find() repeating.

Hi there, I've been creating a checklist webapp using JQuery, and so far it has been going pretty smooth, but now I'm trying to make editable content. I want to do this by fading out the text in the list, and fading in the textbox, and then reverse when complete. The checklist can be found here: The Checklist. As you can see it is fairly...

How to trigger a desktop application from my website?

I need to do click a button within the admin side of my external website and cause it to trigger an application within my local workstation (with parameters based on button). I have full control of the server, PHP, etc. I can also install any application on my workstation. What is the best way to do this? Adobe AIR/Flash? Java? I need s...

Chrome's changing height when loading pictures - how to get actual height with jQuery on load

I have the following: var offset = {top: target.offset().top + target.height() + 3, left: target.offset().left}; target.offset(offset); this happens on $(document).ready(..) However, in chrome, the target object is not positioned with the appropriate height. When I placed an alert(..) to show the actual height, I sa...

HTML5 input type="search" issue

I'm working on a Google Chrome extension, and using for a search box, the search displays results in an inline div rather than having a submit button and going off to a different page when it is clicked. Is there any way to detect when the "X" button is pressed at the end of the search field, i need to close the inline div when it is b...

If an <object> plugin fails (ie Flash) have it render some other content?

I have a flash header that I show on one of my customers sites, but instead of creating an entire new website for non-flash, is there a way I can have it render a static image version of the header instead of either redirecting or just not rendering the flash content at all (ie with a FAIL message)? Maybe something like a noscript for o...

html fixed header table scrollbar

I've tried several methods to get a scroll bar from html table with a fixed header but had no luck. I think I need a solution where the header is somehow "attached" to the table body (rather than the typical nested table solution). Every solution I tried messes up the width of the header columns and the body columns. In other words th...

What are the functional differences between single-quoted vs double-quoted html attributes?

Let sEncodedHref represent an HttpUtility.HtmlAttributeEncode(..)'d string. Are there any functional differences between generated html like this: String.Format(@"<span class='blue' src='{0}'>", sEncodedHref); vs. generated html like this: String.Format(@"<span class=""blue"" src=""{0}"">", sEncodedHref); I've been under the impre...

Genarate HTML from JSP

The basic servlet jsp setup I'm familiar with .... RequestDispatcher dispatcher = request.getRequestDispatcher(resourceA.jsp); dispatcher.forward(request, response); The problem is, in addition to sending the reply back to the browser (resourceA.jsp), I need to create a second HTML output from resourceB.jsp, witch in turn will be ema...

Setting height of text area based on text inside of it using jQuery

I have a <textarea> element in my form that has this code attached to it: $('#links').focusin(function() { $('#links').animate({ height: '100px' }, 300, function() { // done }); }); This works perfectly, when the text area gets focus it increases in height nicely to 100px. Now, I want it to shrink back down...

Opening a textbox on selecting a radio button

I am fairly new to HTML, I want to open a text box when a particular radio button is selected <html> <table> <tr><INPUT TYPE=RADIO NAME="X" VALUE="H"/> A </tr> <tr><INPUT TYPE=RADIO NAME="X" VALUE="L"/> B </tr> <tr> <INPUT TYPE=RADIO NAME="X" VALUE="LL"/> C </tr> </table> </html> I want to show <tr> ...

HTML elements with "built-in" margins

While working on my first project that completely uses css for layout rather than tables like I'm most used to and comfortable with I ran into a strange issue. Apparently there are some elements that have margins built in. In other words, if you set the "margin-top: 0px" then the element is rendered differently than if you don't. I didn'...

How can I remove the first 6 characters of the contents of a tag with jQuery?

I'm rendering an RSS feed and there is content at the beginning of each content section - it's always 6 characters and I want to use jQuery to remove it. The content of the particular bit of feed is in a list tag, so <li>blahah Hello this is where I want to display from...</li> Getting rid of the "blahah" is the goal. An update: The ...

default css empty selector?

I'm looking for a CSS tag that can provide an id for text. I want to be able to modify the text with javascript, so i need something like: <texttag id="the_id">the text</texttag> All the other tags i've tried affect the formatting one way or another. For example it would be used in a sentence, such as: You live in <texttag id="town...

onbeforeprint() and onafterprint() equivalent for non IE browsers (PHP, MySQL, JavaScript, HTML)

Hi all, I want to send some info back to my database when a user prints a certain web page. I can do this in IE with onbeforeprint() and onafterprint() but I would like to browser agnostic way of doing the same thing. Don't care which combination of technologies I have to use (PHP, MySQL, JavaScript, HTML) so long as it gets done. Any...

Separate stylesheets

How could I use separate stylesheet for Opera? Like: <![if !IE 6]> <link rel=»stylesheet» type=»text/css» href=»ctyle.css» /> <![endif]> But for Opera? (For all versions of Opera) ...

PHP: write hash to url with php?

hey, i know it's not possible to get the hashvalue of an url with php, cause it's already executed on the server, but is it possible to write a hashvalue to a url with php like you can do with javascript? regards matt ...

How do I Get Plain Text Beside an HTML Element using jQuery?

<span> <label for="305"> <input type="checkbox" name="305" style="vertical-align: middle;" value="305" id="305"> Farming General </label> </span> How do I get text "Farming General" using jQuery. Please do not ask me to change HTML structure ...

When a page loads an image, does it load it only once, or every time it is found in the markup?

When a page loads an image, does it load it only once, or every time it is found in the markup? and what about jquery, does appending an img cause it to reload again? I ask this because I have a high res image, but need to you use it in many instances on the markup. <img src="hello.jpg" /> <img src="hello.jpg" /> <img src="hello.jpg" /...

How to I retrieve the length in seconds of a <video> element using Javascript?

I have a <video> tag with the id of "liveVideo". How do I retrieve the length of the video in seconds? Thanks, David! ...

google charts url works in img tag but not in browser location bar

Hi, I'm using django-googlecharts to generate a simple pie chart. Inside the img tag, it works just fine, but if I paste the img src in the location bar of the browser, google returns "Bad Request", "Your client has issued a malformed or illegal request". I followed the example in the django-googlecharts documentation here: http://gith...