This is what I had tried to implement.
In the the display column, I have
<display:column class="tableCellError">
<div id="showThis" class="hiderecord" >ShowMe</div>
</display:column>
and, I have placed the _javascript_ function 'doExpand()' above the html tag and it is like this
<script>
function doExpand(){
var recordToShow=document.getElementById("showThis");
recordToShow.className = "";
}
</script>
In the style tag, which is placed inside the head element, I have this:
<style type="text/css" media="all">
@import url("css/maven-base.css");
@import url("css/maven-theme.css");
@import url("css/site.css");
@import url("css/screen.css");
.hiderecord{display:none;}
</style>
but when the page is rendered it shows content of div tag 'ShowMe' in the first record and the remainig columns are empty. and this is without clicking so I am sure the doExpand function is not getting invoked.
How do I fix it? also I want the div tag to span the width of the table, but not appear as a different column.
In the the display column, I have
<display:column class="tableCellError">
<div id="showThis" class="hiderecord" >ShowMe</div>
</display:column>
and, I have placed the _javascript_ function 'doExpand()' above the html tag and it is like this
<script>
function doExpand(){
var recordToShow=document.getElementById("showThis");
recordToShow.className = "";
}
</script>
In the style tag, which is placed inside the head element, I have this:
<style type="text/css" media="all">
@import url("css/maven-base.css");
@import url("css/maven-theme.css");
@import url("css/site.css");
@import url("css/screen.css");
.hiderecord{display:none;}
</style>
but when the page is rendered it shows content of div tag 'ShowMe' in the first record and the remainig columns are empty. and this is without clicking so I am sure the doExpand function is not getting invoked.
How do I fix it? also I want the div tag to span the width of the table, but not appear as a different column.
----- Original Message ----
From: Andrey Falaleev <[EMAIL PROTECTED]>
To: displaytag-user@lists.sourceforge.net
Sent: Friday, September 29, 2006 10:15:02 AM
Subject: Re: [displaytag-user] Calling _javascript_ function
Hi Riaz!
I think you may insert a DIV inside of a DISPLAY:COLUMN tag, place your data inside of this DIV and set for this DIV all needed _javascript_ event handlers ( ). So, just do all what you would do without DisplayTag-table and insert all that stuff within a table's column. For the whole row, place such a DIV with corresponding handlers into the each DISPLAY:COLUMN.
Best,
Andrew
Riaz uddin <[EMAIL PROTECTED]> schrieb:
Was ist Glück? Schlafen Fische überhaupt? Die Antworten gibts auf Yahoo! Clever.
From: Andrey Falaleev <[EMAIL PROTECTED]>
To: displaytag-user@lists.sourceforge.net
Sent: Friday, September 29, 2006 10:15:02 AM
Subject: Re: [displaytag-user] Calling _javascript_ function
Hi Riaz!
I think you may insert a DIV inside of a DISPLAY:COLUMN tag, place your data inside of this DIV and set for this DIV all needed _javascript_ event handlers ( ). So, just do all what you would do without DisplayTag-table and insert all that stuff within a table's column. For the whole row, place such a DIV with corresponding handlers into the each DISPLAY:COLUMN.
Best,
Andrew
Riaz uddin <[EMAIL PROTECTED]> schrieb:
Hi
I am new to displaytag. Here is what I am doing now, I am displaying table data with users' fName, lName and his id.
What I want to do is, when i move the mouse over a row, a _javascript_ function call is made which will take id and fName as parameters and expands the row where I can display additional data, and onmouseout it should get back to its original place.
How do I do this?
Any help?
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user
Was ist Glück? Schlafen Fische überhaupt? Die Antworten gibts auf Yahoo! Clever.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user