How to show a server side error message in a popup using php

Posted by Fero on Stack Overflow See other posts from Stack Overflow or by Fero
Published on 2010-05-07T11:21:36Z Indexed on 2010/05/07 17:18 UTC
Read the original article Hit count: 288

Filed under:
|
|

Hi all,

I found some of the similar questions here but they are all in C#.

So kindly tell me the easiest way to show the server side error message using popup.

The popup may be anything like thickbox, modalpopup etc...

Here is the sample code. I didn't get the error message in the popup.

<script type="text/javascript" src="thickbox/jquery-latest.js"></script>
<script type="text/javascript" src="thickbox/thickbox.js"></script>
<link href="thickbox/thickbox.css" rel="stylesheet" type="text/css" />



<span class="prtexterror" style="color:#FF0000;display:none;" id="hiddenModalContent" >{$error_login}</span>


{literal}
<script language="javascript" type="text/javascript">



  $(document).ready(function() {
    tb_show("Please, login", "?tb_inline=true&inlineId=hiddenModalContent&height=180&width=300&modal=true", null);
});



</script>
{/literal}

Any other ways are always welcome. thanks in advance

© Stack Overflow or respective owner

Related posts about php

Related posts about JavaScript