similar to: manipulate <td>''s and their content by grabbing their classNames

Displaying 20 results from an estimated 7000 matches similar to: "manipulate <td>''s and their content by grabbing their classNames"

2006 Mar 01
2
RE: manipulate <td>''s and their content bygrabbingtheir classNames
> Or... > > var myTDs = new Array(); > $A($("main").childNodes).each(function(tr) > { > $A(tr.childNodes).each(function(td) > { > myTDs.push(td); > }); > }); You''ll probably want to make sure the tr elements are TR tags and the same for the td''s, as empty text nodes are inserted randomly by the gecko engine (and maybe others). Greg
2006 Mar 01
0
RE: manipulate <td>''s and their content by grabbingtheir classNames
Or... var myTDs = new Array(); $A($("main").childNodes).each(function(tr) { $A(tr.childNodes).each(function(td) { myTDs.push(td); }); }); -----Original Message----- From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of troels knak-nielsen Sent: Wednesday, March
2006 Mar 01
3
RE: manipulate <td>''s and their contentbygrabbingtheir classNames
Ahh... Haven''t run up against that yet. Although I also completely disregard Gecko/Safari and other totally crappy, useless, browsers :-). </cynicism> -----Original Message----- From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Gregory Hill Sent:
2006 Mar 01
0
RE: manipulate <td>''s andtheircontentbygrabbingtheir classNames
Oh is Gecko == Mozilla? Oh well, can''t keep them straight. As far as I''m concerned there are only 2 browsers worth developing for, IE6 and FF > 1.07. Yea.. Stupid browser makers. Wish we could pull them all into the town square for a good flogging. -----Original Message----- From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2006 Mar 01
0
RE: manipulate <td>''s and theircontentbygrabbingtheir classNames
> Ahh... Haven''t run up against that yet. Although I also completely > disregard Gecko/Safari and other totally crappy, useless, browsers :-). > > </cynicism> Gecko = Mozilla/Firefox, or was I misremembering the name? Anyhoo, Firefox is where I''ve seen the problem. I wish they''d just be consistent on anything. I was testing some code the other day,
2005 Nov 08
1
Event.observers - I''m totally list - please help
Hello, I need some help on how to use the Event.observers - thank you in advance for your input. <div class="navcontainer"> <ul id="nav"> <li class="button"> <img src="images/spacer.gif" width="20" height="20"> </li> <li class="button"> <img
2006 Apr 05
1
Firefox - Form within a table issue
Hi, Has anyone seen this issue before? Oversimplified Problem: I have a table within which I have a form - <body> <table> <tbody id=''table_body''> <form id=''table_form''> <tr> <td><input type=text name=name value=mandy> <br /> <input type=text name=age value=26> <br
2006 Feb 21
1
Appending new tr into a table
Hi, While working on a project, I ran into the problem of appending <tr>''s to a table in IE 6. I am using new Insertion.Bottom(element, content); for this. This works fine in Firefox but in IE 6, I don''t get an error but nothing appears in the table. I know that IE treats innerHTML of a table as read only, but going through the following post, I assume there is some fix
2014 Apr 18
2
On of mirrors doesn't work properly
Hello! curl 'http://64.235.47.134/?release=6&arch=x86_64&repo=os' <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <html> <head> <title>Index of /</title> </head> <body> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <title>CentOS
2006 May 02
1
Very simple RJS not working in IE
My HTML: <div id="search_div" style="display: none;"> <table> <tbody id=''search_results''> </tbody> </table> </div> My RJS: page.insert_html :bottom, ''search_results'', "<tr><td>Test</td></tr>" page.show "search_div" Now, everytime this gets called, it adds a
2006 Mar 09
1
Rails File Upload w/ Ajax Update?
I''m trying to upload a file, display the upload progress and then update a table with the newly uploaded file. Is there a way to specify a :success handler for form_tag_with_upload_progress such that I have access to the request.response data (in the way I can with link_to_remote)? The :finish JavaScript is being executed but because there is no request object, the table
2006 Jul 22
5
Prototype error. replace content inside a <TR> in IE
Does anyone know of a fix for the issue with prototype and replacing table rows in IE? render :update do |page| page.replace "row_#{params[:id]}", :partial => ''wireless_request/wrequest'', :locals => {:wrequest => @wrequest} end This ends up making IE throw an "rjs error [object error]" Searching around I found a couple of posts about
2008 Jan 22
9
VNIC, non-global zone, dhcp & dns
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body bgcolor="#ffffff" text="#000000"> <font size="-1"><font face="Bitstream Vera Sans"><br>     Hello,<br> <br>     I am trying to have dns <b>automatically</b> configured through
2006 Jul 21
2
Abstract insertion question
Hi, In the following block of Prototype.js when will the catch() block run? I cannot create conditions in Opera where it will run. Thanks, Peter if (this.element.insertAdjacentHTML) { /* IE and Opera */ try { this.element.insertAdjacentHTML(this.adjacency, this.content); } catch (e) { // when will this run? can feature detection be used instead? var tagName =
2006 Feb 02
1
What''s the javascript to submit an AJAX Form?
HI Everyone, How do I form the href on an anchor so I can create a link-style submit for an ajax form? In this snippet, the INPUT generated by #submit_tag works OK, but the anchor results in the AJAX replacing the whole page? Can I make the anchor/href submit the AJAX form as well? Thank you! I have this (list.rhtml): <%= form_remote_tag :url =>
2006 Mar 03
8
How to use the sortable_element tagname option?
I''m having some difficulty adding drag-and-drop sorting to my application. I''m hoping that someone can help me figure out what I''m doing wrong: #view <table> ... <tbody id="item-list-body"> <tr id="view-item-<%= item.id %>"....</tr> </tbody> ... <%= sortable_element(''item-list-body'',
2006 Aug 03
1
OT: Tables and Rails code
This might be off topic, not entirely sure. Basically I''ve created a table to return data and it seems that the column headings repeat along with the entries. So perhaps it''s where I''m placing the code and not so much my HTML. Ideas, solutions appreciated: <h1> Current job openings</h1> <% for position in @positions -%> <div
2006 Feb 02
3
dynamic addition of table rows
Hi, I have a table laid out something like this: <table> <thead> <tr> <th>col 1</th> <th>col 2</th> </tr> </thead> <tbody id="tablebody"> <tr> <td>moo</td> <td>moo</td> </tr> <tr> <td>moo</td> <td>moo</td> </tr>
2006 Aug 17
2
RJS - slower than normal RHTML?
I know that isn''t supposed to be the case, and it usually isn''t, but today, I''ve run across a situation where rendering the same partial through RJS is taking about 5 times longer than rendering the partial in the RHTML. I have in my main RHTML <tbody id="account_transactions"> <%= render :partial =>
2005 Sep 14
13
table sorting/manipulation library?
I have a library I''ve developed that I believe is the most flexible and useful table sorting/striping/row-selecting library around. Big features: Single and multiple-level sort Arbitrary sort criteria (IP address, date, etc.) Works with table headers that are > 1 row or column large Stripe tables and/or enable row selecting Row selecting supports drag-select and SHIFT-click No extra