Also I don't want t show the url on the webpage itself. Some text or report name will be there and when user will click on that, it will go to that that url of pdf. Can someone please tell me how I can pass the variable to href instead of passing the url? How can we do this? Posted Sep am Member Add a Solution. Accept Solution Reject Solution.
First create a string that would look something like this:. Copy Code. Posted Sep am RmcbainTheThird. Add your solution here. OK Paste as. Treat my content as plain text, not as HTML. Viewed times. And then you have two ways to solve the problem, use pure Javascript or use jQuery:,You should give an id to you link, like this:, Podcast The big problem with only being able to solve big problems ,How can I pass the same value to an HTML link so that the end result would be: You should give an id to you link, like this:.
IF you use jquery you can use your onLoad function and inside inject the following:. Take the URL we used above:. Create a Portal shortcut and associate the link with that shortcut. Viewed times. For instance:. Create a Portal shortcut and associate the link with that shortcut. In the following example, the page tests this parameter with the JSTL tag c:choose:,The following DSP tags let you pass parameters to the page that they invoke: You can pass parameters to the target page by embedding one or more dsp:param tags between the open and close tags.
Other "parameters-undefined" queries related to "Href with parameters" React ckeditor5 How can I send parameters to a custom image upload adapter?
Reactjs: formik: onSubmit callback function: what parameters i can use Types of parameters 'event' and 'event' are incompatible Send extra custom parameters in silent renew for react app How to invoke arrow function having parameters in reactJs Show or hide elements based on url parameters in react.
The Overflow Blog. Does ES6 make JavaScript frameworks obsolete? Podcast Do polyglots have an edge when it comes to mastering programming Featured on Meta. Now live: A fully responsive profile. Visit chat. Related Hot Network Questions. Question feed.
0コメント