This is a migrated thread and some comments may be shown as answers.

Want to open a web site in tab - can I do this

1 Answer 123 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 04 May 2012, 11:40 PM
We are looking for a HTML/CSS toolkit for our new application menu app.  Essentially its a tree view that displays all the various web applications a specific user has rights to access. When the user clicks an item in the treeview, I want to open the app in a tabstrip tab. I have a Kendo UI tree view that is displaying the appropriate apps to choose from, and a tabstrip control I am trying to append a new tab which "hosts" the app.

I have tried (in the select event of the treeview) 

tabStrip.append({
text: TabLabel
content: [null,"http://ourwebapp.aspx"],
encoded: false })

as well as 

tabStrip.append({
text: TabLabel
contentURL: "http://ourwebapp.aspx"})

In each case the tab is created, with the correct text, but no content.

I looked at using AJAX to load the content, but the example URLs all seemed to point to a local html file.

Has anyone else had this problem, and found an answer? It seems like it should be a pretty straight forward task.

Thanks for you time and attention.
Richard


 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 08 May 2012, 05:46 PM
It was simple, once I figured it out.  In case anyone else is a newbee with the same issue, here is the syntax:

content: "<iframe src=\"" + URL + "\"></iframe> "

Tags
TabStrip
Asked by
Richard
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Share this question
or