Sigma Php Ajax framework, Ajax Components, GUI Builder
May 23, 2012, 10:07:28 PM *
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: How to disable a Tab  (Read 1713 times)
gikotim
Sr. Member
****
Posts: 49


View Profile
« on: December 09, 2009, 01:35:22 AM »

Hi!
I've created some tabs. Now I want dynamically enable/disable some of them. But somehow it doesn't work.
At creation time I made:

...
    "id" : "c",
    "caption" : "Test",
    "disabled" : true
},
.....

When I run it, this tab is grayed out, BUT I still can select it and it switches to page. Why?

Can you help me on that?


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


View Profile
« Reply #1 on: December 09, 2009, 04:26:26 PM »

Maybe a bug in previous version, you can try to get the latest code from svn: http://linb.googlecode.com/svn/trunk/jsLinb2.2
Logged
gikotim
Sr. Member
****
Posts: 49


View Profile
« Reply #2 on: December 10, 2009, 01:06:14 AM »

Thanks for the fast response.
I've downloaded http://linb.googlecode.com/svn/trunk/jsLinb2.2/-folder with wget and put it on my local webserver.
If I start the http://myhost/VisualJS it hangs. Firebug tells me that "linb" is not defined....
What do I'm doing wrong?

Some additional info: I have replaced the js-folder in the runtime environment. After that the Tabs working as advertised.
So 2.2 fixes this problem.

If you could help me to get the IDE working, it would be great!

Many thanks

« Last Edit: December 10, 2009, 02:56:45 AM by gikotim » Logged
linb
Administrator
Hero Member
*****
Posts: 435


View Profile
« Reply #3 on: December 10, 2009, 09:06:37 PM »

I can't tell that, builder works well in my server. in windows , linux ?
Logged
gikotim
Sr. Member
****
Posts: 49


View Profile
« Reply #4 on: December 13, 2009, 09:38:48 AM »

I use Fedora 12.

I've copied the whole trunk to my local disk and start it with: http://tux/sigma22/VisualJS/UIBuilder.html

Then it just hangs. In the script-debugger I see an error (see pic1 attached).

Then I try to ajust the path for the linb.js and index.js files. Now it throws another error (pic2). Here I have no clue how to fix....

Can you confirm, that the above is the correct way to get the new version, or do I do something wrong?

Thank you very much for your help.

« Last Edit: December 13, 2009, 09:47:37 AM by gikotim » Logged
linb
Administrator
Hero Member
*****
Posts: 435


View Profile
« Reply #5 on: December 13, 2009, 04:43:40 PM »

Maybe your browser can't find the linb.js file.
You need to check the js file path.
Logged
gikotim
Sr. Member
****
Posts: 49


View Profile
« Reply #6 on: December 15, 2009, 09:40:01 PM »

sorry, I'm too dumb to bring this to work.
What are your plans to make this 2.2 release an official one?
Is there a build in the form of the current 2.1 version?

Thank you very much for all your support
Logged
linb
Administrator
Hero Member
*****
Posts: 435


View Profile
« Reply #7 on: December 16, 2009, 04:45:35 AM »

I use xampplite, it works well, you can try it.
Logged
gikotim
Sr. Member
****
Posts: 49


View Profile
« Reply #8 on: December 16, 2009, 05:18:08 AM »

maybe I don't understand you correct. XAMPP is for installing apache, mysql, and so on. I have a perfect working environment.
When I download and unpack sigma version 2.1 it works flawless. When I download (with wget) and unpack the trunk version 2.2 it sucks.

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


View Profile
« Reply #9 on: December 16, 2009, 05:06:08 PM »

I test builder in several env, but cant' react your case.
Can you give me a remote web page to see your case?
Logged
gikotim
Sr. Member
****
Posts: 49


View Profile
« Reply #10 on: December 17, 2009, 01:30:36 AM »

It was definitely my problem!
wget has not downloaded everything correctly!!!!
As soon as I fetched the trunk with: svn checkout http://linb.googlecode.com/svn/trunk/ linb-read-only  it worked like a charm.

So, thank you very much for your patience and support.

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!