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...
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...
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...
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...
I have a layout made up of 4 "interlocking" divs, like so:
-------**********
- -* *
- -* *
- -* *
------- *
++++++ * *
+ + * *
+ + **********
+ + ^^^^^^^^^^
+ + ^ ^
+ + ^ ^
+ + ^ ^
+ + ^ ^
++++++ ^^^^^^^^^^
I want to put borders ar...
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...
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">HTML5</a>
<a href="http://jigsaw.w3.org/css-validator/check/referer/">CSS</a>
</div>
However, when you...
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...
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...
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...
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 ...
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...
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.
...
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...
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...
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...
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...
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...
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...
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>
...