Sigma Php Ajax framework, Ajax Components, GUI Builder
February 11, 2012, 07:54:00 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: append new objects into tab  (Read 1262 times)
sam0510
Full Member
***
Posts: 24


View Profile
« on: June 28, 2009, 09:47:40 AM »

i have a tabs with item

[{"id":1, "caption":"item a", "image":"img/demo.gif"}, {"id":2, "caption":"item b", "image":"img/demo.gif"}, {"id":3, "caption":"item c", "image":"img/demo.gif"}, {"id":4, "caption":"item d", "image":"img/demo.gif"}, {"id":5, "caption":"Tabs5"}]

i can't append an object , and i think the problem is with id as int.

i'm include here the .js file

note : when i create a new tab , the id is count of tabs , then i want append as objects , such as an button in new tab created once
Logged
linb
Administrator
Hero Member
*****
Posts: 433


View Profile
« Reply #1 on: June 28, 2009, 05:30:15 PM »

So, why don't you use string id?

Logged
sam0510
Full Member
***
Posts: 24


View Profile
« Reply #2 on: June 28, 2009, 06:43:27 PM »


i've browing to try the convert it as string...but the answer is so simple...thanks.... Grin
Logged
sam0510
Full Member
***
Posts: 24


View Profile
« Reply #3 on: June 29, 2009, 09:08:30 PM »

var dialog=new linb.UI.Dialog;

can we show that dialog to specified id , such as id='a' on tabs ? ( dialog.show('show in tabs id ='a'),true)
or tabs only accept with append ?

Logged
linb
Administrator
Hero Member
*****
Posts: 433


View Profile
« Reply #4 on: June 30, 2009, 02:36:55 AM »

dlg.show(tabs.getPanel('a'),true)
Logged
sam0510
Full Member
***
Posts: 24


View Profile
« Reply #5 on: June 30, 2009, 08:43:12 AM »

it's work...thanks
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!