I'm trying to make this link below work with IE7 but it doesn't fire. Whereas is ok in IE9 and firefox. Any ideas what i'm doing wrong :( THanks

   <a href="#" onclick="openDialog('/Comms.aspx?sc={@ID}'); return true "><xsl:value-of select="@Title"/></a>

<script type="text/javascript">
function openDialog(FormPath) {
    var options = {
        url: FormPath,
        width: 950,
        height: 800,
        title: "Communications",

1 Answer 1


Remove comma right after allowMaximize:'true', :)
When writing javascript always track script errors that might appear. In IE they displays in left bottom corner, you can click it to see details and also can check "Always show this message for webpage errors" and this popup will show every time when javascript errors appear.

  • THanks for the Kai.Missed that :( What IE showed the error.IE7 or IE 8. Just curious as i notice the Doen error on the let but doesn't show me the exact problem Cheers
    – naijacoder
    Commented Jan 4, 2012 at 6:52
  • Cheers, solved the exact same error for me. Error only occured in IE7, worked fine in 8 & 9.
    – GavinB
    Commented May 30, 2012 at 22:30
  • Yip.. i've seen this before. Good answer!
    – Fox
    Commented Feb 5, 2013 at 16:04
  • As an aside, I would suggest against developing for IE7. There are several CSS inconsistances that are absolutely annoying, such as ASP buttons set to be the page's "default button" rendering with an extra border as well as not being able to use display: inline-block; in your CSS. I noticed this when we were developing locally and our IE policy was set to run all Intranet sites in Compatibility mode which is AWFUL!
    – EHorodyski
    Commented Mar 14, 2013 at 18:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.