Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 6 of 6 total
Thread URL parameters
Tue, Jun 25 2013 3:53 AMPermanent Link

Matthew Jones

If I have an EWB application at http://example.com/myapp.html, is there any way for
the EWB application to see the parameters in the URL of the form
http://example.com/myapp.html?myparam=hello%20mum ?

That is, instead of having the server do something clever to tell the EWB app later,
can the javascript see the params? If so, how please?

It struck me that this would be a very nice way to add functionality to my app.

/Matthew Jones/
Tue, Jun 25 2013 4:22 AMPermanent Link

Walter Matte

Tactical Business Corporation

Tue, Jun 25 2013 4:45 AMPermanent Link

Matthew Jones

Brilliant, thank you.

/Matthew Jones/
Tue, Jun 25 2013 11:37 AMPermanent Link

Matthew Jones

Do you or anyone know if it is possible to close the current tab of the browser
that the script is running in?

The internet suggests:
window.open('','_parent','');
window.close();

but this doesn't work for me in Chrome.

/Matthew Jones/
Tue, Jun 25 2013 2:43 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Matthew,

<< but this doesn't work for me in Chrome. >>

It may be a security restriction.  I know that in IE you get a warning
prompt when a script tries to close the current window.

Tim Young
Elevate Software
www.elevatesoft.com
Wed, Jun 26 2013 4:48 AMPermanent Link

Matthew Jones

Probably is - sensible really, but my aim was to pass data to the app and then
somehow not have two copies running. Hmm.

/Matthew Jones/
Image