html

Aborting (HTML) Image Downloads

I have a variety of image sets that I'm displaying on a web page (say 50 images per set). A user may select a set to display from a list, which is loaded via a jQuery ajax call to remove the old img tags and add the new ones. What I'm seeing is that all of the requests for the first batch of stale images still get pulled from the ser...

How can I get a jquery css container to pop up letting the user know data was successfully entered?

When a user inserts data into a form and then submits it, it goes to my php script and inserts the data. The script will return a value letting the user know if the data was inserted or not. Since I am using JQuery, I have no idea how to do this. Can someone please point me in the right direction? All I'm after here is a nice, neat littl...

Why is emspace or enspace breaking the CSS font line-height in the HTML?

Confused about how the browser - any browser - because it's happening in all, goes about calculating emspace and enspace. Here's what's happening: I am using a free font called Gentium. font-size is 16px line-height is 19px All looks fine. Non breaking spaces -   not a problem - that exists in the font as a character. thinspace &th...

The "select" element and cross browser transmitting of the data

I've always provided a value="something" for my option elements within a select element. Like so <select> <option value="true">True</option> </select> Now that I have made one with countries, there is a lot of extraneous data in there. I'm pretty sure if I remember correctly, that Firefox will send the text between the tags if a v...

How can I disable Text Selection temporarily using JavaScript?

Hi there all, this is a bit of a specific question so I'll get right to the point. I'm working on a short and simple drag and drop routine for part of a web application, and although the dragging and dropping bit works fine, the site goes all ugly-tastic during the operation because the browser still does the default operation and works...

How to replace inline text with images using CSS.

Hi, I'd like to replace the text ("Word 1 Word2 Word3 Word4") in the following HTML with images, using CSS. I'd like the images to appear in-line horizontally too, as the text would. <div id="aSentence"> <p> <span id="word1">Word1&nbsp </span> <span id="word2">Word2&nbsp </span> <span id="word3">Word3&nbsp ...

centering divs does not work as it should

I have been looking around for solutions, and tried to implement what is often suggested, but I am not managing to horizontally center a div within another div. With my CMS I want to show up to four info blocks towards the bottom of the page. So, I am trying to put between zero and four divs within two container divs. The four divs get ...

Do html entities in meta tags influence indexing?

I was wondering if using HTML entities in meta tags (like keywords and description) is the best way to go? Does it influence the indexing from search engines? ...

Allow users to change font size in a webpage

Hi everyone, I would like to be able to change the size of text in a web page, I guess jQuery can be used, but I have no experience in javascript. Another problem is that the webpage is a phtml file, and multiple php echo commands are used. And the page is made up of multiple phtml files. An example of the page is here: http://nordsch...

How to hide elements which has no next elements with a certain class?

i have the following html , and i want to hide all lsHeader which has no next elements with class contact using jquery. <div id="B" class="lsHeader">B</div> <div id="contact_1" class="contact"> B.Contact1</b/> <div id="contact_2" class="contact"> B.Contact2</b/> <div id="contact_3" class="contact"> B.Contact3</b/> <div id="conta...

check if div contains an element in jQuery

I'm bulding some drag and drop widgets in jQuery, once they've been dropped I need to check if my drag and droppable widget are inside another div. <div id="droptarget"> <div class="widget">I'm a widget!</div> </div> I've had a look at $('#droptarget').each but can't seem to figure it out. Any ideas? ...

Is there a javascript compass html widget?

For a project I'm working on, the user needs to enter a direction, like "north" (ie N), NE and so forth. It'd be nice to have a little compass on the webpage that the user could click on various points on the compass and it would represent the appropriate direction. Is there some existing javascript html snippet that does this? ...

AJAX Validation Idea - Complete with ValidationSummary & ValidationMessage

I have been looking at many ASP.Net MVC client side validation ideas including xVal. This doesn't provide a ValidationSummary at the moment so I chose to do an AJAX post which loops through ModelState errors and update a DIV with the error messages on a successful AJAX post. The problem with this is your ValidationMessage * next to t...

Trouble with removing table rows added with jQuery

I'm a jQuery newbie, and I have trouble with a little script I created. First of all, I have a table with 5 default rows. These are sortable, using a plugin called "Table Drag'n'Drop". A column in that table consists of a linked X which removes the table row when clicked. The table looks like this: <table id="tracks"> <thead> <t...

Changing the look of textfields

How do I change my textfields so they look more like the Twitter login textfields or even the Title textfield for Stackoverflow when you post a new question. I currently just use: <%= text_field_tag 'name', @name, :size => 30 %> ...

image above flash element

Hello, I have a flash embedded, it is required for uploading a file and i want to place a image over it. Image1 Shows the expected result: http://i42.tinypic.com/2jcfshv.png but however i dont know how to achieve it, it looks like this: Image2 Shows the actual result rendered by browser: http://i40.tinypic.com/2hnp848.png This ...

Can I disallow web browser autocomplete?

You know how browsers autocomplete text boxes? Apparently this confuses users. They see it as a short list with only limited options. Does anyone know how to disable autocomplete? ...

iphone mail won't display javascript in attached html files?

When I attach an HTML file to an email and then email it to my iphone, I can view the file perfectly. However, none of the javascript in the file seems to run - not even simple stuff like showing / hiding divs triggered by "onClick" events. Is there any way to make javascript run on attached files in the iphone mail application? ...

Code Separation Paradox: Create HTML Tree from Multi-Dimensional Array AND Keep the HTML Outside of the Recursive Function

This working code seems to be the typical solution to this problem. It takes a multi-dimensional array that holds categories and their subcategories (with no implied limitation on how many levels deep it goes) and creates an HTML unordered list from it, echoing it out onto the page from inside a recursive function. Sub-levels are trave...

HTML Tables with lots of CSS

I am building advanced HTML tables with lots of CSS in them, what are the best tools out there for building advanced HTML CSS tables that could include dynamic elements like AJAX driven features (jQuery). I use Dreamweaver and Eclipse but they just touch the surface of having a really great tool set to build with. If you use a great tool...