Hello Keve,
On Mon, Mar 10, 2014 at 6:11 PM, Keve Nagy <[email protected]> wrote:

>
> I would like to extend one of my qx 3.5 apps with the function of
> redirecting the browser back to the referring URL after my application is
> finished. Meaning, once my app completes the browser jumps back to the
> webpage where it came to my application from.
> For this, I believe I need to store what page was my app linked from, and
> then, when my application closes I need to redirect to that URL.
> I believe such functionality cannot be implemented purely on my side. It
> probably needs some things to be done on the calling side, maybe adding
> something to the URL that refers to my app. But please correct me if I am
> wrong about that!
> So, what is there in qx 3.5 that helps me to implement this? Redirecting
> to an URL, saving the URL that called my app's URL, etc.
> Any pointer to related documentation is good enough for me. I just need to
> know what and where to look for.
>

The thing you are looking for is the referrer. This is an optional HTTP
header that most of the times is also made available in javascript via
document.referrer. Keep in mind that this might not be set (or set to the
real referrer, I used to have browser plugin that rewrote all my referrers
to a website of questionable content to mess with the minds of people
reading logs :P)

Read the docs[1] for more info

-- 
Rob

[1]: https://developer.mozilla.org/en-US/docs/Web/API/document.referrer
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to