www.webdeveloper.com
Results 1 to 4 of 4

Thread: missing ) after argument list

  1. #1
    Join Date
    Oct 2008
    Location
    Leeds, UK
    Posts
    68

    missing ) after argument list

    Hi All

    Can someone please tell me what is wrong with this code I'm getting this error;

    missing ) after argument list

    Code:
    setTimeout('loadInIFrame(\'create_purchase_order.jsp\')', 1000);
    Many Thanks
    Zed

  2. #2
    Join Date
    Dec 2005
    Location
    FL
    Posts
    7,364
    Can you try:
    Code:
    setTimeout('loadInIFrame("create_purchase_order.jsp")', 1000);

  3. #3
    Join Date
    Oct 2008
    Location
    Leeds, UK
    Posts
    68
    Quote Originally Posted by JMRKER View Post
    Can you try:
    Code:
    setTimeout('loadInIFrame("create_purchase_order.jsp")', 1000);
    Thank you JMRKER that has worked I had to put back slash in..

    Code:
    setTimeout('loadInIFrame(\"create_purchase_order.jsp\")', 1000);

  4. #4
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428
    To avoid any mismatch regarding the quotes, you may use an inner function as an argument:
    Code:
    setTimeout(function(){loadInIFrame('create_purchase_order.jsp')}, 1000);

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles