Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
I am loading the tab content using
tabbar.setContentHref("a1","Home/About");
I have anothar alternation is to load the content using .,
tabbar.setContentHtml("<iframe src='/Home/About'>")
What I want is that vary the content height dynamically while loading. I have googled ,but no solutions are working for me. Is there any other ways to load the content ??. can any one help me how to fix this.
Posted 19-Apr-13 23:01pm
Edited 20-Apr-13 0:30am
v3

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

What exactly is your tabbar component? If it is dhtmlxtabbar, this one could help you: http://www.dhtmlx.com/docs/products/dhtmlxTabbar/samples/06_behaviors/02_size_by_content.html[^].
But please note, that the iframe is the worst practice here. What is wrong with the first approach? That one is using ajax, thus updates the dom as needed, and autosize (see link above) will work.
Still, if you don't try break to security boundaries, you have means to resize iframe from inside. Take a look here: http://www.pither.com/articles/2010/11/12/resize-iframe-from-within[^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 8,149
1 Sergey Alexandrovich Kryukov 7,287
2 DamithSL 5,614
3 Manas Bhardwaj 4,986
4 Maciej Los 4,910


Advertise | Privacy | Mobile
Web03 | 2.8.1411023.1 | Last Updated 20 Apr 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100