html

Unobtrusive javascript rendered

In the wikipedia entry Unobtrusive JavaScript there is an example of obtrusive JavaScript: <input type="text" name="date" onchange="validateDate(this);" /> The solution is the following: <input type="text" name="date" /> window.onload = function(){ //Wait for the page to load. var inputs = document.getElementsByTagName('input');...

PHP generated textbox operation with Javascript

I'm using text boxes to let users change the quantity in a ecommerce website, e.g., http://nordschleife.metaforix.net/118/118/index.php/sony.html There are two problems that I hope to solve: On the catalog view (such as the one from the previous URL), the up and down arrows only work for the 1st text box. All subsequent entries don't ...

Store order of HTML list without updating every row in database?

I have an HTML list that can be sorted (using jQuery's sortable API). I am storing the list items inside a database; each row stores the item's order, and text. How can I store the order of the list items so I do not need to update multiple rows when an item's order changes? List items can be added and removed. Here's an example of what...

IE space between rows

My site looks very different from FF and IE (http://www.kiubbo.com), as you can see there its a lot of space between ".news_item" lines in IE 8 If anyone has any idea why? Thanks ...

How to set Google map's marker's infowindow max height?

If the contents of the info window of marker is too long, it won't fit into the window, it will overflow at the bottom. How can I fix this? ...

Good/small html editor

Can someone recommend me good but small HTML editor. Right now I'm using EditPlus and it's really great and almost what I need, but it lacks few stuff that would come very handy. I'd like EditPlus (or whatever other piece of software) to show me where the tag I clicked ends. For example, if I have few large tables on the page, and when ...

Will a table row be displayed if all its cells are empty?

I have an empty table row just for separation between rows. <tr> <td colspan="5"></td> </tr> It's rendered in IE, FF, Opera and Safari. The question is, whether I should put some content inside of it or it is okay to leave it as it is? Like: <tr> <td colspan="5">&nbsp;</td> </tr> ...

Does javascript force specific charset?

I am trying to use javascript, without framework(prototype, jQuery,etc), to insert data passed from a html form to an mysql database. I have managed to get this working but, get a problem with some special characters commonly used in my language(æøå). utf-8 supports these characters, and everything works fine when I skip the javascript. ...

JQuery - Hardcoding HTML in Javascript - Is there a better way to dynamically create dom elements?

I have a lot of messages, and raw HTML that I hard code in my javascript code, such as: var subjectId = $(subject).attr('subjectId'); var subjectName = $(subject).attr('subjectName'); var html = "<table id='invitations' class='invitations' width='100%'><tbody>"; $(subject).find('group').each( function() { var groupId = $(this)...

Showing/Hiding div

I am using asp.net ajax control toolkit 1.0 on vs 2005. I am using the collapseablePanel and AlwaysVisibleControlExtender control. When I use these, I notice that it my panel flashes for a few seconds before it is hidden. To avoid this, I have decided to place it in a div to make it hidden. I want it shown when I use the control. Her...

JavaScript - Traversing the HTML DOM using childNodes causes errors in Non IE browsers

I have the following table being rendered in my browser. It's generated from the server side. <table id="tblQuestions" class="tblQuestionsContainer" border="0"> <tr> <td id="1" class="tdQuestion">Are u an indian citizen ?</td> </tr><tr> <td><table id="answer-1" border="0"> <tr> <td><input id="answer-1_0" type="radio" name="...

mailto: links and webmail

Is there a way to implement a mailto: link that works with webmail clients? Edit - so a traditional mailto link is (as I suspected) not going to work. So has anyone seen anything similar to those rss buttons you see with a variety of the most popular sites on? ...

Creating colored bars for poll results

In my web app I'd like to display poll results with colored bars with length proportional to the percentage of votes. How can I achieve this with HTML/CSS? ...

Nested UL/LI not shown

<ul id="nav"> <div id="navspacer" /> <li class="button" style="width: 109px;"></li> <li class="button" style="width: 86px;"> <img alt="Webdesign" src="images/digifolio_10.jpg"/> <ul> <li>a</li> <li>b</li> <li>c</li> </ul> </li> </ul> <div id="main"> content </div> li.button has a fix...

Techniques for securing a pure HTML site

I have been tasked with securing a pure HTML website for someone, and I'm not entirely sure how to approach the problem. Here are the constraints: All logins must link in with our current Active Directory domain. (Optional, but desired) The solution must whitelist requests coming from inside our intranet - that is, if someone attempts...

Free tool to convert XSD to HTML

Is there good freeware tool that will help me convert XSD to HTML? Thanks, Jerry ...

Anyone know of a javascript removal tool for html

I am having issues with an Ebay template, if I try to upload it get's kicked back to me saying that it cannot contain javascript, I'm assuming that it's in the picture rollover option (mouseover pic enlarging tool) Any help would be greatly appreciated, I'm not real Java intuitive. ...

Proper use of quotes for output of JavaScript in a variable

I am creating a chunk of HTML/JavaScript with the below code: $result = mysql_query("SELECT * FROM posts WHERE userid = '$user_id' ORDER BY DATE desc LIMIT 5")or die (mysql_error()); while ($row = mysql_fetch_array($result)) { $source = $row[source]; $source = "'$source'"; $p = $p.'<div id="red-div"><div id="smartass"><di...

Are elements cached or not?

Hello, When I check with Privoxy what my browser downloads from one site, it seems like all the elements that make up the page (CSS, JS, icons, etc.) are redownloaded every time, ie. the browser doesn't cache them (Sorry, new uses aren't allowed to include URLs): <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <TITLE>My S...

JQuery IE <div> opacity problem

I have a problem with IE. I have a layer that has this style to make it transparent and fullscreen. position:absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; background-color: #000000; filter:alpha(opacity=50); -moz-opacity: 0.5; opacity: 0.5; z-index: 1; And i use the JQuery method fadeIn and fadeOut to show and hide it. Wel...