Homepage | Products | OX Knowledge Base | Support | Try Now | Contact | Company
OX Logo
Results 1 to 2 of 2
  1. #1
    H2OX Guest

    Post Question on the code ?

    Hello,
    I've a question on the code, I don't understand this part.
    Code:
    registerView("admin/management/users/UserSetup",
    	function() { 
    		$("admin.users.tab1").style.display="block";
    		$("admin.users.panel1").className="tabPanelFirstHi";	
    	},
    	null, 
    	null,
    	function() {
    		$("admin.users.tab1").style.display="none";
    		$("admin.users.panel1").className="tabPanelFirst";		
    	}
    );
    what do this function aside to store the modification style on an object in a Array ?
    I saw that you use many times this function on your porgram but as this function returns a object but this object is not stored, what is his role ?

    Thx !

  2. #2
    Join Date
    Feb 2007
    Posts
    253

    Default

    Just as the name implies, the function registerView registers a new view for the content area of the GUI. The function changeView can then be used to switch to this view. The first four parameters to registerView are callback functions which are called to display, initialize, de-initialize and hide the view, respectively. An optional fifth argument is a callback function which is called when changing between nested views (e. g. if there is a view "calendar" and you change between "calendar/month" and "calendar/week").

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •