超简单实现:Ext.TabPanel加入iframe

作者:ajax
网址:


初学extjs时,不适应那种“单页系统”,希望像原来写页面一样,点击左侧树菜单,右侧打开相应页面URL。就可以使用TablePanel中内嵌iframe的方法来简单实现,但劣端也是显而易见的:每个页面都需要引用庞大的Ext类库,这样的系统在局域网里还可以接受,但作为一个外网系统就让人无法忍受了。

下面来看看怎么实现TablePanel中加入iframe
  1. tabPanel.add({  
  2.     title:titleText ,  
  3.     id:'tabiframe',  
  4.     iconCls: 'tabs',  
  5.     margins:'0 4 4 0',  
  6.     autoHeight:true,  
  7.     autoScroll:true,  
  8.     autoWidth:true,  
  9.     closable:true,  
  10.     frame:true,  
  11.     html:"<iframe src="page-url" frameborder="0" height="400" scrolling="auto" width="100%"></iframe>"  
  12. }).show();  
  13.   
  14. // 修改iframe中页面地址  
  15. Ext.get("tabiframe").src = "new page url"

  • ---> 收藏到书签 
 | 这篇【超简单实现:Ext.TabPanel加入iframe】来自 doc.ajaxeye.com |



本文相关评论|Comments

Cheap Nike Shoes, Air Jordan Shoes are on sale now, our Air Jordan, Nike Shoes are exclusive
Buy Jordan Shoes, Nike Dunks, Dunk Shoes, SB Kicks, Nike Air Force One 1, Bape Hoodies Hoody, Jordan Kicks, Nike Kicks, Nike Air Max, Dunks Shoes, Nike Shox
Jordan Shoes: Nike Jordan, Air Jordan Shoes and Nike Dunks are on sale here today; Nike Shoes you are looking for are availabe.
Basketball Shoes include:Air Force Ones, Nike Air Forces, Nike Air Force one 1, Nike Dunks, Nike Dunk SB, Nike Air Jordans, Air Jordan Shoes.
Jordan Shoes,Nike Jordans,Wholessale Nike shoes,Wholesale Air Jordans, Wholesale Air Force Ones.
An inventor has created his perfect woman,world of warcraft gold a robot who can do the cleaning, remewow pomber his favourite drink and read him the wow ornewspaper headlines.Le Trung,buy wow gold33, has spent £14,000 creating Aiko, who he dcheap wow goldescribes as "in her 20s" with a 32, 23, 33 wow power levelingfigure, shiny hair and delicate featurewow powerlevelings. She can speak English and Japanese adofus kamasnd is so accomplished at mathematics she can do kamas dofusMr Trung's accounts.Mr Trung, from Brampton inLord of the Rings Online GoldOntario, Canada, said he has never had time to fiLOTRO Goldnd a real partner – so he LOTR Golddesigned and created his idealfly for fun penyawoman using the latest technology.The former softwflyff penyaare programmer has taken out credit cards buy flyff goldand loans, sold his car and spent his lifffxi gile savings on perfecting his "fem-bot".Now he buy ffxi gilis desperate to find a corporate Final Fantasy XI gilsponsor to help him complete and perfect AiEverQuest 2 goldko.He said: "Aiko is what happens when science meets beauty."I eq2 platwant to make her ffxi gillook, feel and act as human as possiblFinal fantasy xi gile so she can be the perfect companion."I talk to her a lot, abuy ffxi gilnd hope to improve her Ugg Bootsknowledge."So far she can undersUgg Bootstand and speak 13,000 different sentences in EngUgg Bootslish and Japanese, so she's already fairly dofus kamasintelligent."Aiko recognise faces kamas dofusand says hello when any of my family come around torunescape moneyvisit. She helps me pick what to have runescape goldfor dinner and knows what ddofus kamasrinks I like."She even helps me with direc>kamas dofustions when we're going somewhere.Runescape Money"She doesn't need Runescape goldholidays, food or rest and she will work almost 24-hours a day.
After a weekend in which thedofus kamas so-called 'big four' teams of Manch kamas dofusester United, Chelsea, Liverpool and Arsenal could all only acheter kamasmanage draws , the big questions in the buy kamasPremier League are concerned with who willacheter dofus be sold and who will be sacked over dofus kamasChristmas. The Premiership rumour mill is already kamas dofusworking overtime, and speculation is riacheter dofusfe that Blackburn manager Paul buy kamasInce’s job is hanging by a thread with a number of oacheter kamasther managers lined up to replace him. Ince’s Blackburn lost 3-0 to dofus kamasWigan on Saturday, heaping the preskamas dofussure on the already beleaguered manager. However,acheter kamasInce found an unlikely ally in the dofus kamasWigan manager Steve Bruce. Bruce predictkamas dofused that Ince "will come out fighting achat kamasand snarling , and determined to turn it dofus kamasaround", meaning that Ince will fight like a kamas dofuswild animal to improve his side’s peracheter des kamasformances. Tooth and nai He [Ince] will dofus kamascome out fighting and snarling and determinedkamas dofusto turn it around.Steve Bruce, Wigan manager One managebuy kamasr whose position looks wow posafer, at least until the end of this sebuy wow goldason, is Newcastle United’s Joe Kinnear, whose teachat gold wowam managed to drag themselves up wow levelingthe table with a deserved 3-0 victory over Portsmouth on Sunwow orday. Newcastle have been in disarwow gold cheapray since the beginning of the wow powerlevelingseason with boardroom turmoiland a serious buy wow goldlosing streak hurting the club. Bworld of warcraft goldut Sunday's win has given manager Kinnear reason cheap wow goldto hope that his team have started improving. "We grwow orabbed the game by the scruff of the neck and wow power levelingput them to the sword," said world of warcraft goldKinnear, meaning his team took charwow gold kaufenge of the game and killed the oppositionwow gold cheap’s chances. Grim determinationWe really wanted to wow leveldo it and had a lot of determination. We grabbed twow geldhe game by the scruff of the neck and put them to the swordwow gold kaufen. Joe Kinnear, wow gold cheapNewcastle United manager Kinnear waswow powerlevelingdelighted with a goal from striker Michael Owen who has started to return to form after long periods out of the game with injuries .
For example, she insists that twow goldhe Buckingham Palace lights are wow goldturned off when rooms are vacated awow goldnd left-overs from banquets wow goldare re-used.Annual head of statwow golde expenditure has dropped from $58.8 milliwow goldon in 1991-1992 to $27 million in 2007-2008.
Yourwow gold PVP statswow gold are now buy wow goldalso active buy wow goldin your charactercheap wow gold tab, keepingcheap wow gold track of wow power levelingyour performance wow power levelingin PVP. power leveling In additionpower leveling your new PVP .

I never considered myself unique, but people are constantly telling me, "you are a miracle." To me, I was just an ordinary "guy" with realistic goals and big dreams.dofus kamas I was a 19-year-old student at the University of Texas and well on my way toward fulfilling my "big dream" of one day becoming an 1)orthopedic surgeon.  kamas dofus On the night of February 17, 1981 I was studying for an 2)Organic Chemistry test at the library with Sharon, my girlfriend of three years.Lord of the Rings Online Gold Sharon had asked me to drive her back to her dormitory as it was getting quite late.LOTRO Gold We got into my car,

silkroad online gold not realizing that just getting into a car would never quite be the same for me again. I quickly noticed that my gas 3)gauge was registered on empty so I pulled into a nearby convenience store to buy $2.00 worth of gas.kamas dofusLOTR Gold "I'll be back in two minutes," I yelled at Sharon as I closed the door. But instead, those two minutes changed my life forever. dofus kamas  Entering the convenience store was like entering the 4)twilight zone. On the outside I was a healthy, athletic, pre-med student, but on the inside I was just another statistic of a violent crime. I thought I was entering an empty store,

but suddenly I realized it was not empty at all. Three robbers were in the process of committing a robbery and my entrance into the store caught them by surprise. One of the criminals immediately 5)shoved a .38 6)caliber handgun to my head, ordered me to the cooler, pushed me down on the floor, and pumped a bullet into the back of my head - execution style. He obviously thought I was dead because he did not shoot me again. The 7) trio of thieves finished robbing the store and left calmly.  Meanwhile, Sharon wondered why I had not returned. After seeing the three men leave the store she really began to worry as I was the last person she saw entering the store. She quickly went inside to look for me, but saw no one-only an almost empty cash register containing one check and several pennies. Quickly she ran down each aisle shouting, "Mike, Mike!" fly for fun penya  Just then the 8) attendant appeared from the back of the store shouting,flyff penya "Lady, get down on the floor. I've just been robbed and shot at!"   Sharon quickly dropped to the floor screaming,

buy flyff gold"Have you seen my boyfriend? He has 9)auburn hair." The man did not reply but went back to the cooler where he found me choking on my vomit.flyff money The attendant quickly cleaned my mouth and then called for the police and an ambulance.  ffxi gil Sharon was in shock. She was beginning to understand that I was hurt, but she could not begin to comprehend or imagine the severity of my injury.  Final Fantasy XI gil When the police arrived they immediately called the 10)homicide division as they did not think I would survive and the 11)paramedic reported that she had never seen a person so severely wounded survive.buy ffxi gil At 1:30 a.m. my parents who lived in Houston, were awakened by a telephone call from Brackenridge Hospital advising them to come to Austin as soon as possible for they feared I would not make it through the night. But I did make it through the night and early in the morning the 12)neurosurgeon decided to operate.

However, he quickly informed my family and Sharon   that my chances of surviving the surgery were only 40/60. If this were not bad enough, the neurosurgeon further shocked my family by telling them what life would be like for me if I 13)beat the odds and survived. He said I probably would never walk, talk, or be able to understand even simple commands.   My family was hoping and praying to hear even the slightest bit of encouragement from that doctor. Instead, his pessimistic words gave my family no reason to believe that I would ever again buy Warhammer gold

be a productive member of society.Warhammer gold But once again I beat the odds and survived the three and a half hours of surgery.   Granted, I still could not talk,buy Warhammer gold my entire right side was paralyzed and many people thought I could not understand, but at least I was stable. After one week Warhammer gold in a private room the d
We are reading the first verse of the first chapter of a book whose pages are infinite…”  I do not know who wrote those words, but I have always liked them as a reminder that the future can be anything we want to make it. We can take the mysterious,wow gold hazy future and carve out of it anything that we can imagine, just like a sculptor carves a statue from a shapeless stone.   wow gold We are all in the position of the farmer. If we plant a good seed, we reap a good harvest. If our seed is poor and full of weeds, wow gold we reap a useless crop. If we plant nothing at all, wow gold we harvest nothing at all.  wow gold I want the future to be better than the past.wow gold I don’t want it contaminated by the mistakes and errors with which history is filled. wow gold We should all be concerned about the future because that is where we will spend the reminder of our lives.  wow gold The past is gone and static. Nothing we can do will change it.wow gold The future is before us and dynamic. wow gold Everything we do will effect it. Each day will brings with it new frontiers, in our homes and in our businesses, if we will only recognize them. We are just at the beginning of the progress in every field of human endeavor.

发表该文评论|Send Comment



关于本文|About The Blog

这篇 Blog 于 2008-04-16 10:09:00 发布在 Ajax Docs
上一篇: JSA - JS脚本压缩程序
下一篇: 优质网页小贴士 - 在你的文档中使用 link
首页

相关文章|Related Articles

  • 没有相关文章


相关标签|Related Tags