I know WM can accept URL Query Strings and as part of the transformation before the first controller splits it out into XML.
However I require the Query String as-is so can be passed on to an iFrame url.
Calling window.location.search on page load does not work as the controller has already stripped the query string off.
However I require the Query String as-is so can be passed on to an iFrame url.
Calling window.location.search on page load does not work as the controller has already stripped the query string off.
RE: URL Query String
As long as you are running your script on the very first WebMaker page that is displayed then you should be able to use the window.location object to get at the query string of the URL used to invoke the form.
If you have made additional requests since, then this is not possible as the URL will have been changed to the name of the last action called. Eg +?+?+++?+?-?/saveForm.do+?+?+?.
If you need the query string on the server, then the easiest option is probably to reconstruct it using an XSL transform like the one I have attached. This XSL takes in the Control block from the XML message, and returns a single element called QueryString.
This will need to be run on the very first request into WebMaker so that the individual query string values are available in the Control section of the message. You can however then cache this information away for future use for example.
I hope this helps.
Regards,
Gerard