cancel
Showing results for 
Search instead for 
Did you mean: 

viewing passed variables in an alert from the new window

Former Member
0 Kudos

If I am passing a param, SD and ED to another window, how can I view it using an alert when an applet is created. I have the FirstUpdateEvent established and I place the alert in the function.

How should the alert look?

I have tried

alert([Param.1]); and alert({Param.1});

alert([SD]);and alert();

None of these work. I get errors for each of them.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You have at least two options for this. As Sascha mentioned in another post, you can use a JS library to parse the URL string and find the Params that way.

Or you can put an applet on the page that has <param name="param.1" value="{Param.1}"> and then use JS to reference the applet param.

But, there isn't a way, that I know of to put an URL param directly in JS.

Answers (1)

Answers (1)

Former Member
0 Kudos

Actually, you can use something like the following:

alert(document.YourAppletName.getQueryObject().getParam(1));

alert(document.YourAppletName.getQueryObject().getStartDate());

Always best to refer to the applet itself for its "current" status when debugging...

- Rick