on 03-25-2015 11:02 PM
Hi
Is there a way to read the page attribute value inside a javascript? i want to make a decision in java script based on a page attribute value set. how it can be done?
please any pointers on it is much appreciated
Code in java script - "onload" is page attribute |
---|
function getURLParam() { if <%= onload %> != 'X'; { do someting} } |
inside the OnInputProcessing event the page attribute is set as:
onload = 'X'.
You could try placing it as a hidden field with id='onload' in your .htm, then you should be able to reference it in your javascript as :
var onload = document.getElementById('onload').value;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.