Multiple scripts called from main script

Develop and Deploy Cross-Browser Web Apps .

Multiple scripts called from main script

Postby kevinotton » Fri Oct 03, 2014 11:48 am

Can anyone advise me on the best way to do the following.

1 main screen (project1) that can call other scripts(project2, project3 etc) as separate displays. keeping project 1 as the main menu as in a normal website

I have a main screen that the user can login and based on privileges allocated builds a menu. The menu option should then call another project.
I have done each project separate to keep the file sizes manageable.

Thanks
Kevin
kevinotton
 
Posts: 38
Joined: Thu May 15, 2014 8:18 am
Location: Needham Market, Suffolk, UK

Re: Multiple scripts called from main script

Postby support » Mon Oct 13, 2014 12:32 am

xui.newCom("App2",function(){
[some container].append(this);
});
support
 
Posts: 352
Joined: Sat Apr 27, 2013 9:22 am

Re: Multiple scripts called from main script

Postby kevinotton » Wed Nov 05, 2014 10:42 am

Thanks for the solution, I am now using this plus bits from the order management script.

I cannot use it to load scripts with SVGpaper in, I get the error TypeError: xui.UI.SVGPaper is not a constructor

The script runs okay stand alone, again its my lack of knowledge probably.

Any ideas

Thanks
Kevin
kevinotton
 
Posts: 38
Joined: Thu May 15, 2014 8:18 am
Location: Needham Market, Suffolk, UK

Re: Multiple scripts called from main script

Postby sedrok » Tue Dec 16, 2014 10:10 pm

i think
adv-all.js - must be included

<script type="text/javascript" src="runtime/xui/js/xui-all.js"></script>
<script type="text/javascript" src="runtime/xui/js/adv-all.js"></script>
sedrok
 
Posts: 26
Joined: Tue Jun 03, 2014 12:50 pm


Return to CrossUI for Web Apps

Who is online

Users browsing this forum: No registered users and 0 guests

cron