Re: Astra2 - UI question
Sebastian Birnbach <[email protected]> Mon, 19 Dec 2016 13:38:01 +0100
| Newsgroups | gmane.comp.horde.devel |
|---|---|
| Message-ID | <CACTNBFPCZAq_4Lu0-heKgfF-1q5D2gPjpk22XZDqnn9-ToKbMg@mail.gmail.com> |
Update: I see that Astral encodes the current turba URL into the link with option 'adurl'. Example: http:// <host>/astral/index.php?ext=<number_to_dial>&adurl=%3Fsource%3Dlocalsql%26key%3DbWl_yYlDsuhRW198cYjhiw5 The code in index.php does the backend communication and then effectively redirects to this turba address. However, Turba displays contacts in tabs (called sections) and the active tab is not encoded in this address. The tabs are triggered through a JS function on the page. It seems like the Turba UI was changed since Astral was designed (in H3 days, about 2009) and this bit was kind of forgotten. Before I file a bug/RFE: does anybody have an idea how to complete the redirection? Thanks Sebastian 2016-12-19 12:35 GMT+01:00 Sebastian Birnbach <[email protected]>: > I am reworking Astral to an Astra2 app that interfaces to H5 and uses the > REST API my provider offers. I registered my app for service telephony/dial > and it gets called by Astra to provide a URL. Following the example of > Astral, the URL points to astra2/index.php where the code lives that does > the backend communication. > > Now, I would prefer a user to stay on the page with the link, rather than > to look at page output from index.php. Status messages should be output as > notifications. If I send the user back to the last page via a redirect, in > the case of Turba, going back one page means losing the active tab. > > Is there a better way to integrate the code into the existing UI? > > Thanks > > Sebastian > > -- dev mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: [email protected]