test module cant dispaly in main panel area

Discuss about Group-Office development here

Moderator: Developers

jeffgeng
Posts: 4
Joined: Thu Jun 04, 2009 3:16 am

test module cant dispaly in main panel area

Postby jeffgeng » Sat Jul 04, 2009 4:41 am

After writting a test module following the example, i deploy it in linux environment. But test module cant dispaly in main tab panel area.
In Windows environment it works. What's wrong with it?
ps. I have add the next lines:

Code: Select all

GO.moduleManager.addModule('testmodule', GO.testmodule.MainPanel, {
        title : GO.testmodule.lang.testmodule,
        iconCls : 'go-tab-icon-summary'
});
thanks in advance.
jeffgeng
Posts: 4
Joined: Thu Jun 04, 2009 3:16 am

Re: test module cant dispaly in main panel area

Postby jeffgeng » Sat Jul 04, 2009 6:47 am

i have found that go can not load the new js.
i have clear the cache file in local directory and cache in IE. but it still not work.
any suggestion? Thank you.
jeffgeng
Posts: 4
Joined: Thu Jun 04, 2009 3:16 am

Re: test module cant dispaly in main panel area

Postby jeffgeng » Sun Jul 05, 2009 1:05 am

oh, I forget to set $config['debug']=true;Now it works.
but why I must open this configuration?
mschering
Site Admin
Site Admin
Posts: 8281
Joined: Tue Apr 20, 2004 1:06 pm
Location: The Netherlands - Den Bosch
Contact:

Re: test module cant dispaly in main panel area

Postby mschering » Mon Jul 06, 2009 6:49 am

Because with debug=true it will load all the small source files. With debug=true it will use compressed javascript that consists out of all the module source files. GO loads much faster with that technique. Check this page about minifying:

http://www.group-office.com/wiki/Creati ... _your_code
Best regards,

Merijn Schering
Intermesh
User avatar
Mr.Magoo
Posts: 38
Joined: Thu May 14, 2009 5:45 pm

Re: test module cant dispaly in main panel area

Postby Mr.Magoo » Mon Jul 06, 2009 9:27 am

This is not GO3 specific, but actually common practice.
The minify script is merely a wrapper for the YUICompressor, which is a tool from the Yahoo UI library.
YUICompressor does two things: -1- a simple form of obfuscation and -2- compressing the javascript
source by removing all white space.
The result is javascript optimized for execution by the browser's javascript engine, but virtually
unreadable by humans.
That's why you should always keep the original JavaScript version to maintain your code.

Mr.Magoo
"People, let's do it to them, before they do it to us!”
...Hillstreet Blues

Who is online

Users browsing this forum: No registered users and 1 guest

cron