html

Most jQuery-like HTML parser for Ruby

What HTML parser for Ruby will I find easiest to use if I'm already familiar / in love with jQuery? Such a parser would have jQuery's overall philosophy -- "grab some HTML elements (using CSS selectors) and do things with them" -- and in addition have equivalents for all of jQuery's DOM manipulation functionality (prepend(), after(), et...

How do I keep a <td> element from appearing across multiple pages when printed from IE?

I have an HTML table of data where each cell can have multiple lines of text. When the table is printed, it's possible for a row to be broken up so that some of the data appears at the bottom of the first page and some appears at the top of the next. Is there an equivalent to Word's "keep together" functionality that will prevent a page ...

Semantic html structure for a set of image link (with hover effect), title, and description?

i have a set of items (or a list of items, but i don't want to imply the usage of list), they contain an image link, a title, and a description. The image link needs an hover effect (alpha changes when mouse over), and there's a certain way I want to lay out them: image on the left, then title and description on the right. also there is ...

How can I disable highlighting in html or JS?

I need to disable highlighting on my web app. I have a good reason for doing this and know that this is generally a bad idea. But I need to do it anyway. It doesn't matter if I need to use CSS or JS to do it. What I'm mainly going for is the removal of the blue color given to highlighted elements. ...

Source of extra margin in my html page?

The link below shows a page which has an issue. The right pane shows a login piece. There's an empty gap between the name field and the 'Member Login' part. Firebug indicates the gap is caused by a a bottom-margin (16.6px) on the div containing 'Member Login' text. Which CSS element is causing the margin? I can't find it. http://demo.ho...

HTML Include file

I have a basic web application packaged as an EAR deployed on GlassFish. The web module has some html files. The html files have a common footer, an html file, that I would like to extract out and make an include. When I do, and put: <!--#include virtual="insertthisfile.html" --> in an html file, it does not work. Should this work? ...

Struts 2 development with Dreamweaver

Does anyone here use Dreamweaver for Struts development? I've been working on a web application using Eclipse/vi, but want to use Dreamweaver so that I can apply some nice looking Dreamweaver templates. I looked for tutorials on Struts development with Dreamweaver, but couldn't find any, and when I tried to import my page, a lot of stuff...

Firefox extension to display inheritance from browser defaults?

There are times when looking at a computed style in Firebug, it's not evident how a value is computed or what its origins are. In some situations, the source is the browser's default. In web sites that are already constructed, it's not feasible to inject a css reset which will result in breaking all the pages. Is there a way in Firebug,...

Help with PHP Regular Expressions using a Negative Look Behind

Hello, I'm trying to write a simple function to close missing HTML tags using PHP preg_replace. I thought it would be relatively straight-forward, but for some reason it hasn't been. What I'm basically trying to do is close a missing tag in the following row: <tr> <th class="ProfileIndent0"> <p>Global pharmaceuticals</p> <td>197...

java convert string to HTML string

Is there a way to convert a string to a string that will display properly in a web document? For example, changing the string "<Hello>" To "&lt;Hello&gt;" ...

Telling when an iframe is on a new URL

Hi, I am using JavaScript to make a small iframe application, and I cannot seem to figure out a way to update the URL in my URL bar I made when someone clicks a link inside the iframe. It needs to be instantaneous, and preferably without checking every millisecond whether or not the value of document.getElementById('idofiframe').src ha...

How can i align text directly beneath an image?

i used to know how to put an image up on top and then justify the text below the image to stay within the borders of the width of the photo and now i have no idea how to do this, help please? oh sorry, html! ...

visual studio 2008 collapse html in IDE like regions

Is there anyway to collapse html in the IDE? For example if I have a table, I would like to collapse the table and anything inside of this. ...

really stupid tinymce question - how can i extract out the html

i am trying to create an ASP.net site where a user can have a wysiwyg editor and can put together a page and i am then saving that page (the html) as an html page. I have looked at all the examples but it seems that from my testing, after i post to the server, i can get the content in pure text form but i can't seems to determine where ...

can you load up a text area with html but display the wysiwyg formatted output (im using tinymce)

i have setup tinymce in a webpage for users to generate html data that i am putting on my website. the issue is that i have existing html pages that i want to use as a starter. I want to have the first time they go to tinymce page, it prepopulates the textarea with the wysiwyg view of the html file on my local disk. is there any way...

JQuery, how to find list of div's with similar ID

Hello everybody. I have a structure of html like this: <div id="triger1">some elements inside</div> <div id="triger2">some elements inside</div> <div id="triger3">some elements inside</div> <div id="triger4">some elements inside</div> How do I get array of all the div's in JQuery with the triger ID in them (as you can see, they all h...

csharp code to remove all extraneous microsoft html formatting

is there any way to programatically remove all microsoft html formatting that gets put on and simply render it as regular html. i want to remove all the extra tags as i am trying to load it into tinymce but tinymce doesn't seem to be able to render it. ...

Encoding apostrophe

i am building up a string on the server that is getting put into a javascript variable on the client. what is the best of encoding this to avoid any issues right now on the server i am doing something like this: html = html.Replace("'", "&#39;"); but i assume there is a more elegant fool proof way of doing stuff like this. ...

sIFR v2.0.7 + Flash Bug

I have a few websites that use the awesome sIFR v2.0.7 and they've developed a nasty 'green background' bug. I've been reading documentation on http://novemberborn.net/sifr/2.0.7 and it seems the fix is to upgrade to sIFR v2.0.7 - which I am already using.. Test Case > http://prettypollution.com.au/test/index.html ^ 'Welcome to Pretty ...

Javascript variable in quotes

hai I want to give a javascript variable within a double Quotes , Can any one help me? ...