on 03-30-2007 7:31 PM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
9 | |
7 | |
3 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.