Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     sending &variable in HTML thru push-buttons

Read-Only Read-Only Topic
Go
Search
Notify
Tools
sending &variable in HTML thru push-buttons
 Login/Join
 
Member
posted
I messed up the posting thread on my last question. I added HTML code to my reply and now I can't edit it nor delete it. So, I'm starting a new one.

I'm trying to pass an &var in an HTML. with no forms and the report is submitted via [xml] [request].

If anyone has some example code that can be put into an ONCLICK, that would be most helpful.
 
Posts: 8 | Location: Minneapolis, MN | Registered: July 27, 2004Report This Post
Silver Member
posted Hide Post
Here is an example using Javascript to send a varible.
<html>
<head>
<script>


//THIS FUNCTION SENDS YOUR VARIBLE passed to it from the onClick in the
//in the input tag. Change the word WebFocus to a word of your choice and
//you will have a google search on that word.

function sendVarible(Vari)
{
var sendUrl = "http://www.google.com/search?hl=en&q=" +Vari;
window.open(sendUrl);
}
</script>
</head>
<body>


<input type=button name='someButton' value='Click Me' onClick='sendVarible("WebFocus");'>

</body>
</html>


Cut and paste this into an Html file to test it out.


7.6.6 Mainframe
7.6.4 Web Focus
Windows

 
Posts: 45 | Location: Gaffney SC | Registered: March 30, 2007Report This Post
Silver Member
posted Hide Post
BTW.........
You will need to change the letter q in the sending url to the name of your varible you are passing to WebFocus.

http://www.google.com/search?hl=en&q=" +Vari;


7.6.6 Mainframe
7.6.4 Web Focus
Windows

 
Posts: 45 | Location: Gaffney SC | Registered: March 30, 2007Report This Post
Member
posted Hide Post
Lucas,
Thank you so much for your example! I will try it immediately! Awesome.

betty.
 
Posts: 8 | Location: Minneapolis, MN | Registered: July 27, 2004Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     sending &variable in HTML thru push-buttons

Copyright © 1996-2020 Information Builders