html

jQuery get <td> text from <tr> id, <td> is dynamicly generated so I don't know how may or if any

Ok I have a jQuery function already to perform the task I need but is there a way to loop through the cells of a specific with the id="generated_rows" <table> <tr id="generated_rows"> <td class="row_class" id="row_id_1">text 1</td> <td class="row_class" id="row_id_2">text 2</td> <td class="row_class" id="row_id_3">text 3</td> <td clas...

Safe Web Text Formatting

I am building a web application that will need to allow users to save formatted text to a database. Basically they just need to be able to change font color, font background color, font size, bold, italics, and underline. I would like to use something that I can just attach to a text area to make a formatting bar show up. It would be n...

Setting proportional image widths for browser resize

If I have an image combined with a style: <img class="test" src="testimage.jpg" /> img.test { width: 50%;} The image resizes to 50% the width of the box containing it, as well as resizing vertically, maintaining the aspect ratio. This seems to require the enclosing DIV to be set to a particular width and height value. But if you wan...

Parsing the National Threat Level XML File with jQuery

I'm trying to use jQuery to parse the DHS Threat Level that they have in their XML file, but I can't seem to get it to work. I'm very new with Javascript and non-presentational jQuery, so I'm probably missing something obvious. This is the XML file: <?xml version="1.0" encoding="UTF-8" ?> <THREAT_ADVISORY CONDITION="ELEVATED" /> Thi...

Creating interlocking, irregular borders with CSS.

I have a layout made up of 4 "interlocking" divs, like so: -------********** - -* * - -* * - -* * ------- * ++++++ * * + + * * + + ********** + + ^^^^^^^^^^ + + ^ ^ + + ^ ^ + + ^ ^ + + ^ ^ ++++++ ^^^^^^^^^^ I want to put borders ar...

Javascript image scroller not working with DOCTYPE

Hi there guys. I've been searching the net hard for some javascript code that allows me to automatically scroll images non-stop horizontally on a webpage. After a long time searching, I finally came across something that was close enough. I then customised it as much as possible to make it do exactly what I wanted it to do. This testi...

Check for Valid HTML link with SESSIONS

One of the first things I like to do when I make a site is to put in links at the bottom of the page to check for valid HTML and CSS: HTML5  •   CSS <div> <a href="http://validator.w3.org/check?uri=referer"&gt;HTML5&lt;/a&gt; <a href="http://jigsaw.w3.org/css-validator/check/referer/"&gt;CSS&lt;/a&gt; </div> However, when you...

How to display HTML <FORM> as inline element?

This is probably a basic html/css question... I have a simple one-button form that I would like to display inline inside paragraph text. <p>Read this sentence <form style='display:inline;'> <input style='display:inline;' type='submit' value='or push this button'/> </form>. </p> Even though fo...

Current image scroller replacement with JavaScript library

I am currently using javascript to implement a javascript scroller on my webpage. However, this is not compatible with any DOCTYPEs and instead displays a stationary picture. I was wondering if any one had any idea how I would implement this using jQuery, Mootools or any other such library. The sites are detailed below with and without a...

Should I use Google's JSAPI in production code?

Possible duplicate of: should-i-link-to-google-apis-cloud-for-js-libraries also many other discussions, including: http://stackoverflow.com/questions/547384/where-do-you-include-the-jquery-library-from-google-jsapi http://stackoverflow.com/questions/1014203/best-way-to-use-googles-hosted-jquery-but-fall-back-to-my-hosted-library-on-go...

managing html table with tableSorter jquery plugin

I have a sample html table like this <table class="statisticsTable" id="myTable"> <tr> <th colspan="6">This is heading</th> </tr> <thead> <tr> <th>Member Num</th> <th>Member First Name</th> <th>Member Last Name</th> <th>Date of Birth</th> <th>Age</th> <th>Relationship</th> </tr> </thead> <tbody> <tr> <td ...

change images using jQuery?

I'm trying to make an image change depending on the list-item you hover on. I have a container containing an ul. I have three list-items (a small horizontal navigation). The list items are sitting on the bottom of the container which leaves an empty space on top of the li's. I want the empty space above the li's to change images dependi...

How to insert a draw box in my html code?

I'm creating a web page, and I can't (with html code) add a draw box*? *It's a box, like a Microsoft Paint, only with one brush, where the user make a draw by a click draged. ...

How can I get an element by name with jquery?

I have a table column I am trying to expand and hide. jQuery seems to hide the column when I select it by class but not by element name. Why does $(".bold").hide(); <--This work $("tcol1").hide(); <--This NOT work?? The second column has the same name and id for all rows:. <tr> <td>data1</td> <td name="tcol1" id="tco...

Floated List Margin in CSS

I have a div that is 320px wide. I'm floating list items to the left, each with a width of 100px. I then want to have a right margin of 10px to the right of each list item. All other margins and padding has been removed. So, I bascially want 3 list items per row before it goes onto the next line. But because there is a margin-right on t...

Handling 'If' statements in .aspx files in asp.net

Hi, One of my code behind file is sending some boolean value (read from the data base) to the corresponding.aspx file. I want to change the css style class of the container division based on this boolean value. I tried to do it the following way, code behind file: protected void Page_Load(object sender, EventArgs e) { Result.I...

Paginated + Ajax table in Django

I simply want to show off a model in a table that is paginated and sortable on the various fields. Bonus points if the pagination and sorting doesn't cause a page reload. Double bonus points if the pagination is done with infinite scrolling. I'm sure everyone here has written and rewritten this functionality. Is there a simple middlew...

JS/Flash - Drag anchor containing img vs Drag img w/out anchor - How to get the img inside the anchor?

Cryptic title, but it's hard to explain. With Firefox, head over to http://images.google.com do a random search, and then drag the first search result to the URL bar. You'll see it it goes to the page that had the image anchor. Then click the "see full size image" link, and then drag the image to the address bar. In the first example...

Unsafe Html

I'm building a simple web based forum application. I want to allow users to include html in their posts, but would like to stop any cross site scripting. My current stratagy is to not allow any "script" tags, to only allow "style" and "href" attributes on any tag, and to not allow "href" values to start with "javascript:". Is there anyth...

CSS strikethrough different color from text?

The HTML elements del or strike, and the CSS text-decoration property with a value line-through, may all be used for a text strike-through effect. Examples: <del>del</del> ...gives: del <strike>strike</strike> ....gives: strike <span style='text-decoration:line-through'> text-decoration:line-through </span> ...