html

Why is Firefox removing the form tags from an XHR?

I have an XHR inside of a form on my webpage that returns a Lightbox with another form in it. In Safari/Webkit, everything works great, and the form submits as expected. However, on Firefox 3/3.5, using Firebug to look at the source, it appears that the tags have been stripped out of the XHR. I KNOW that my app is generating the form...

Applying html formating in label control

The html formating is applied great in this case. The Surname is displayed with size 5. lblWelcome.Text = "Welcome:<font size=''5''>" & txtSurname.Text & "</font>" Why the html style is not applied in this example? lblWelcome.Text = "Welcome:<font color=''white''>" & txtSurname.Text & "</font>" ...

Disable Eclipse warning about generated html?

When developing Flex projects, Eclipse gives warnings about the default index.html file generated by Flex Builder. The file is in the 'target' folder (or "generated artifacts" folder. Yes, I'm also using Maven). Can I eliminate or disable this warning? The code which generates the warning is below, though I would definitely prefer not c...

Making CSS Tabs a Specific Width and Height

Hi, I am trying to set up CSS Tabs and I'd like them to be the same height and width. How do I do this w/ the following CSS: #master_tab_layout { height: 35px; } #master_tab_layout li { display: inline; overflow:hidden; list-style-type:none; background-color:#FE000C; } #master_tab_layout a, a...

How can I make this javascript more efficient?

Hi, i am receiving a piece of plain html from an ajax request. <h1>Title</h1> <div> content </div> This is the most simple form. Every piece contains a <h1> tag for a title, and a <div> tag containing the content. I have a nicely formatted container in the html page which needs to populate with the returned html snippet. This is t...

How do I prevent my html table from stretching

Sometimes when a piece of data in one of my table cells is too long it stretches the cell and deforms the layout of the entire table. how can i prevent this? ...

Looking to Create Custom Domain Specific Language that Outputs HTML

I'm looking to create my own custom domain specific language that outputs HTML. Basically, I want to be able to create quizzes using my own markup, but have that compiled / generated into HTML. For example: > What is your favorite color? * Blue * Green * Red should output <form action="" method="post"> <ul> <li>What is your favori...

CSS Position Relative

Hi! I am trying to position some text relative to the prior element. So i have 4 boxes and 1 container, the first and second element works, but then the problem starts. It is supposed to be 2 rows with 2 boxes on each row. Box1 | Box2 Box3 | Box4 But the Box3 isn't showing as it is supposed to. http://homeweb.mah.se/~M09K0291/test.ht...

Tomcat: playing audio

Hi, I've develoved a web application. One of the options of this application is to play audio files that have previously uploaded to the server. I'm trying to do that using the following code: <object id="MediaPlayer" type="application/x-oleobject" height="42" standby="Installing Windows Media Player..." width="138" align="absMiddle"...

Is HtmlCleaner thread safe?

I can't find an answer on their website. Do you have any idea if HtmlCleaner is thread safe or not? I have a multiple threads that need to use it but I don't know if I can safetly reuse an instance of the HtmlCleaner object. Have you ever used it? any idea? ...

how to eliminate a particular category from query

i have been presented with this code. the code displays the title headings of the latest 10 wordpress posts from the database. what i need to do is to eliminate a particular category from this. can anyone please help? <?php require_once 'news/wp-config.php'; $howMany = 0; $query ="SELECT `ID`, `post_title`,'post_category...

Html Parser & Object Model for .net/C#

Hi, I'm looking to parse html using .net for the purposes of testing or asserting its content. i.e. HtmlDocument doc = GetDocument("some html") List forms = doc.Forms() Link link = doc.GetLinkByText("New Customer") the idea is to allow people to write tests in c# similar to how they do in webrat (ruby). i.e. visits('\') fills_in "...

Double-Click HTML files and JQuery

I noticed that when I open HTML file locally by double clicking on it, it will not "run" the same as if I had it on a web server and opened it by HTTP GET request. I need to have a local HTML file a user can open by double clicking on it. This HTML file has several JQuery load calls such as this: $("#content").load("http://somepage.com...

Creating a site top bar in header dynamically

Is there a way to insert a bar at the top of any webpage (similar to the ones here at Stack Overflow) without needing any special code in the page itself? I'm looking for either a snippet of CSS styling or, if necessary, a Javascript example. It doesn't need any special animations or even a close link, but it does need to make room for i...

light weight HTML Parser for translating to formatted text?

I'm finding light weight HTML Parser for translating to formatted text. for example: <html> <body> <a href="http://www.google.com/"&gt;Google&lt;/a&gt; <img src="http://images.google.com/intl/en_us/images/logos/images_logo.gif" alt="Google image logo" /> <ol> <li>first</li> <li>second</li> </ol> <ul> <li>apple</li> <li>orange</li> </ul>...

GreaseMonkey editing Page

How can I change a page with this html code : <tr> <td nowrap title="7884">Ontem foi dia de</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td align="right">6,0</td></tr> <tr> to this one using greasemonkey : <tr> <td title="7884" nowrap="nowrap"...

CSS UL removing indent in IE

I am having problems with IE, In FF and Chrome the navigation at the top displays fine. However in IE8 (with or without compatibility) the UL seems to indent from the left hand side, not each li just the whole li; despite declaring text-align:center; width:600px; margin:auto; padding-left:0;. Any ideas what could be causing this? Thanks...

Dynamically loading css stylesheet doesn't work on IE

Hi, I dynamically load a css stylesheet (with a little help from jQuery) like this: var head = document.getElementsByTagName('head')[0]; $(document.createElement('link')) .attr({ type: 'text/css', href: '../../mz/mz.css', rel: 'stylesheet' }) .appendTo(head); This works fine in Firefox and Google Chrome, but not in IE. Any h...

Position HTML button dynamically in C#

I know this should be real simple, but I have googled this problem and I do not see the same available properties for my button. What I have googled says I should be able to change an HTML button's location with the Location property. However, this is not an option for me. How do I change the button's location dynamically in C#? Here ...

PHP set selected value of dropdown box

Hey everyone, I have a dropdown box that I construct with PHP. Here is the code: $region_result = mysql_query("SELECT * FROM region ORDER BY region"); $dropdown = "<select name='region'>"; while($row = mysql_fetch_assoc($region_result)) { $rid = $row["id"]; $region = $row["region"]; $dropdown .= "\r\n<option value='{$row['ri...