David,
The problem that I am having for the code below is, the java script code
doesnt get called and neither do I get any error message. From what I
understand is the scirpt should atleast be fired ONCE at the time of loading
the document, but mine doesnt seem to be called ever. Any idea why?
<script language="javascript">
function increaseTimeout(tableId, columnIndex) {
alert("calling ..*.")*;
var previousClass = null;
var table = document.getElementById(tableId);
if (table) {
var rows = table.getElementsByTagName("tr");
for (i = 1; i < rows.length; i++) {
rows[i].onmouseover = function () {
previousClass = this.className;
this.className = this.className + " hover";
this.style.cursor="hand";
var cell = this.getElementsByTagName("td")[columnIndex];
var ident = cell.innerHTML;
alert("Identify ..."+ident);
};
rows[i].onmouseout = function () {
this.className = previousClass;
this.style.cursor="";
};
}
}
}
</script>
<script language="JavaScript">increaseTimeout("row",4);</script>
------------------------------------------------------------------------------------------------
and this is the code I have for display:colum in my JSP page:
<logic:notEmpty name="formBean" property="incompletedLists">
<tr class="rowdivider"><td colspan="16"></td></tr>
<d-el:table id="row" name="formBean.incompletedLists" cellpadding="1"
cellspacing="0" style="border-right: 1px solid #AAAAAA;width: 100%;border:
1px solid #AAAAAA;">
<d:column title="Efd" sortable="false" style="border-right: 1px solid
#AAAAAA;" property="efd"/>
<d:column title="Safety" sortable="false" style="border-right: 1px solid
#AAAAAA;" property="safety"/>
<d:column title="Test Plan" sortable="false" style="border-right: 1px solid
#AAAAAA;" property="testPlan"/>
<d:column title="Entry Date" sortable="false" style="border-right: 1px solid
#AAAAAA;" property="entryDate"/>
<d:column title="Abstract" maxLength="100" sortable="false"
style="border-right:
1px solid #AAAAAA;" property="abstractText"/>
</d-el:table>
</logic:notEmpty>
Any ideas why my scirpt would not get called?
On 2/19/08, David Pilato <[EMAIL PROTECTED]> wrote:
> Hi,
>
> The addRowHandlersConnexion javascript method adds events on displaytag
> table identified by the first parameter (« userList » in the example).
> So you don't have to add any onmouseover function un display:column tag.
>
> Everything is done in Javascript after the document is loaded on the
> client
> browser.
>
>
>
>
> ________________________________________
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Sameer
> Nanda
> Sent: lundi 18 février 2008 23:56
> To: displaytag-user@lists.sourceforge.net
> Subject: Re: [displaytag-user] How to change timer for
> tooltipindisplay:colum
>
> David,
>
> I see what you saying, but how does the script
>
> <script
> type="text/javascript">addRowHandlersConnexion("userList",0);</script>
> gets invoked, on the onmouseOver() event, because apparently I found that
> I
> cannot write the onmouseOver() function in the display:column tag, it
> fails.
> How did you capture that in your code?
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> displaytag-user mailing list
> displaytag-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user