Foros del Web » Programando para Internet » Javascript » Frameworks JS »

Problema con document.ready

Estas en el tema de Problema con document.ready en el foro de Frameworks JS en Foros del Web. Hola a todos, vereis, estoy haciendo una aplicacion web en php, y en una pagina muestro una tabla con informacion, entonces al pasar por determinados ...
  #1 (permalink)  
Antiguo 06/04/2010, 03:25
 
Fecha de Ingreso: octubre-2008
Mensajes: 17
Antigüedad: 15 años, 6 meses
Puntos: 0
Problema con document.ready

Hola a todos, vereis, estoy haciendo una aplicacion web en php, y en una pagina muestro una tabla con informacion, entonces al pasar por determinados campos de la tabla salia una ventana emergente (todo hecho con javascript). Luego fije las cabecera de la tabla y una columna, para que solo se desplazase la informacion sin perder referencia de lo que es cada cosa, y esto tambien usa javascript, el problema es, que si funciona una la otra no, y viceversa, y todo ello por la siguiente funcion:

$(document).ready(function(){
fnAdjustTable();
});

Si la dejo comentada funciona lo de fijar la cabecera y eso de la tabla, y si la descomento funcionan las ventanas emergentes pero la tabla se descuadra y cambia algo la apariencia.
¿Porque puede ser?

Muchas gracias.
  #2 (permalink)  
Antiguo 06/04/2010, 05:13
Avatar de caricatos
Moderador
 
Fecha de Ingreso: abril-2002
Ubicación: Torremolinos (Málaga)
Mensajes: 19.607
Antigüedad: 22 años
Puntos: 1284
Tema movido desde javascript

document.ready no existe en javascript estándar. Creo que deberías especificar la librería que usas

Saludos
__________________
Por favor:
No hagan preguntas de temas de foros en mensajes privados... no las respondo
  #3 (permalink)  
Antiguo 06/04/2010, 05:40
 
Fecha de Ingreso: octubre-2008
Mensajes: 17
Antigüedad: 15 años, 6 meses
Puntos: 0
Respuesta: Problema con document.ready

Pues no tengo ni idea... es que en esto de javascript estoy muy verde.. alguien me puede ayudar???

Un saludo
  #4 (permalink)  
Antiguo 06/04/2010, 09:02
Avatar de mayid
Colaborador
 
Fecha de Ingreso: marzo-2009
Ubicación: BsAs
Mensajes: 4.014
Antigüedad: 15 años, 1 mes
Puntos: 101
Respuesta: Problema con document.ready

Esto es jQuery:

$(document).ready(function(){
fnAdjustTable();
});

Tu funcion se lee en una segunda pasada, porque esta dentro de document.ready
  #5 (permalink)  
Antiguo 06/04/2010, 23:35
 
Fecha de Ingreso: octubre-2008
Mensajes: 17
Antigüedad: 15 años, 6 meses
Puntos: 0
Respuesta: Problema con document.ready

Pero es que pasa algo muy raro, y es que si le quito el contenido y lo dejo asi:

$(document).ready();

me da los mismos problemas que si dejo la funcion dentro, entonces no se por donde puede venir el problema.. no lo entiendo..
  #6 (permalink)  
Antiguo 07/04/2010, 04:37
 
Fecha de Ingreso: diciembre-2009
Ubicación: Misiones
Mensajes: 867
Antigüedad: 14 años, 5 meses
Puntos: 65
Respuesta: Problema con document.ready

postea tu html y tu script jquery, pero no php, que sea la salida html
  #7 (permalink)  
Antiguo 07/04/2010, 10:32
Avatar de mayid
Colaborador
 
Fecha de Ingreso: marzo-2009
Ubicación: BsAs
Mensajes: 4.014
Antigüedad: 15 años, 1 mes
Puntos: 101
Respuesta: Problema con document.ready

Cita:
$(document).ready();
Eso no tiene sentido. Dentro de ready tiene que llamarse a una funcion. Las mas de las veces, anonimas. Pero por si misma, esa linea no hace nada.

Publica lo que pide Dany, por favor.
  #8 (permalink)  
Antiguo 08/04/2010, 00:30
 
Fecha de Ingreso: octubre-2008
Mensajes: 17
Antigüedad: 15 años, 6 meses
Puntos: 0
Respuesta: Problema con document.ready

Hola, perdonad no haber contestado ayer, un dia complicado... exactamente que es lo que quereis que postee? lo que os he dicho de document.ready esta en un archivo .js con las funciones javascript que uso y la salida html a que os referis?

Gracias.
  #9 (permalink)  
Antiguo 08/04/2010, 04:17
 
Fecha de Ingreso: diciembre-2009
Ubicación: Misiones
Mensajes: 867
Antigüedad: 14 años, 5 meses
Puntos: 65
Respuesta: Problema con document.ready

para ver la tabla ¿no dijiste que no funcionaba algunas cosas de la tabla?

publica todo lo posible (html y jquery) sino se complica adivinar el porqué
  #10 (permalink)  
Antiguo 08/04/2010, 06:36
 
Fecha de Ingreso: octubre-2008
Mensajes: 17
Antigüedad: 15 años, 6 meses
Puntos: 0
Respuesta: Problema con document.ready

Uf, estaba escribiendo un post enorme con todo el codigo y de repente me ha venido la idea feliz y lo he arreglado, jaja, el problema era un atributo overflow, que estaba a hidden, y si dejaba el script que os puse comentado, funcionaba, pero si lo descomentaba no, lo he cambiado a auto y he descomentado el script, y ya funciona... jeje

Gracias por contestar :)
  #11 (permalink)  
Antiguo 08/04/2010, 07:00
 
Fecha de Ingreso: octubre-2008
Mensajes: 17
Antigüedad: 15 años, 6 meses
Puntos: 0
Respuesta: Problema con document.ready

Mi gozo en un pozo... jeje, parecia que si pero no, la mejora me cego, pero luego me he dado cuenta de que seguimos mas o menos igual.
Esta es la funcion conflictiva
Código:
$(document).ready(function(){
  fnAdjustTable();
});
Si la comento, funciona la tabla con scroll fijando la cabecera y una columna, si la descomento, funcionan las ventanas emergentes que surgen al pasar por encima de determinadas celdas de la tabla pero el scroll no sale bien y ademas no coge los estilos correctos. Ambas cosas usan javascript.

Este es el codigo que controla lo del scroll:

Código:
var superTable = function (tableId, options) {
    /////* Initialize */
    options = options || {};
    this.cssSkin = options.cssSkin || "";
    this.headerRows = parseInt(options.headerRows || "1");
    this.fixedCols = parseInt(options.fixedCols || "0");
    this.colWidths = options.colWidths || [];
    this.initFunc = options.onStart || null;
    this.callbackFunc = options.onFinish || null;
    this.initFunc && this.initFunc();

    /////* Create the framework dom */
    this.sBase = document.createElement("DIV");
    this.sFHeader = this.sBase.cloneNode(false);
    this.sHeader = this.sBase.cloneNode(false);
    this.sHeaderInner = this.sBase.cloneNode(false);
    this.sFData = this.sBase.cloneNode(false);
    this.sFDataInner = this.sBase.cloneNode(false);
    this.sData = this.sBase.cloneNode(false);
    this.sColGroup = document.createElement("COLGROUP");

    this.sDataTable = document.getElementById(tableId);
    this.sDataTable.style.margin = "0px"; /* Otherwise looks bad */
    if (this.cssSkin !== "") {
        this.sDataTable.className += " " + this.cssSkin;
    }
    if (this.sDataTable.getElementsByTagName("COLGROUP").length > 0) {
        this.sDataTable.removeChild(this.sDataTable.getElementsByTagName("COLGROUP")[0]); /* Making our own */
    }
    this.sParent = this.sDataTable.parentNode;
    this.sParentHeight = this.sParent.offsetHeight;
    this.sParentWidth = this.sParent.offsetWidth;

    /////* Attach the required classNames */
    this.sBase.className = "sBase";
    this.sFHeader.className = "sFHeader";
    this.sHeader.className = "sHeader";
    this.sHeaderInner.className = "sHeaderInner";
    this.sFData.className = "sFData";
    this.sFDataInner.className = "sFDataInner";
    this.sData.className = "sData";

    /////* Clone parts of the data table for the new header table */
    var alpha, beta, touched, clean, cleanRow, i, j, k, m, n, p;
    this.sHeaderTable = this.sDataTable.cloneNode(false);
    if (this.sDataTable.tHead) {
        alpha = this.sDataTable.tHead;
        this.sHeaderTable.appendChild(alpha.cloneNode(false));
        beta = this.sHeaderTable.tHead;
    } else {
        alpha = this.sDataTable.tBodies[0];
        this.sHeaderTable.appendChild(alpha.cloneNode(false));
        beta = this.sHeaderTable.tBodies[0];
    }
    alpha = alpha.rows;
    for (i=0; i<this.headerRows; i++) {
        beta.appendChild(alpha[i].cloneNode(true));
    }
    this.sHeaderInner.appendChild(this.sHeaderTable);

    if (this.fixedCols > 0) {
        this.sFHeaderTable = this.sHeaderTable.cloneNode(true);
        this.sFHeader.appendChild(this.sFHeaderTable);
        this.sFDataTable = this.sDataTable.cloneNode(true);
        this.sFDataInner.appendChild(this.sFDataTable);
    }

    /////* Set up the colGroup */
    alpha = this.sDataTable.tBodies[0].rows;
    for (i=0, j=alpha.length; i<j; i++) {
        clean = true;
        for (k=0, m=alpha[i].cells.length; k<m; k++) {
            if (alpha[i].cells[k].colSpan !== 1 || alpha[i].cells[k].rowSpan !== 1) {
                i += alpha[i].cells[k].rowSpan - 1;
                clean = false;
                break;
            }
        }
        if (clean === true) break; /* A row with no cells of colSpan > 1 || rowSpan > 1 has been found */
    }
    cleanRow = (clean === true) ? i : 0; /* Use this row index to calculate the column widths */
    for (i=0, j=alpha[cleanRow].cells.length; i<j; i++) {
        if (i === this.colWidths.length || this.colWidths[i] === -1) {
            this.colWidths[i] = alpha[cleanRow].cells[i].offsetWidth;
        }
    }
    for (i=0, j=this.colWidths.length; i<j; i++) {
        this.sColGroup.appendChild(document.createElement("COL"));
        this.sColGroup.lastChild.setAttribute("width", this.colWidths[i]);
    }
    this.sDataTable.insertBefore(this.sColGroup.cloneNode(true), this.sDataTable.firstChild);
    this.sHeaderTable.insertBefore(this.sColGroup.cloneNode(true), this.sHeaderTable.firstChild);
    if (this.fixedCols > 0) {
        this.sFDataTable.insertBefore(this.sColGroup.cloneNode(true), this.sFDataTable.firstChild);
        this.sFHeaderTable.insertBefore(this.sColGroup.cloneNode(true), this.sFHeaderTable.firstChild);
    }

    /////* Style the tables individually if applicable */
    if (this.cssSkin !== "") {
        this.sDataTable.className += " " + this.cssSkin + "-Main";
        this.sHeaderTable.className += " " + this.cssSkin + "-Headers";
        if (this.fixedCols > 0) {
            this.sFDataTable.className += " " + this.cssSkin + "-Fixed";
            this.sFHeaderTable.className += " " + this.cssSkin + "-FixedHeaders";
        }
    }

    /////* Throw everything into sBase */
    if (this.fixedCols > 0) {
        this.sBase.appendChild(this.sFHeader);
    }
    this.sHeader.appendChild(this.sHeaderInner);
    this.sBase.appendChild(this.sHeader);
    if (this.fixedCols > 0) {
        this.sFData.appendChild(this.sFDataInner);
        this.sBase.appendChild(this.sFData);
    }
    this.sBase.appendChild(this.sData);
    this.sParent.insertBefore(this.sBase, this.sDataTable);
    this.sData.appendChild(this.sDataTable);

    /////* Align the tables */
    var sDataStyles, sDataTableStyles;
    this.sHeaderHeight = this.sDataTable.tBodies[0].rows[(this.sDataTable.tHead) ? 0 : this.headerRows].offsetTop;
    sDataTableStyles = "margin-top: " + (this.sHeaderHeight * -1) + "px;";
    sDataStyles = "margin-top: " + this.sHeaderHeight + "px;";
    sDataStyles += "height: " + (this.sParentHeight - this.sHeaderHeight) + "px;";
    if (this.fixedCols > 0) {
        /* A collapsed table's cell's offsetLeft is calculated differently (w/ or w/out border included) across broswers - adjust: */
        this.sFHeaderWidth = this.sDataTable.tBodies[0].rows[cleanRow].cells[this.fixedCols].offsetLeft;
        if (window.getComputedStyle) {
            alpha = document.defaultView;
            beta = this.sDataTable.tBodies[0].rows[0].cells[0];
            if (navigator.taintEnabled) { /* If not Safari */
                this.sFHeaderWidth += Math.ceil(parseInt(alpha.getComputedStyle(beta, null).getPropertyValue("border-right-width")) / 2);
            } else {
                this.sFHeaderWidth += parseInt(alpha.getComputedStyle(beta, null).getPropertyValue("border-right-width"));
            }
        } else if (/*@cc_on!@*/0) { /* Internet Explorer */
            alpha = this.sDataTable.tBodies[0].rows[0].cells[0];
            beta = [alpha.currentStyle["borderRightWidth"], alpha.currentStyle["borderLeftWidth"]];
            if(/px/i.test(beta[0]) && /px/i.test(beta[1])) {
                beta = [parseInt(beta[0]), parseInt(beta[1])].sort();
                this.sFHeaderWidth += Math.ceil(parseInt(beta[1]) / 2);
            }
        }

        /* Opera 9.5 issue - a sizeable data table may cause the document scrollbars to appear without this: */
        if (window.opera) {
            this.sFData.style.height = this.sParentHeight + "px";
        }

        this.sFHeader.style.width = this.sFHeaderWidth + "px";
        sDataTableStyles += "margin-left: " + (this.sFHeaderWidth * -1) + "px;";
        sDataStyles += "margin-left: " + this.sFHeaderWidth + "px;";
        sDataStyles += "width: " + (this.sParentWidth - this.sFHeaderWidth) + "px;";
    } else {
        sDataStyles += "width: " + this.sParentWidth + "px;";
    }
    this.sData.style.cssText = sDataStyles;
    this.sDataTable.style.cssText = sDataTableStyles;

    /////* Set up table scrolling and IE's onunload event for garbage collection */
    (function (st) {
        if (st.fixedCols > 0) {
            st.sData.onscroll = function () {
                st.sHeaderInner.style.right = st.sData.scrollLeft + "px";
                st.sFDataInner.style.top = (st.sData.scrollTop * -1) + "px";
            };
        } else {
            st.sData.onscroll = function () {
                st.sHeaderInner.style.right = st.sData.scrollLeft + "px";
            };
        }
        if (/*@cc_on!@*/0) { /* Internet Explorer */
            window.attachEvent("onunload", function () {
                st.sData.onscroll = null;
                st = null;
            });
        }
    })(this);

    this.callbackFunc && this.callbackFunc();
};
  #12 (permalink)  
Antiguo 08/04/2010, 07:00
 
Fecha de Ingreso: octubre-2008
Mensajes: 17
Antigüedad: 15 años, 6 meses
Puntos: 0
Respuesta: Problema con document.ready

Y este el codigo que controla las ventanas emergentes:
Código:
enableHideToggablesOnBodyClick = false;
function toogle(C, B) {
    toggableMouseOver();
    enableHideToggablesOnBodyClick = true;
    if (C) {
        var D = document.getElementById(C);
        var A = D.style.display == "none";
        if (B) {
            if (!A) {
                return
            } else {
                A = true
            }
        }
        if (D) {
            D.style.display = A ? "" : "none"
        }
        if (A) {
            hideToggables(C)
        }
    }
    return false
}
function hideToggables(D) {
    if (!enableHideToggablesOnBodyClick) {
        return
    }
    var E = document.getElementsByTagName("div");
    for (var C = 0; C < E.length; C++) {
        var B = E[C];
        var F = "_toggable";
        var A = B.id;
        if ((A != "") && (A != "undefined") && (A != D) && (A.indexOf(F) > 0) && (A.indexOf(F) == (A.length - F.length))) {
            B.style.display = "none"
        }
    }
}
toogableCloseToken = false;
toogableSeconds = 1;
function toggableMouseOver() {
    toogableCloseToken = false
}
function toggableMouseOut() {
    toogableCloseToken = true;
    window.setTimeout("toggableCloseAll()", toogableSeconds * 10)
}
function toggableCloseAll() {
    if (toogableCloseToken) {
        hideToggables()
    }
}
function SetIframeSrc(C, B) {
    var A = document.getElementById(C);
    if (A) {
        if (!A.src || (A.src == "")) {
            A.src = B
        }
    }
}
/*
$(document).ready(function(){
  fnAdjustTable();
});
Esta es la pagina donde esta la tabla

Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <link href="../css/superTables.css" rel="Stylesheet" type="text/css" />
        <script type="text/javascript" src="../js/main.js"></script>
    </head>
    <body>
        <style>
            body {
                background-color: #ffffff;
                font-family: Tahoma, Arial, sans serif;
            }
            .fakeContainer { /* The parent container */
                             border: none;
                             width: 100%; /* Required to set */
                             height: 240px; /* Required to set */
                             overflow: auto; /* Required to set */
            }
            h2 {
                display: block;
                margin: 0px;
                padding: 0px;
                border: none;
            }
            .skinCon {
                float: left;
                margin: 20px;
                border: none;
                width: 640px;
            }
            th{
                background-color: black;
                color: white;
                font-family: Tahoma;
                font-size: 12px;
            }
            td{
                font-family: Tahoma;
                font-size: 10px;
            }

        </style>
        <div class="fakeContainer">
            <table id="ocupacion">
                <tr>
                    <th></th>
                    <th colspan="5">Enero</th>
                    <th colspan="4">Febrero</th>
                    <th colspan="4">Marzo</th>
                    <th colspan="5">Abril</th>
                    <th colspan="4">Mayo</th>
                    <th colspan="4">Junio</th>
                    <th colspan="5">Julio</th>
                    <th colspan="4">Agosto</th>
                    <th colspan="5">Septiembre</th>
                    <th colspan="4">Octubre</th>
                    <th colspan="4">Noviembre</th>
                    <th colspan="4">Diciembre</th>
                </tr>
                <tr>
 //Esta fila es una cutrez temporal                   <th>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Actividad&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</th>
                    <?php
                    
include("../db/db.php");
                    include(
"../classes/Actividad.php");
                    include(
"../classes/Jalon.php");
                    
$semanaActual date('W');
                    
$semana=1;
                    while(
$semana 53) {
                        if (
$semana!=$semanaActual) {
                            if (
$semana 10) {
                                echo 
'<th>S0'.$semana.'</th>';
                            }else {
                                echo 
'<th>S'.$semana.'</th>';
                            }
                        }else if (
$semana==$semanaActual) {
                            if (
$semana 10) {
                                echo 
'<th style="background-color: red">S0'.$semana.'</th>';
                            }else {
                                echo 
'<th style="background-color: red">S'.$semana.'</th>';
                            }
                        }
                        
$semana $semana 1;
                    }
                    
?>
                </tr>
                <?php
                $actividad 
= new Actividad();
                
$s $actividad->obtenerListaActividades('Todos''');
                
//Contador para dar distintos nombres a las ventanas emergentes
                
$i 1;
                
$color 1;
                while (
OCIFetch($s)) {
                    
$semana 1;
                    
$actividad->obtenerDatos($s);
                    
$jalon = new Jalon();
                    
$jalon->obtenerDatos($actividad->idJalon);
                    echo 
'<tr>';
                    echo 
'<td>'.$actividad->nombre.'</td>';
                    while(
$semana 53) {
                        if ((
$semana $actividad->semanaIni && $semana $actividad->semanaFin) && $semana != $jalon->planificado) {
                            if (
$semana != $semanaActual) {
                                echo 
'<td style="background-color: #66CCFF">&nbsp;</td>';
                            }else if (
$semana == $semanaActual) {
                                echo 
'<td style="background-color: #66CCFF; border-color: red">&nbsp;</td>';
                            }
                        }else if ((
$semana == $actividad->semanaIni || $semana == $actividad->semanaFin) && $semana != $jalon->planificado) {
                            echo 
'<td style="background-color: #66CCFF">&nbsp;</td>';
                        }else if (
$semana == $jalon->planificado) {
                            if (
$semana != $semanaActual) {
                                echo 
'<td style="background-color: #0000EE">';
                            }else if (
$semana == $semanaActual) {
                                echo 
'<td style="background-color: #0000EE; border-color: red;">';
                            }
                            echo 
'<div class="ExpertStats ExpertHover">';
                            echo 
'<div class="HoverPanel">';
                            echo 
'<div id="HoverPanel'$i .'" onmouseout="toggableMouseOut()" onmouseover="toogle(' "'HoverPanel"$i "_toggable', true)" '" class="HoverPanelHeader"></div>';
                            echo 
'<div id="HoverPanel'$i .'_toggable" class="HoverPanelContainer" style="display: none;" onmouseout="toggableMouseOut()" onmouseover="toggableMouseOver()">';
                            echo 
'<p style="padding: 5px; font-family: Tahoma; font-size: 11px">';
                            echo 
'<b>Proyecto:</b> <em>'.$actividad->nombre.'</em></br>';
                            echo 
'<b>Dominio:</b> <em>'.$actividad->dominio.'</em></br>';
                            echo 
'<b>Objetivo del jal&oacute;n:</b> <em>'.$jalon->objetivo.'</em></br>';
                            echo 
'<b>Planificado en la semana:</b> <em>'.$jalon->planificado.'</em></br>';
                            echo 
'<b>Jefe de proyecto:</b> <em>'.$actividad->jpi.'</em></br>';
                            echo 
'</p>';
                            echo 
'</div>';
                            echo 
'</div>';
                            echo 
'</div>';
                            
$i $i+1;
                            echo 
'</td>';
                        }else {
                            if (
$semana != $semanaActual) {
                                echo 
'<td style="background-color: #DDDDDD">&nbsp;</td>';
                            }else if (
$semana == $semanaActual) {
                                echo 
'<td style="background-color: #DDDDDD; border-color: red">&nbsp;</td>';
                            }
                        }
                        
$semana $semana+1;
                    }
                    echo 
'</tr>';
                }
                
?>
            </table>
        </div>

        <div id="testDiv" style="display:none;float:left;margin:40px;width:400px;height:300px;background-color:#f1f1f1;"></div>

        <script type="text/javascript">
            //<![CDATA[

            (function () {
                new superTable("ocupacion", {
                    cssSkin : "sDefault",
                    headerRows : 2,
                    fixedCols : 1
                });

            })();

            //]]>
        </script>

    </body>
</html>
  #13 (permalink)  
Antiguo 08/04/2010, 07:01
 
Fecha de Ingreso: octubre-2008
Mensajes: 17
Antigüedad: 15 años, 6 meses
Puntos: 0
Respuesta: Problema con document.ready

Y por ultimo el css tanto de la tabla con scroll y eso asi como el de las ventanas emergentes:

Código:
.sBase {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* HEADERS */
.sHeader {
	position: absolute;
	z-index: 3;

}
.sHeaderInner {
	position: relative;
}
.sHeaderInner table {
	border-spacing: 0px 0px !important;
	border-collapse: collapse !important;
	width: 1px !important;
	table-layout: fixed !important;
	background-color: #ffffff; /* Here b/c of Opera 9.25 :( */
}

/* HEADERS - FIXED */
.sFHeader {
	position: absolute;
	z-index: 4;
	overflow: hidden;
}
.sFHeader table {
	border-spacing: 0px 0px !important;
	border-collapse: collapse !important;
	width: 1px !important;
	table-layout: fixed !important;
	background-color: #ffffff; /* Here b/c of Opera 9.25 :( */
}

/* BODY */
.sData {
	position: absolute;
	z-index: 2;
	overflow: auto;
	background-color: #ffffff;
}
.sData table {
	border-spacing: 0px 0px !important;
	border-collapse: collapse !important;
	width: 1px !important;
	table-layout: fixed !important;
}

/* BODY - FIXED */
.sFData {
	position: absolute;
	z-index: 1;
	background-color: #ffffff;
}
.sFDataInner {
	position: relative;
}
.sFData table {
	border-spacing: 0px 0px !important;
	border-collapse: collapse !important;
	width: 1px !important;
	table-layout: fixed !important;
}

/* sDefault */
.sDefault {
	margin: 0px;
	padding: 0px;
	border: none;
	
}
.sDefault th{
    border: 1px solid #cccccc;
	padding: 1px 1px 1px 1px;
	white-space: nowrap;
        font-family: "Tahoma";
	font-size: 12px;
        color: white;
}
.sDefault td {
	border: 1px solid #cccccc;
	padding: 1px 1px 1px 1px;
	white-space: nowrap;
        font-family: "Tahoma";
	font-size: 11px;
        color: black;
}
.sDefault th {
	background-color: #000000;
	border-color: #c5c5c5;
}
.sDefault-Fixed {
	background-color: #eeeeee;
	border-color: #c5c5c5;
}

/* Estilos de la ventana emergente de jalones */
.ExpertStats .HoverPanelContainer{width:500px;}
.HoverPanel{text-align:left;margin:0;float:left!important;}
.HoverPanelContainer{margin-top:1px;z-index:10;position:absolute;background-color:White;border:solid 1px Black;}
.UserHover .HoverPanel .label{width:95px!important;}
.ExpertHover .HoverPanel .label{width:80px!important;}
.HoverPanel span{color:#4a4a4a!important;}
.HoverPanel a{color:#3366b9!important;}
.HoverPanel .ExpertCategoryStats{display:block;clear:both!important;float:none!important;}
.HoverPanelHeader{cursor:pointer;display:block;clear:both!important;float:none!important;height:15px;text-decoration:none;color:white;font-weight: bold;font-family: "Tahoma";}
.HoverPanelHeader a{text-decoration:underline!important;}
.HoverPanelItem{display:block;clear:both!important;float:none!important;padding:6px;}
.HoverPanelContent{margin-top:3px;z-index:10;position:absolute;background-color:White;border:solid 1px Black;}
.HoverPanel a{text-decoration:none;}
.HoverPanel img{margin-right:8px;}
.HoverPanel .Close{font-weight:bold;display:block;clear:both;float:none!important;text-align:right;cursor:pointer;background-color:Black;color:White;padding:2px;}
.HoverPanelFooter{clear:both!important;float:none!important;text-align:right;padding-bottom:6px;padding-right:6px;}
.HoverPanelFooter a{text-decoration:underline;}
.Row .label2{font-weight:normal;}
.ItemsList .HoverPanel .ExpertProfile .StatsRow{clear:left;}
.HoverPanel .ExpertStatsContainer .ExpertStats .StatsRow{width:100%;display:block;}
.HoverPanel .ExpertStatsContent .ExpertStatsContainer{float:left;}
.HoverPanel .ExpertCategoryRow{float:left;clear:none;width:250px;}
.HoverPanel .ExpertCategoryRow div{float:none;clear:none;}
.HoverPanel .ExpertCategoryRow .ExpertCategoryMiniRows div{height:18px;}
.HoverPanel .ExpertCategoryRow .ExpertPhotoContainer{width:60px;margin-bottom:10px;}
.HoverPanel .ExpertPhoto .Mini{clear:left;}
.HoverPanel .ExpertProfile .ExpertPhotoContainer{margin-right:5px;}
.ExpertStats .label{display:block;float:left;width:140px;font-weight:bold;text-align:left;margin-right:8px;}
A ver si vosotros sois capaces de ver algo, porque yo ya no se que hacer...

Muchas gracias
  #14 (permalink)  
Antiguo 08/04/2010, 08:24
 
Fecha de Ingreso: diciembre-2009
Ubicación: Misiones
Mensajes: 867
Antigüedad: 14 años, 5 meses
Puntos: 65
Respuesta: Problema con document.ready

estás seguro que tenés una función que se llama fnAdjustTable ? donde está?

lo único de jquery ahí es

$(document).ready(function(){

});

donde haces referencia al archivo jquery?

Última edición por Dany_s; 08/04/2010 a las 08:32
  #15 (permalink)  
Antiguo 08/04/2010, 10:50
Avatar de mayid
Colaborador
 
Fecha de Ingreso: marzo-2009
Ubicación: BsAs
Mensajes: 4.014
Antigüedad: 15 años, 1 mes
Puntos: 101
Respuesta: Problema con document.ready

También esta esto sobre el final. Pero está mal escrito el ready, no, Dany?

Cita:
<script type="text/javascript">
//<![CDATA[

(function () {
new superTable("ocupacion", {
cssSkin : "sDefault",
headerRows : 2,
fixedCols : 1
});

})();

//]]>
</script>
Igual, es cierto que la declaración de fnAdjustTable no figura.
  #16 (permalink)  
Antiguo 08/04/2010, 23:17
 
Fecha de Ingreso: octubre-2008
Mensajes: 17
Antigüedad: 15 años, 6 meses
Puntos: 0
Respuesta: Problema con document.ready

Yo la he buscado por el codigo y no la he encontrado (la fnAdjustTable) pero ya os comente que si borro esa linea en la que la llama, el problema sigue ocurriendo exactamente igual (se que no tiene demasiado sentido...).
  #17 (permalink)  
Antiguo 09/04/2010, 03:35
 
Fecha de Ingreso: octubre-2008
Mensajes: 17
Antigüedad: 15 años, 6 meses
Puntos: 0
Respuesta: Problema con document.ready

Al final lo he solucionado buscando otra tooltip por ahi que funcionase junto con los scroll asique ya esta arreglado jeje

Muchas gracias a todos por molestaros :)
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 00:05.