html

Firefox CSS height issue...

Hello! So I have this table http://mikepuerto.com/iNews/ - I'm using some jquery to sort it. If you view this in any browser but firefox you will see that the table headers have a shadow running along the bottom and when you click a header an arrow points down to indicate that you are sorting that column... For some reason firefox doe...

TinyMCE: Detecting onLeave()

I am trying to detect when the user has left the tinyMCE editor window but I am unable to do so. Here is the code that i think should work (but isnt): $('.mceEditor').blur(function(){ // I would expect this to fire when the user leaves the // tinyMCE editor, but it never seems to fire }); I've also tried: $('*') .not('.mc...

Unescape HTML entities in Javascript?

I have some Javascript code that communicates with an XML-RPC backend. The XML-RPC returns strings of the form: <img src='myimage.jpg'> However, when I use the Javascript to insert the strings into HTML, they render literally. I don't see an image, I literally see the string: <img src='myimage.jpg'> My guess is that the HTML is bei...

How to solve this error Using org.apache.xerces.parsers.SAXParser Exception

Hi I am trying to run some diagnostics on my semantics and i keep running into this error when i look on http://www.w3.org/2003/12/semantic-extractor.html my site is www.bolderentertainment.com any help would be greatly appreciated. Using org.apache.xerces.parsers.SAXParser Exception net.sf.saxon.trans.XPathException: org.xml.sax.SAXP...

Why this javscript is producing different output in FF and IE?

Please see this: http://jsbin.com/igeqa here, i am simply using alert ( tableObj.childNodes.length ); and in FF the output is 5 , while in IE it is 2. Please tell me what is causing this behaviour? ...

Trouble validating <ul> dropdown menu

I am having trouble validating my html, my menus are triggering the following error: "document type does not allow element "li" here; missing one of "ul", "ol" start-tag" link to validator link to site My code is as follows, the menus are drop-down menus <ul> <li> <a href='services' class='inactive'>Services</a> ...

Using HAML elements inside a block of text

I often want some html like this: (<span id="items_shown">all</span> items shown) which I end up getting by using haml like this: %span>< ( %span#items_shown>< all %span items shown) Note that I end up having to create extra spans, and then having to control for the whitespace around those spans, in order to get the exact syn...

CSS Form Styling

I'm trying to make this: <form id="simple-search" name="simple-search" action="/search/" method="POST"> <label for="simple-search-address">Location/Address</label> <input type="text" id="simple-search-address" name="address" value="" /> <label for="simple-search-dob-day'">D.O.B.</label> <select name="dob-day" id="simple-...

How to make same size image in <td>, but image diffrent size

I have many images to showing in to the <table> or <td> How to make same size image in <table> / <td>, but image diffrent size. for view My site click here : promolagi.com Thanks. ...

CSS Form Styling #2

I have seen forms that can do this without using <br /> etc. Here's my form: <form id="staff-login" name="staff-login" action="/staff/login/" method="POST"> <label for="staff-login-email">Email</label> <input type="text" id="staff-login-email" name="email" value="" /> <label for="staff-login-address">Password</label> <i...

Dynamic width of DIV (offsetWidth issue).

Hi all, I face issue with retrieving (via javascript) width of the div which content is changed (just before reading the widht via offsetWidth) in dynamic way (via changing innerHTML or using createTextNode). Here is some sample code: var con = document.getElementById('avContent'); //content div within page var temp = document.creat...

Rails html encoding

I am using h helper method in Rails to encode/escape a string that has an apostrophe (') In my view I am using it like this <%=h "Mike's computer" %> My understanding is that the html when viewing the source should be Mike%27s computer but the html produced has an apostrophe in it, Mike's computer Am I missing something obvious? Ho...

prevent IE to tamper with page code ?

Is it possible to prevent IE (7 or 8) to change the underlying code of a page ? My page, built with Dreamweaver, consists of a table with 5 images; each of these is a link to a larger size one. In FF or Chrome, the page displays exactly as planned. In IE, only the first image displays. All other have the "broken img" icon. The code reve...

Is HTMLPurifier really that bullet-proof?

Hello All, I saw Kohana framework allowing users to optionally use HTMLPurifier against any possible XSS attacks. I thought HTMLPurifier was meant to allow standard-compliant output of the HTML. Does it help avoid XSS attacks 100% or probably to great extent? Or you would suggest something else. Thanks ...

Render after script tag

Can I place something like the code below in a html page, and have the coolstuff.js render content to the page? I think i've seen it done...what is this technique called? Any pointers? <form id="form1" runat="server"> <div> <script src="coolstuff.js" param1="Monkeys" param2="Go" param3="Nutz" type="text/javas...

Sending illustrated (Christmas card) emails

A client of ours wants to send all his clients an illustrated email for Christmas (yes, I know, and I know). I know that email HTML is a very different beast to browser HTML, and there are a lot of things to bear in mind, but I don't know the best place to get this kind of information. Does anyone know of any good sources, or can we ge...

Grid footer disappears on browsers other than IE.

I am displaying a grid in an IFrame on my homepage. The grid uses a CSS file to define design for rows, columns, header & footer. Below is the image of the grid. In the footer, you can see the page navigation links. The problem is that this footer is displayed on IE, but it is invisible in all the other browsers. What changes I need ...

How to stretch image programatically?

There is a vertical bar on my homepage. It is actually an image that looks something like this: The white boxes are the place-holders for the product images that will be added dynamically. I want to know how to stretch the blue vertical bar as new product images are added. This must be done programatically. ...

Check HTML DropDown option.

I have a HTML dropdown control. I want to check that if the text in it is "Select", it must display error message. I am using following code to do this, but it is not working. if (document.getElementById("StudentCountry").value == "Select") { alert("Please select your country."); document.getElementById("Stu...

How to create embeddable gadget with Javascript and PHP?

I'm programming in Javascript and PHP. I've created a simple website that allows to fill in a quizz and get result. Now I would like to give users opportunity to embed this quizz on their website. How to do this? It should work in some near manner like Google Gadgets, Adsense and that: that so when someone will put my html code (with JS?...