Results 1 to 2 of 2

Thread: Calling javascript inside a div-tag - using PHP

  1. #1
    Join Date
    Aug 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Calling javascript inside a div-tag - using PHP

    Hi everybody,

    I'm currently working on a PHP site, and I have chosen to use javascript for displaying error messages. It works fine in Firefox, but shows "Web page expired" in IE. For example: http://www.waw.dk/beta
    And just submit any form, and you'll see.

    I have tried a couple of things, and I come to the conclusion, that it is the javascript, particularly the way I call the function. My PHP code checks that every field is filled out properly, and if isn't, it writes the following inside the div-tag:

    <script language=\"JavaScript\">
    showDialog('Fejl','Error-message here','error',2);
    </script>

    I hope you can help me, thanks!

  2. #2
    Join Date
    Jun 2008
    Posts
    589
    Thanks
    13
    Thanked 54 Times in 54 Posts
    Blog Entries
    1

    Default

    It would be helpful if you could display the code for easy reading. I do not know what your function does - HOW IT WORKS.

    -magicyte

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •