html

Div onblur event called when clicking checkbox inside div

I have a popup div and want to hide it when users click outside of the div. Inside the div, I have a checkbox... Problem is, the div's onblur event gets fired when trying to click on the checkbox. I put cancelEventBubble code on the onclick of the checkbox but the onblur fires before the checkbox onclick event... any ideas or suggestio...

css quick guide for coders

Is there any fast guide for web application programmer regarding CSS. From my experiece, if one coder with no graphic design background but good in css can use div and span to create a nice looking page. any such 'quick guide' available for coder? ...

IE7 CSS inconsistency

{link removed} The purple links across the bottom of this gallery do not appear at all in IE7 nor is the text clickable. I have exhausted Firebug and Google, any ideas would be appreciated :) ...

onload function with div

Is it valid to use onload function with div element. ...

Generate lighter/darker color in css using javascript

Hi, let say I have #404040 color code. How to generate a new color code which is either lighter or darker by 20% (or given x%)? I need this for generate a hover color in a dynamic site (which color is changing using theme). Therefore it is not possible to use another class or :hover with predefined class. Thanks ...

jQuery tabs, separate divs for tabs and content

I'm using jquery tabs with no problems except that I would like to have separate divs for the list (tabs) and the content. <div id="tabs"> <ul> <li><a href="#articles">Articles</a></li> <li><a href="#videos">Videos</a></li> <li><a href="#photos">Photos</a></li> </ul> <div id="articles" class="bd">Lorem ipsum ...

how to extract all text from HTML file using PHP?

Hello how to extract all text from HTML file I want to extract all text, in the alt attributes, < p > tags, etc.. however I don't want to extract the text between style and script tags Thanks right now I have the following code <?PHP $string = trim(clean(strtolower(strip_tags($html_content)))); $arr = explode(" ", $str...

set focus to iframe body/content in firefox ?

hi, i have an ifram, which has hidden visibility. i click on button - iframe will be visible and i want to focus on its body/content. because now i must click on button and then into iframe, so thats two clicks. i want to do it on one click, but dont know how to focus in firefox. in explorer it is ok: var iframe_window = window.frame...

Issues with nesting elements in <a>

Hi all, So the quick background is that I have a page listing a set of results and for each I display a thumbnail (image tag), short description (paragraph tag) and title (header tag). The result item links to it's brochure. I want each result (about 100px in height and full width) to be a single link rather than have the image and tit...

Regex Tables how to match?

Hello I like to return the strings in this table <tr class="rowodd" onclick="window.location.href='/portal/offers/show/entityId/32114';"> <td>01.10.2009</td> <td>AN09551</td> <td>[2009132] Ich bin Un.&nbsp;<a href="/portal/clients/show/entityId/762350"><myimsrc="/img/bullet_go.pngs" alt="" title="Kundenakte aufrufen"></a></td...

How do I change an <img> tag so that I can choose the image in CSS?

I have an image hard-coded in but I want to change it for different themes. How can I do this? I tried creating a span and setting its background-image property but it didnt work... I don't want to hardcode the width/height either as the image I change it to could be another size. ...

How do I stop a div taking up space?

I am doing stuff with ajax progress bars and stuff... Basically I have a hidden div that says "Loading" in it, and beneath it I have a visible div with my content in. When it is loading, it fades the content div out, makes the hidden div visible, and moves it via javascript/relative positioning to be in the middle of the content. It l...

Validation on fieldset. The fieldset is inside the form and has inputs outside.

<form id="youtube-form" method="post" action=""> <label for="searchField" id="label-youtube-id">YouTube ID:</label> <input type="text" id="searchField" name="videoid" class="search-field" /> <fieldset id="outputFieldset"> <legend>Output format:</legend> <label for="flv">FLV</label> <input type="radio" id="flv"...

Php Submit buttons in webpages

I originally had a submit button like this <form action="<?php $self ?>" method="post" > <input name="search" type="hidden" > <INPUT TYPE = "Submit" Name = "Submit1" VALUE = "search"> </form> it made this statment true if(isset($_POST['Search'])){} For a time all was well then i made my submit button a image <form action="...

HTMLPurifier, check entire HTML document

I'm using HTMLPurifier to check for XSS in an entire HTML document. The problem is that it appears to strip out anyything that isn’t inside <body> tags. But, I want to keep everything, just look out for serious XSS attacks. Any ideas how to allow <HTML>, <HEAD>, <META> etc.? ...

Time Entry - Usability

What is the conventional wisdom around entering times into a web app? I've seen both free form fields, and drop downs. I have a user right now arguing that drop downs are easier to use, despite the fact that you have 18 options between 3 drop downs. I feel that using a text field (and PHP strtotime()) that I can eliminate all of that ha...

Problem with Firefox & IE8 not showing mouseover alt text for image maps

I have the following HTML: <div style="position: relative; text-align: left;"> <img id="chart_6c544b37_ac9d_49ed_912e_5ff8ad6c0181_BaseImage" src="chart.gif" width="460px" height="240px" usemap="#chart_6c544b37_ac9d_49ed_912e_5ff8ad6c0181" border="0"> <map name="chart_6c544b37_ac9d_49ed_912e_5ff8ad6c0181"> <area shape="poly" alt="Secon...

Best way to save pop up window table cell values to parent page before parent page form submission

I have a jsp page which has dynamically created hyperlink called "Add Note".End User can click on the link ,which would open a popup window and user can a add new note, by dynamically creating new table row and populating it with values, till user closes the window , the parent page should not be allowed for modification,once user closes...

Why do you need a &nbsp; in IE for this break to work?

I wrote this bit of code because I wanted images to appear in the same place regardless of how many bullet points the user fills out in the CMS. IF they don't fill in a spot for a bulleted link or text, it just puts a break rule. What I don't get is why IE requires a   before the break rule for the break rule to take effect. It worked fi...

IE6 table busting out of div

IE6 drives me nuts. The following HTML works fine in every post-millenial browser except IE6. The right hand div scrolls to show the table. In IE6 the table bursts out of the size constraints of the div. Can some kind genius please tell me what I have to do to get IE6 to respect the width of this div and scroll like a good browser? <!...