html

jQuery - Div isn't updating.

Hey, sorry to be such a nuisance, but I have another jQuery problem. Same code. $('.tab').click(function() { $(this).unbind("click"); var classy = $(this).attr("class").split(" ").splice(-1); var ihtml = $('.content.'+classy).text(); $('#holder').html(ihtml).slideDown("slow"); $('.tab:not(.activ...

Prevent Highlight of Text

I have a table, and I'm allowing users to 'select' multiple rows. This is all handled using jQuery events and some CSS to visually and data-wise indicate the row is 'selected'. When the user presses shift, it is possible to select multiple rows. However, sometimes this cause text to become highlighted. Is there anyway to programmatically...

positioning three elements in div

Hi all, My problem is illustrated in the sample code provided at the end. Basically, i have a div container containing some tools at the left, and the main content in the middle, and some tools at the right (The visual left tool is to provide dragging and the visual right tool is to delete the content). I achieved the positing by floati...

Selectively enable enter key in HTML textarea (javascript)

Hi, I am using openjs.com's shortcut handling (1) to disable the enter key in my html forms. However, inside of textareas in those forms I want enter key to emit the normal CR-LF pair (because that's what users expect). At the moment assuming I have a form/input structure as follows: <form id="f1"> <fieldset> <input> <textarea i...

Sending an E-mail from a website without Server-Side scripting.

I'm trying to send a simple email from my website using a HTML form. I am not allowed to use any server-side scripting. I'm wondering if it's possible to send a simple message from a HTML form using maybe Jscript or Javascript or DHTML or VBscript or something else? Thanks all :) P.S. It can't be mailto: either. I'm not expecting a mira...

How to generate javadoc documentation with umlauts?

I am trying to generate javadocs in eclipse. The source files are UTF-8 encoded and contain some umlauts. The resulting html files do not specify an encoding and do not use html entities, so the umlauts aren't displayed correctly in any browser. What can I do to change this? ...

Which attribute of a <div> tag should reference the CSS?

This is probably a case of trying to run before I can walk, however... I have the following code: <div class="hidden" id="repair_complete"> // some code </div> I was under the impression that if my CSS file contained: #hidden { display: none; } ... then the div content wouldn't display. However, it seems to only adopt this behav...

why won't favicon load in firefox?

I am using the following: <link rel="shortcut icon" href="/images/favicon.ico" /> It is a true 'ico'. When I visit http://mydomain.com, the icon loads. But when I visit the 'www' subdomain: www.mydomain.com...it won't load. Any ideas what is going on? ...

Get title string from url within iframe using jQuery?

Hi all, I wonder if it is possible to get the page title of an url within IFRAME. I tried to use jQuery $('#iframe').attr('title') but that doesn't work. Please help. Thanks. ...

can you have multiple formats within a fieldset legend

is there anyway to have a fieldset legend have different formats. For example, title would be big but sub title would be small? Title: sub title ...

Write html content in a mail using a stream

Hello, I have a stream loaded with HTML that I got from an export. I can take this html from the stream in a byte[] (is there any other way?), and I want to write this byte[] to a html mail body. The reason to do this is that I want to export a report to html, and use this data in the body of the mail, instead of exporting it to pdf an...

How Search Engine Crawler suffer from Nonstructural Tags like Div and Span?

As I read Pro CSS Technique, one point I am very interested in is "Avoiding Nonstructural Tags like Div and Span". Then I just realize that if my site contains more than two hundreds Divs and Spans per page; how does the Search Engine Crawler suffer from those and how does it index my pages? ...

Optimize a web page for Palm Pre

I'm in the process of building a support page for my pre application. I'm having a problem where the content on the page is very small, so the user has to manually zoom in to read it. I've made the page so that there is nothing very wide or tall, but for some reason everything is very "zoomed out" when you first navigate there on the ...

Divs with image backgrounds vs. img tags

Hey all, I was wondering what is the best practice regarding divs with backgrounds and img tags. I understand that divs with backgrounds can have stuff on top of them and what not, but if its the case with just have an image, which is the preferred method? Maybe a better question is.. are img tags obsolete? When you have an image thats...

add scrollbar to table

Hi, I want to add a vertical and horizontal scroll bar to the table with fixed header. By using thead and tbody tags I could add scrollbar in firefox but IE is not supporting the overflow:auto property in tbody. And IE8 does not support css expressions so can u tell me how to the task. thanx! ...

Confused by Exam Question

I have got this question from past exam papers and I can't figure out what it is trying to ask me to say... The question is... Explain the difference between HREF and IMG tags used in HTML document to link content held on other web sites, and describe potential of links for 'passing off' What I don't get is HREF is not a HTML ta...

Update two different values with one AJAX response

I want to update two different values with one ajax-response. <span id="nr1">Change this</span> <span id="nr2">and change this</span> Now I can just change one value, I do like this: document.getElementById('nr1').innerHTML = xmlHttp.responseText; Is it possible to do something like this: document.getElementById('nr1').innerHTML =...

Valid html tag to group definition list items.

I currently have: <dl> <span class="wrapper"> <dt>A title</dt> <dd>A description</dd> </span> <span class="wrapper"> <dt>A title</dt> <dd>A description</dd> </span> </dl> This (or divs instead of spans) doesn't validate. Is there anything I could wrap it with that would? ...

prevent kill frame

instead of asking how to kill frame. i interested to know what technique can be used to prevent an iframe inside a page from been killed by "frame killer" ...

How to load image in order?

Hi, I am working with php. I have images kept in order. When i do query the images comes in order but when they load they does not load in order. The small images load first and then big images. For example I have 5 images. These images should be loaded in order(1,2,3,4,5). But here its not happening. Image 4 loads first, then 2, 1 an...