Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi Everyone,
Grateful if someone can help me out on this issue.
I need to pass a session storage value as parameter in a razor script in a template
In my template i call my macro script that allows me to pass this dynamic parameter via a session storage variable
<umbraco:Macro offerName= sessionStorage.getItem('offerName')> Alias="MoreOffer" runat="server"/>
Thank you for your help and response.
Good day
Hi Preetee,
Nice question.
You can't call js method - sessionStorage.getItem('offerName') inside serverside tag. This tag is working on page load event, sessionStorage.getItem('offerName') working inside borwser.
<umbraco:Macro Alias="MoreOffer" runat="server"/>
Only way is to pass data from browser to server.
Thanks,
Alex
Do you need some help?
Thanks
Hi Alex,
Am sorry for the late reply as am back after a long time, i got it sorted out. Thank you very much ! thank you
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How to insert a javascript variable as Macro Parameter in a razor script
Hi Everyone,
Grateful if someone can help me out on this issue.
I need to pass a session storage value as parameter in a razor script in a template
In my template i call my macro script that allows me to pass this dynamic parameter via a session storage variable
Thank you for your help and response.
Good day
Hi Preetee,
Nice question.
You can't call js method - sessionStorage.getItem('offerName') inside serverside tag. This tag is working on page load event, sessionStorage.getItem('offerName') working inside borwser.
Only way is to pass data from browser to server.
Thanks,
Alex
Hi Preetee,
Do you need some help?
Thanks
Hi Alex,
Am sorry for the late reply as am back after a long time, i got it sorted out. Thank you very much ! thank you
is working on a reply...