User Profile

Collapse

Profile Sidebar

Collapse
bgraphics2031
bgraphics2031
Last Activity: Jun 11 '07, 06:54 PM
Joined: May 8 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • bgraphics2031
    started a topic Bounding a Resizable Table

    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. ...
    See more | Go to post
    Last edited by bgraphics2031; May 24 '07, 07:43 PM. Reason: added clarification

  • Thanks iam_clint, i got it working now....
    See more | Go to post

    Leave a comment:


  • 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....
    See more | Go to post

    Leave a comment:


  • Firefox throws a "cellIndex is not defined" in the error console. Thanks anyways....
    See more | Go to post

    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
    ...
    See more | Go to post

    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;
    }
    ...
    See more | Go to post

    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
    ...
    See more | Go to post

    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;
    ...
    See more | Go to post

  • 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);
    ...
    See more | Go to post

    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"
    ...
    See more | Go to post

    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!
    See more | Go to post

    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";
    ...
    See more | Go to post
No activity results to display
Show More
Working...