html

jQuery and labels.

Further to my previous question, I have a jQuery event that I want to fire when the checkbox and the label itself is clicked. jsFiddle example here. My problem is that when I click the label, it doesn't fire the function. The checkbox works fine, as you can see. Is there anything more I can add? Or is this it? Thanks :) EDIT: co...

Retrieve the full path to a folder on an intranet

How can we make from a jsp using a component-type browse, retrieve the full path to a folder on an intranet ...

How bad is it to add custom attributes to HTML tags?

Possible Duplicate: Custom attributes - Yay or nay? Hello, it might be a very basic question but I wonder if are there any implications to set custom attributes to HTML tags... in terms browsers compatibility, SEO, complainants etc. thanks ...

Can I playback a SVG animation within SMIL?

Hi, for a digital signage project, I created a SVG based rundown, which plays other SVG files in a loop on a Spinetix box. Now I had to change the playback device. The new one supports SMIL and I'm looking for a way to reuse my old solution on this device. I think of creating a SMIL rundown which plays the standalone SVG files (basica...

Parsing HTML / Javascript into a MySQL database

I'm looking for suggestions as to the best way to parse the following calendar... http://www.ucd.ie/events/calendar . I can't detect any well known framework being used nor can I find it in RSS/XML/JSON format. The only possible way to parse the following that I see is to parse the raw HTML which is far from ideal especially since many...

Can you put multiple elements in an html a tag?

Very newbie question. For instance, is this okay? <a href="allaboutpeanuts.html">Peanuts<img src="peanut.jpg"> </a> I tried it and it works fine, but I've been googling around and I can't find any mention of anyone putting more than one element in an a href. So are you not actually supposed to do that, but I cheated, so it's sort of...

How to use jQuery prevAll() to select nearby text nodes?

I'm getting a text node (node.nodeType == 3) returned from the getSelection range, eg.: var selectionRange = selection.getRangeAt(0); var startContainer = selectionRange.startContainer; This startContainer usually is a text node, eg the following html: <p>Paragraph in <u>parag</u>raph.</p> Would result in the text node with text "r...

Overflow auto in table _td_ that has no certain height

I have a table with fixed height in which one row has fixed height and another gets height left and I need to get scrollbar in the flexible row when its inner content is high. Is it possible to do? <table style="width: 50%; height: 300px; overflow:auto"> <tr> <td style="height: 50px;background:grey"></td> </tr> <tr style="over...

Use Javascript to find text within DIV, insert into HTML form?

I'm currently working on a Safari Extension to create a printable form based upon information provided within a website. A custom CSS stylesheet wouldn't be ideal, instead I was hoping that it would be possible to do the following... If I were to have the following DIV on page called name.html <div id="name">John</div> Is there a way...

php code displaying on web page instead of working behind the scene

Hi, I have an index.html in my wampserver www directory. On this html, there is a link for a user to upload file. When I hit the link, I select files to upload but instead of the uploadmanager.php which i have tested in my eclipse debugg environment to work, it displays the some part of the code on the web page without doing anything t...

HTML table rowspan or colspan issue?

We need to design a webpage layout. Using table we can divide layout into six zones (cells) as shown below: ZONE 1 ZONE 2 ZONE 3 ZONE 4 ZONE 5 ZONE 6 Now, it is possible to merge ZONE 2, ZONE 5 and ZONE 6? We need to use DIV? ...

How to detect all change/click events of HTML select that still has focus?

How can I reliably detect all events that cause the the value of an HTML select to change, while that element still has the focus? For regular mouse input, either the click or change event works fine. For keyboard input (and for mouse input using the scroll wheel), however, the change event doesn't fire until focus is lost. I get around...

Component FormFile browse at the folder level

I want a JSP web page that allows the user to select a folder as input, not files. If I use , I couldn't select a folder as input, I can only select a single file as input. In my case, are there any solutions to my problem? ...

How can I retrieve the current transformation in an HTML5 Canvas?

I've got a long sequence of canvas .scale(), .translate(), .save(), and .restore() commands in my code. Is there any way to retrieve some representation of the current transformation, short of logging everything myself, such that I can find out where a screen coordinate maps to a transformed coordinate. Is this possible? ...

Achieving white opacity effect in html/css

Hello, is there a way to achieve this effect in a cross-browser compatible way without having to prepare separated images? Basically the frame on which text lays has a white overlay of 50% opacity.. I would like a solution that doesn't involve creating any other image in addition to the background but I don't know if it's possible! ...

How extract meaningful text from HTML

Hi I would like to parse a html page and extract the meaningful text from it. Anyone knows some good algorithms to do this? I develop my applications on Rails, but I think ruby is a bit slow in this, so I think if exists some good library in c for this it would be appropriate. Thanks!! PD: Please do not recommend anything with java ...

What is the maximum length of html textbox

can anyone help me with the length of maximum characters that can be contain in a normal HTML text box.... ...

Youtube video goes to top from an Iframe

Hi, I've got a page with an iframe displaying external website that covers the whole page, on top there's a div with some content, similar to google images new interface. If in the page contained in the iframe there's a youtube video it goes over the content in the main page, since the page in the iframe is from an external web site a ca...

HTML (or Rails) button code issue

Hi there, I'm struggling with the following problem: What's the correct HTML (and/or Rails) code for a button that resides within a form, and that should lead to a new page, but should not submit anything (from the form)? Basically, the button should work exactly like a hyperlink. Thanks for your help! Tom ...

How can I convert plain text to HTML (preferably using Perl)?

Is there a way to take a plain text file and convert it to a simple HTML? A couple of 'sophisticated' stuff that will be great identify hyper-links. identify (tab delimited) tables. UPDATE I just found this HTML::FromText. Checking to see if it meets my needs... ...