Wasn't sure if I should post this in the CSS or Javascript section so I just went with Javascript as it's what the code is in. Made a small Javascript game, when the player looses it will populate a table which is set to display: none; with the scores and then using the code below show the table...
document.getElementById('scoresTable').style.display = 'table'; This works fine for me in Opera, Google Chrome and Safari .. but not Firefox or IE.
My program builds several tables using inner HTML. All the tables are displayed only when the program terminates. How can I make it display one table at a time and then wait for a click before displaying the next table?
How can the user obtain a specific result by choosing values from 2 dropdown list. As a result, the value obtained can not be modified by the user. The table of ten rows by ten columns have to be stored in a mysql dbase.. It's certanly possible , but tedious and time-consuming by using a bunch of "if ... then statements". Considered from a table point of view, the final result is the coordinate of a row value and a column value.
I am trying to make a simple image change involving an animated gif using javascript. After 5 seconds, the original image (which is simply a transparent pixel gif) changes to an animated gif.
in the body:
Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">
[Code]...
I know this isn't a problem with the gif itself, because displaying the gif in firefox does not produce any issues. Does anyone know why these problems are occurring in firefox? I'd like not to have to use a broken src link to make it work, and it's weird that that's a way to solve the animation issues.
When you click the text "info" in the column "comments", a row should be displayed below with text information that is related to the "comments". Need also to click the text "Info" again to hide the text information of comments. Problem: I don't know how to display the row when you click one of the comments with the text "info". When clicking one of the link the remaining rows with the text "info" should not be affected. In order words, the part should be independent Need also some help hiding the text information of comments.
There are some things that you also need to take account to: - The amount of data that will be displayed in the table will be changed from day to day. The data is taken from a xml file.- Would like the sourcode to be written in jQuery.- Only html, css and javascript is allowed in this context.- html code in tr and td will be generated by javscript code.The class "firstDataRow" is the added in the tr row that has the text information of commentsPlease remember that the text hide and show is only for temporary.
I want to do is let the user input a file,then read the contents send it to the server, loop over the inputs to query MySQL, return the results and display it in a user friendly,scrollable table?
I am taking a javascript class and I need a script that displays the first 1000 prime numbers in a table with 10 numbers per row. I've been trying on my own for about 4 hours now and am really confused. I just started the class and have only started learning javascript 3 days ago.
I have a code that will fetch out the data from database OnMouseOver. But it is working fine if don't add table on the div which will come OnMouseOver. If i try to show the fetched data in table then the code doesn't work. Here is my code:
<script type="text/javascript" language="JavaScript"> var cX = 0; var cY = 0; var rX = 0; var rY = 0; function UpdateCursorPosition(e){ cX = e.pageX; cY = e.pageY;} function UpdateCursorPositionDocAll(e){ cX = event.clientX; cY = event.clientY;} if(document.all) { document.onmousemove = UpdateCursorPositionDocAll; } else { document.onmousemove = UpdateCursorPosition; } [Code]....
am just trying to learn javascript and my friend gave me a little assignment to try and figure out. i am having trouble figuring it outbasically i just want to display the information in my associative array, into an html table.
var NFC_east = new Array(); NFC_east[0]=["Giants", 16, 0, "Eli Manning"]; NFC_east[1]=["Cowboys", 0, 16, "Tony Romo"];
I have to have only a vertical scroll bar within a table. But when I specify "overflow: auto", it gives both vertical and horizontal scroll bars. Browser used to test is Firefox. How to solve this problem?
I have written a simple webpage that presents a table. A JS function allows the viewer to click on a cell and each cell with the same content has the background color changed to lime green. Each cell that was previously highlighted has the background color changed back to white. This works great with Firefox but does not work correctly with IE. In IE, none of the previously highlighted cells has the background color changed back to white. How can I modify the syntax so that it will work in both browsers? Below is the JS function...
I tried to dynamic add a row to table(tbody) it works in IE and Firefox with the following codes. But when I try to set the "colspan" attribute to the TD, it only take efffect in Firefox but not in IE.
Code: var contentsTable = $("searchResults"); var tr = document.createElement("tr"); var td = document.createElement("td"); td.setAttribute("colspan", "3");
I want to switch entire rows/columns around in a table. Move rows up/down and move columns left/right. This works fine in IE/opera but has a few problems in firefox.
First of all, is this the 'right' way to do this or is there a better way? Firefox doesn't support swapNode().
When moving rows up/down (top one in demo) firefox takes a few clicks to work when it should be one click on the button. I have no idea why. Code:
I use the below code to add or remove a row from a table using javascript. The code works fine on IE however it doesnt work on Firefox, can anybody suggest reasons why this might be doing so?
The id "table1" is the ID of the table I am trying to insert the innerhtml into.
function addRoom() { var row = document.all("table1").insertRow(); var column = row.insertCell(); column.innerHTML = "input type='text' name=txt1>";
I have very limited experience with web development so apologies if this is a stupid question. I'm using some code I found online to show/hide a table using javascript. Everything works as it should EXCEPT that in Firefox rather than having the table auto-size each column to fill up the entire width (900px), the table uses the minimum width for each column necessary to display all of the data. I've tried a number of things (setting overflow, manually specifying div width or table width, etc.) but nothing seems to get it to take up the full width as it does in IE and Chrome. You can see the page / code here: [URL]
The javscript I'm using is: Code: <script type="text/javascript"> function showHide(_myObj,_action) { var _myTableObj = document.getElementById((_myObj.parentNode.id).substring(0,(_myObj.parentNode.id).indexOf('_'))); if (_action == 'show') { .....
I've been working on a project for some time now, and just recently I installed Firefox.
Now, part of the site (which works perfectly in IE6/7) doesn't work in Firefox.
Here is part of the code:
Code:
(I didn't copy all of the code because it's basically the same all the way down)
The main problem is with the link (Firefox apparently doesn't recognize table rows as links). The second problem is with the onmouseover/onmouseout etc handlers (absolutely nothing happens).
just in case you need to know, the code is for a nav bar.
I have a table that I wrote/borrowed a function to clone a row in a table. I want the new row to be cleared of data.
$("#addrow").live("click", function() { //clone last row to variable var row = $('#dataTable tbody>tr:last').clone(true); //clear text boxes
[Code]....
The code to clear the text boxes and selection boxes work great. The code to clear the text from the table cells that do not have a form element do not work at all. The .Client and .Project cells that I want to clear are populated by an ajax call and the .total cell is populated by a function that sums the values the text boxes.