telmiger
Posts: 61
|
Posted: 04/21/2004, 8:32 PM |
|
I created an Report Like Grid as explained in the CodeCharge
FAQ.
http://support.codecharge.com/kb_article.asp?article_id=57
It works, but I would like to take it one step further.
In addition to the Category name I would like to add a link that opens up a new popup window.
But I can't get the Linking code to work in the before show row event.
Heres my code
$Tpl->SetVar("category", "<tr><td background=\"\" bgcolor=\"E1DEDE\" colspan=\"26\" rowspan=\"\">"
."<strong>"."".$clients1->client_name->Value." "."</strong>".""
.("<script>onclick=window.open('popups/clients.php?client_id={client_id}', 'newwin','left=100,top=10,width =610,height=500,status=no,toolbar=no,menubar=no,location=no,scrollbars=no'); href='javascript:void(0)';>Edit Client</script>").""
.$clients1->client_address1->Value." "
The line with the <script> function will not work. Does anybody sees what is wrong with this code.
The rest works
The code snipped is in the before row event and should create a new popup window transfering the client_id
Any help would be appreciated.
Tony Elmiger
|
|
|
peterr
Posts: 5971
|
Posted: 04/22/2004, 1:57 AM |
|
I'm not sure if I can help, but possibly you could post here the same piece of the HTML, but after it is already displayed in the browser. You can view the Live page in the browser, view the HTML source and copy the relevant part. This would be easier to analyze.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
|