1. #1
    Sencha User
    Join Date
    Dec 2007
    Location
    Aubagne, France
    Posts
    347
    Vote Rating
    1
    mask_hot is on a distinguished road

      0  

    Default One Web page App and direct links

    One Web page App and direct links


    Hi,

    I have a One Web Page App, a main viewport with a central TabPanel. I'd like to know how to have direct links (that I could provide) to open directly in the center TabPanel.

    For example I have a toolbar in my viewport with a Agenda button which add a Tab displaying a schedule.

    How could I have a direct link to open it?

    (I tried to look how Saki handles that in his Examples site but I think he uses iFrame and it's not what I want to do)

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,251
    Vote Rating
    73
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      0  

    Default


    You could use a query parameter in the url (e.g. like the API docs do: example).

  3. #3
    Sencha User
    Join Date
    Dec 2007
    Location
    Aubagne, France
    Posts
    347
    Vote Rating
    1
    mask_hot is on a distinguished road

      0  

    Default


    OK and how do you handle that in the HTML file?
    my root file is html and not PHP and I don't knwo how to get a $_GET parameter in JS

  4. #4
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,251
    Vote Rating
    73
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      0  

    Default


    So you have no dynamic server backend? Only a HTTP server?

  5. #5
    Sencha User
    Join Date
    Dec 2007
    Location
    Aubagne, France
    Posts
    347
    Vote Rating
    1
    mask_hot is on a distinguished road

      0  

    Default


    Quote Originally Posted by Condor View Post
    So you have no dynamic server backend? Only a HTTP server?
    My PHP backend returns data and do some business rules

    Why are you telling me about ComboBox?

  6. #6
    Sencha User
    Join Date
    Dec 2007
    Location
    Aubagne, France
    Posts
    347
    Vote Rating
    1
    mask_hot is on a distinguished road

      0  

    Default


    I think have found something on Saki examples :

    Code:
    // permalink handling
    var page = Ext.urlDecode(window.location.search.substr(1));
    if(page && page.ex) {
    	var node = tree.getNodeById(page.ex);
    	if(node) {
    		tree.collapseAll();
    		node.parentNode.expand(false, false, function() {node.expand()});
    	}
    	showDetail(page.ex);
    	// console.info(page.ex);
    	iframe.setSrc.defer(350, iframe, [Example.root + page.ex + '.html',true]);
    }
    else {
    	var ex = Ext.state.Manager.get('ex', 'root');
    	showDetail(ex);
    }
    // }}}
    If I well understand, Ext.urlDecode(window.location.search.substr(1)); might give me the query parameter and after I have to handle it.

  7. #7
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,251
    Vote Rating
    73
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      0  

    Default


    Sorry, ignore the ComboBox remark (I mixed up some posts).

    You can examine GET parameters by examining the location.

    The API docs use:
    Code:
    // allow for link in
    var page = window.location.href.split('?')[1];
    if(page){
        var ps = Ext.urlDecode(page);
        var cls = ps['class'];
        mainPanel.loadClass('output/' + cls + '.html', cls, ps.member);
    }
    (it allows 'class' and 'member' parameters)

  8. #8
    Sencha User
    Join Date
    Dec 2007
    Location
    Aubagne, France
    Posts
    347
    Vote Rating
    1
    mask_hot is on a distinguished road

      0  

    Default


    Thx, I'm gonna try this.

  9. #9
    Sencha User
    Join Date
    Dec 2007
    Location
    Aubagne, France
    Posts
    347
    Vote Rating
    1
    mask_hot is on a distinguished road

      0  

    Default


    "I love it when a plan comes together "

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar