Anothersledhead
Posts: 44
|
Posted: 05/28/2004, 12:38 PM |
|
How do I call user defined functions. I have seen a few examples but can't seem to get them to work. I am trying to implement a calendar that I have writen on my page. The problem I am having is that when it renders the html for the page it puts the calendar table above the head tags so I can't place it on the page where I want. It always shows at the top. I am using custom code in the before show event of a label.
|
|
|
peterr
Posts: 5971
|
Posted: 05/28/2004, 12:59 PM |
|
You can call the user defined functions in regular way, however it depends on what the function does. Sending an email should work OK but creating HTML output may not. Because we utilize templates your function would need to place all HTML output in one variable and then you can assign that variable (or function output) to the Label.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
Anothersledhead
Posts: 44
|
Posted: 05/28/2004, 3:29 PM |
|
That makes sense as to why it was rendering the HTML at the top of the page. Things make sense now.
Thanks
|
|
|
feha
Posts: 712
|
Posted: 06/03/2004, 1:25 PM |
|
do not output HTML put it in the variable and return from the function...
than create a label where you want to show it on an BeforeShowEvent ...
Set returned variable to the label ...
make sure your label is set to HTML ...
_________________
Regards
feha
www.vision.to
feedpixel.com |
|
|
feha
Posts: 712
|
Posted: 06/03/2004, 1:30 PM |
|
Check here: http://ccs.ath.cx/~ccs/kb.php?language_id=7&category_id=65&event_id=88
_________________
Regards
feha
www.vision.to
feedpixel.com |
|
|