Displaying 20 results from an estimated 6000 matches similar to: "Firefox - Form within a table issue"
2006 Mar 01
1
manipulate <td>''s and their content by grabbing their classNames
Hi Guys,
What''s the best way to grab all <td>''s in a particular table and manipulate them?
Here''s the problem definition -
I have a table that has ''n'' <tr>''s.
Each <tr> has couple of <td>''s and the first <td> has an image.
By default, each <td> has a ''x'' class and image src
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
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
2005 Aug 04
12
Sortable table
Hi guys,
I have a question that I haven''t been able to find an answer to yet. I''m
hoping I can find an answer here. I would like to be able to allow a user
to visibly sort the order of rows of a table. I have a table that is used
to display tabular data. It allows users to dynamically add rows of tabular
data to an existing table. I would like to enable the user to be
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 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 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 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>
2007 Apr 04
2
Simple RJS Calls Not Working
I have a simlple view:
<h2>Tags</h2>
<% unless @recipe.tags.empty? %>
<table>
<tbody id="tags">
<%= render :partial=>''tags/tag'', :collection=>@recipe.tags %>
</tbody>
</table>
<% end %>
<% form_remote_tag :url=>tags_path(@recipe) do%>
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'',
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
2006 Jul 14
3
Rails newbie: How does the submit_tag work?
I would appreciate any and all input. The Agile book is not useful in
this context. :o(
As near as I can tell, it doesn''t work at all.
I would expect that clicking on the [Next Question] button in the
browser would fire the next_question method in the current controller.
Instead, it (apparently) does nothing.
The tag in question
<%= submit_tag ''Next
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 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 =>
2005 Sep 20
1
Tabular structure where you can use keyboard to navigate up and down
Need some help in creating a table structure such that I can use the keyboard up/down keys to move through the rows.
Can anyone give me a pointer to this?
So, if I have 5 row in the table, I want to be able to use my keyboard to go up and down and select every row (without using the mouse).
Thanks,
Mandy.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Aug 09
0
Scriptaculous blind up effect not working from innerhtml in IE? Help please.
I have some tables wrapped in divs, when you
click them, they are hidden and then some of the data
is added as a div into another div by way of
innerhtml. When you you click on these new divs that
are in the html, they should go away. This works fine
in Firefox but doesn''t work at all in IE. Does anyone
have any ideas? The weird thing is if I take the
source of the html after the
2006 Mar 01
9
ajax doesn''t show at the right place
Hi,
I use link_to_remote to create a link to trigger an
ajax, things work fine, a new rhtml is created,
however, the newly created rhtml doesn''t replace my
old zone, it shows instead on top of my old
zone...Does someone know why???
my code is like
<table>
<tr><td colspan="2"><a href="#" onclick="new
Ajax.Updater(''zone1'',
2008 Jan 22
3
dynamic table/adding rows in IE using 'new Element("tr")'
I''m trying to create a few menus using prototype.js "insert" function.
I create a table using ''new Element("table")'', insert it in DIV and
then add links - one row per link (or the other way round - create a
full table, then insert it).
I initially wrote a code that worked fine in Firefox, but did not in
IE (currently testing with 6.0):
function
2005 Oct 04
5
sorting
I just want to confirm that it''s *not* possible to sort <tr>s in
tables....
Jamie
2005 Oct 25
2
Content-Type: application/rdf+xml
Hi,
I am trying to parse the response received from a rdf file using DOM.
However, I am not able to get anything in the responseXML. It always returns null.
Following is the content type I receive from the server.
Content-Type: application/rdf+xml
Can someone let me know how I can receive this as an xmlObj?
Thanks in advance,
Mandy.
_______________________________________________