I am trying to open a modal window from current screen. The URL i give is
"myAction.do?action=value&reqParam1="+reqparamValue+"&reqParam2="+reqParam2Value
Values of reqParamValue and reqParam2Value are passed like this.
reqParamValue = document.getElementById('param1').value;
reqParam2Value = document.getElementById('param2').value;
The window open action is triggered by click on an image. This is giving an error alert saying Error while running scripts on this page.
But if i use the URL as
"myAction.do?action=value&reqParam1=1&reqParam2=2"
that is instead of taking values from proper elements, if i give some hard coded values it is working fine without errors.
Instead of that image i can change that to an anchor link also.
please help on this.
regards,
Surendarprabu.R
![](https://coderanch.com/images/smilies/jr-banghead.gif)