As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
I have a html page that accepts input from users. And then on a button click opens another html url. I have an embedded procedure on the second html page that needs the input from the previous page. I can pass the params using ?param1=xyz, but not sure how to pass that to the embedded procedure. Any ideas on how this can be achieved?
Thanks, NamThis message has been edited. Last edited by: Kerry,
I use little pieces of javascript to do exactly that. the following code just shows on the page whatever is to the right of the ? mark in the url (these are the parameters of the page), you can of course modify the script to filter out whatever you need and apply it to whatever you want on your page.
<script>
var locate = window.location;
document.user.naam.value = locate;
var text = document.user.naam.value;
var params=text.indexOf("?");
document.write(text.substring(params+1,text.length));
</script>
Hope this helps ...
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
Thanks a lot for your reply! I used a similar script as below to read the param and bind it to a text box which in turn is assigned to the procedure. You helped me reassure javascript is the right choice here.
function window_onload() {
UpdateData();
fullURL = parent.document.URL;
val = fullURL.substring(fullURL.indexOf('?')+8, fullURL.length);
edit1.value=val;
}
Yet another problem I have is the procedure executes at the same time the text box is populated so it does not get the value when it executes. Below is the code. Please let me know how I can get the procedure to run with the param passed in.
Ok. here is how I got it to work. I am firing a button click event in which the procedure is executed. I dont know if its the best way but here it is. Any suggestions are welcome.