function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
vasu takasivasu takasi 

Unterminated string constant error in IE



Hi i am uisng showModalDialog to get a value from child window in the code shown below,


var popupstyle = "center:yes;resizable:no;dialogHeight:600px;dialogwidth:600px";
var  acc = window.showModalDialog("/apex/CustomAccountLookup",null,popupstyle);

but  its showing error like "Unterminated string constant " in IE

How to resolve it, Please guide me.





Shiva Ramesh @ xcdhrShiva Ramesh @ xcdhr

Hi Vasu


You can use it window.showModalDialog() like following:

window.showModalDialog("{!urlRec}","dialogWidth:800px; dialogHeight:200px; center:yes");

 Alternative solution is


<apex:outputBlock rendered="{!openPopup}">
Bhawani SharmaBhawani Sharma
You will have to define a proper name to window instead of null. Like
window.showModalDialog("/apex/page?id={!Account.Id}","test", "dialogWidth:750px; dialogHeight:550px; center:yes");