How do you get DS javascript to display an html section

 2 Replies
 0 Subscribed to this topic
 12 Subscribed to this forum
Sort:
Author
Messages
cdodrzywolski
New Member
Posts: 0
New Member
Hello all,

I am trying to create a portal page in design studio. in the javascript section i have some html code that i have assigned to a variable. How do i display this in the portal?

In our version of the code that was in our previous asp page we used

self.CONTROLITEM.document.write(arg);

along with the frame:
 

Is there a way to do this in design studio

Thanks
- Chris
cdodrzywolski
New Member
Posts: 0
New Member
I thought I would elaborate on this a little. What i want to create is a dynamic html table within my portal page. I alreay have the javascript with embedded html in it.

ex.
var arg = '
Dept /
Job
Sunday
' + cur_sun_mdy + '
Monday
' + cur_mon_mdy + '
David Williams
Veteran Member
Posts: 1127
Veteran Member
New Poster
New Poster
Congrats on posting!
You should be able to loop through the records and use HTML table definitions to build the data and format you want, assigning it to a variable. Then you could do a document.write of that variable.
David Williams