How would one go about combining Razor parameters with Javascript?
I am using Wufoo Forms and I need to fill in some parameters by the author to render the form from my Macro.
I have indicated where my Razor Parameter needs to go indicated by "RazorParamHere".
I tried it by adding the value of my var to the JS but it outputted an error on the frontend. Saved fine in the scripting editor in Umbraco. Any ideas??? Thanks
Additional. I widdled it down to the .initialize and the .display(); that are having issues with my @wufooFormHash. I can add them to the 'var' in the Javascript and the string parameters in the Javascript but not on the functions.
Razor Parameters combined with Javascript
How would one go about combining Razor parameters with Javascript?
I am using Wufoo Forms and I need to fill in some parameters by the author to render the form from my Macro.
I have indicated where my Razor Parameter needs to go indicated by "RazorParamHere".
I tried it by adding the value of my var to the JS but it outputted an error on the frontend. Saved fine in the scripting editor in Umbraco. Any ideas??? Thanks
Additional. I widdled it down to the .initialize and the .display(); that are having issues with my @wufooFormHash. I can add them to the 'var' in the Javascript and the string parameters in the Javascript but not on the functions.
Hi. The <script> element from the razor point of view is nothing different from any other html element. So, you can treat it the same way.
For example:
is working on a reply...