User Profile
Collapse
-
Bounding a Resizable Table
Hey everyone, thanks for your previous help. My new problem is trying bound this table in Firefox so when you resize via the middle bar it doesn't resize to the right to infinity. Basically, I want these two cells to resize within the screen and not past the right edge of the screen. If you resize to the left, it works perfect and I just need the right to do the same. I hope I explained it well, let me know if anyone needs more clarification. ... -
Thanks iam_clint, i got it working now.... -
Thanks a lot pbmods! I think I have it working now, just some minor tweaks are needed. You were a great help to a js newbie like me....Leave a comment:
-
Firefox throws a "cellIndex is not defined" in the error console. Thanks anyways....Leave a comment:
-
pbmods here what i've modified since the last post. Can you please take a look at it and tell me if you see anything wrong? It still doesn't work I don't know how it make it work ='(
...Code:var sResizableElement = "TH"; //Elements to be resized var iResizeThreshold = 8; var iEdgeThreshold = 8; var iSizeThreshold = 20; var sVBarID = "VBar"; var oResizeTarget = null; //position
Leave a comment:
-
Thank you for answer my question mrhoo. I'm really unfamiliar with javascript and the dom and I have another question if you don't mind.
I changed the code to find the cell:
...Code:function TableResize_GetFirstColumnCell(objTable, cellIndex) { var oHeaderCell = document.body.getElementsByTagName('table')[0].getElementsByTagName('tr')[0].getElementsByTagName('*')[0]; return oHeaderCell; }Leave a comment:
-
If I haven't said, "Thank you pbmods" yet, where are my manners =X You're the only one who's taken an interest in helping me figure this out.
I'm still working out the code trying to make it work in Mozilla, and this is what i have so far with your suggestions:
...Code:var sResizableElement = "TH"; //Elements to be resized var iResizeThreshold = 8; var iEdgeThreshold = 8; var iSizeThreshold
Leave a comment:
-
Finding a cell in the first row of a table in Firefox
Hi all, just wanted to verify if this is the correct code for FF. I'm trying to find a cell at column iCellIndex in the first row of the table. I get that oHeaderCell is undefined. Thanks in advance, I must be too tired to catch any syntax errors, but here it is:
...Code:function TableResize_GetFirstColumnCell(objTable, iCellIndex) { var oHeaderCell = objTable.rows[0].cells[iCellIndex]; return oHeaderCell; -
Yeah, I'm getting a buncha MOUSEMOVEs in the textarea everytime I click on the resizing bar.
I guess this is where I have to drill down and figure out what's not working correctly.
...Code:function TableResize_OnMouseMove(objTable, event) { var objTH = null; objTH = objTable.createTHead(objTable, event); //creates a new thead or returns the current thead //alert(objTH);Leave a comment:
-
Okay, is this what you mean?
...Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Table Test</title> <link rel="stylesheet" type="text/css" href="tabletest.css" /> <script type="text/javascript" src="libs/libdetect.js"></script> <script type="text/javascript"
Leave a comment:
-
Hi! Thanks for your response. Sorry for not being more specific. In Mozilla (Firefox) I cannot resize the column. It created the vertical bar (VBar) but it doesn't seem to recognize the event that I want to drag the bar? I'm new to JS and looked it up extensively but come to a dead end. Thanks!Leave a comment:
-
Help with Dynamic Column Resizing in Firefox
I'm trying to get this iframe to dynamically resize by dragging a vertical bar, but it's not working in Mozilla (It originally worked in IE but I've been trying to port it over). Any help will be appreciated.
Here's the resize.js
...Code:var sResizableElement = "TH"; //Elements to be resized var iResizeThreshold = 8; var iEdgeThreshold = 8; var iSizeThreshold = 20; var sVBarID = "VBar";
No activity results to display
Show More
Leave a comment: