| Subcribe via RSS

ie bug: form within a form not posting values

August 19th, 2008 | No Comments | Posted in dom, html, javascript by dreamluverz

You might be wondering why you cannot post the values of some fields even it’s inside the form.

Having a form within a form in your html code/dom is a BIG issue when it comes to ie.

Some of the issues you will encouter are listed below:

1. You won’t be able to post the values of those fields and it’s not even on the $_POST coz basically those fields within nested form is not recognize.
2. When calling javascript those fields are undefined.

I read from another source that it has something to do with the DOM in ie. So in order to solve this issue fix your form. Remove the nested form in your html code. :)



Tags: , , ,

DOCTYPE html PUBLIC

April 20th, 2008 | No Comments | Posted in anything under the moonlight, html by dreamluverz


I haven’t fully researched on this type but using the 2nd type of my code, some css doesn’t work but trying the 1st one works perfectly. Yeah XHTML 1.0 Transitional, has something to do with that but haven’t fully read on it. Will research more of this :)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Tags: , , ,

select box - things you can do with selectbox

February 23rd, 2008 | No Comments | Posted in html by dreamluverz

At one point, I wanted to modify things on selectbox, like make some of it’s options inactive, modifying the different styles on the select options and so on. Luckily I found this site http://www.cult-f.net/2007/12/14/elselect/ on how to do it.

For instance I got a select box with options Yes, No, Maybe and wanted to disable Yes. You can do it like this

<select name=”sel”>
<option value=’yes’ disabled>Yes</option>
<option value=’no’ class=”cls1″>No</option>
<option value=’maybe’  class=”cls2″>maybe</option>
</select>

Tags: ,