html

How might I use jQuery to move table row elements around in some way?

I have a table like this: <table> <tr> <td>something</td> </tr> <tr> <td>something else</td> </tr> </table> now based on an id that is in the td i want to move the tr's around so that they are in the position held by the id. any ideas on how to do this? ...

IE6 screwing the pooch here... what the hey!

http://sensenich.bythepixel.com/support/faq If you look at the link in IE6 styling appears only when you scroll down. Then when you scroll back up it disappears. How is this possible? Thanks ...

HTML anchoring PHP echo values

Hello guys, I am trying to anchor an echo value. My code is as follows; while ($row = mysql_fetch_assoc($result)){ echo $row(['links']; } I would like to anchor the value of echo $row['links'] in HTML. Thanks guys. ...

why is firefox missing the border on some html tables

i am using 3.5.7 version of firefox and i have the same css used in multiple html tables but there are some examples where parts of the borders are not shown. What makes no sense to me is that the same css on the same page for another html table works fine. Also, the same page in Internet Explorer looks fine from a border point of vi...

Use showModalDialog or jQuery Dialog

When developing an intranet application where the target browser is IE only (IE6 - horrible I know) is there any reason that we shouldn’t use the showModalDialog() feature of IE to display dialog windows? My colleague prefers using showModalDialog() but I prefer using a jQuery plug-in such as FancyBox, FaceBox or ThickBox instead. ...

Ruby Nokogiri Parsing HTML table II

Hi all I have just installed ruby+mechanize. It seems to me that it is posible in ruby nokogiri what I want to do but I do not know how to do it. What about this table? It is just part of html of vBulletin forum site. I tried to keep the html structure but deleted some text and tag attributes. I want to get some details per thread like...

Why do my image background disappear on float: left?

I want to create a navbar with images on each end to make it purty. So, I created the HTML and CSS below and it worked great. My menu items are in a ul/li list. When I style the list to put the items all on one line, the images on the ends disappear. What's up with that? How do I fix it? The culprit is float: left; below. --- test...

PNG Compression

Some PNG images although just 150px x 160px wide have 60KB filesize. I've already run them though optimizers (ImageOptim for Mac) but that didn't help much. Is there any way to compress it further, either manually or using some other tool? 60KB for a normal 150x160 image is really unacceptable and I can't use JPG or GIF there because I...

is there any plugin that can link a list of textboxes to a select dropdown and keep them in sync

i have a list of textboxes in a column of a html table. The table has an "Add" and "Remove" button next to it which (when clicked) will add new rows or delete existing rows. I would like to have a dropdown select on my page that is essentially linked to this array of textboxes, listing out the values of the list of textboxes so: if i ...

Alert the count of <li>s in an adjacent <div> to a button being clicked.

Hey, This is my first post but this website has been very useful so here goes... Oh and im just a beginner ;-) I have a button (a div with a class) and another div inside an element side by side. Inside the second div I have a ul and a number of li's that will dynamically change. when the button is clicked, I need the count of li's in...

Is this html necessary at all?

<link rel="shortcut icon" href="/favicon.ico"> <link rel="Bookmark" href="/favicon.ico"> I saw it somewhere,but is <link rel="Bookmark".. necessary? ...

CSS floating issue

I know this is a srs beginner question, but here goes: I am trying to get a box, with an icon in the top left corner, and all the content of that box will be to the right of the icon. This is the code I am using: <div class="statsbox float_left"> <img src="images/chart_bar.png" class="float_left"> <div class="float_left"> ...

Select everything APART from a certain element of ID in Jquery

Hello, I am trying to highlight a certain set of elements on a page by dimming everything else on the page. The below Div and all its child elements I would like to keep full opacity and the rest, I would like to dim to about 50%. This Div just sits in the main body of the page. <div id="basket"> <div id="basket-contents"> ...

HTML Link questions

When creating a link i need to find out if i can do the following: <a href="page.html" onclick="javascript:ajax();">blah</a> I want it so that if the user clicks on it, it will get the content as we described using ajax however, i want the search engine to be able to follow the link so that we still get maximum indexing. I'm pretty s...

Change select's class based on selected option's class

I have a page that contains numerous <select> elements. What I'm trying to achieve is to ensure that if a <select>'s selected <option> has a class called italic, then the <select> then has the italic class added (i.e. jQuery.addClass('italic')). If it doesn't, then the italic class is removed from the <select> to ensure other <option> e...

Problem in form validation with JavaScript

The editvalidate() function is not getting called at all: Please suggest why. What's the remedy? <script type="text/javascript"> function editvalidate() { var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/; var numericExpression = /^[0-9]+$/; if(document.editprofile.userid.value == '' || document.editprofile...

How to add a class to a table cell (td) in reStructuredText

I am trying to figure out if there any syntax where a class can be applied to a td in reStructuredText (RST), rather than a span around the table cell contents. The closest I came was this: .. role:: custom .. csv-table:: Frozen Delights! :header: "Treat", "Quantity", "Description" :widths: 15, 10, 30 "Albatross", 2.99, "On ...

Reroute old content (.html/.php etc.) to Ruby on Rails

Hi together, I have switched to Ruby on Rails and my current problem is to reroute the old contents like XXX/dummy.html or XXX/dummy.php in RoR. What exactly is the best solution for isolated content (XXX/onlyinstance.html) content which has a internal structure like XXX/dummy1.html, XXX/dummy2.html http://guides.rubyonrails.org/...

Thumbs up and down Javascript code

Hi, i have been looking for a javascript code for the thumbs up and down system to put in my blogger site. I've seen some of the help resources, but it all required the new layout, whereas i'm using the old one. The example of the thumbs up and down buttons are like in the following website, http://textsfromlastnight.com/ Where peopl...

Speed up web site loading

I am looking for the best way to speed up the load time of my js. The problem is that I am working with a very large site that uses the jquery framework, and what's happening is because the site is also loading, facebook connect, addthis sharing, google analytics and another tracking code, the jquery is delayed a few seconds, and certai...