Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Sep 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    missing ) after argument list

    Hi ...

    i am trying to run my website but when i am accessing through the link....i am getting missing ) after argument list .it showing the following peace of code in the firebug....

    missing ) after argument list
    else{$("input[id^=channelPid_]")\n

    can anyone help me to resolve this issues..its been three days i am working on it but no clue...

    thanks in advance

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    26,588
    Thanks
    80
    Thanked 4,497 Times in 4,461 Posts
    Show the full code for about 5 or 10 lines on either side of that.

    Or just show us the website (give us the URL).
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #3
    New to the CF scene
    Join Date
    Sep 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    here is the code

    $(document).ready(function() {
    if('${actionBean.networkArea.ipemanagertype.ipemanagertypeenum}' != 'other'){
    if('${actionBean.channel.networkarea.networksetup.startTimeCurrent}'){
    $("input[id^=channelPid_]").each(
    function(){
    $(this).parent().find('div[class=errorMsg]').remove();
    $(this).removeClass('error');
    $(this).val("")
    .css("background-color", "#dcdcdc")
    .attr("disabled", "disabled");
    });}
    else{$("input[id^=channelPid_]")
    .attr("disabled", "");
    }
    } else {
    $("input[id^=channelPid_]").each(
    function(){
    $(this).parent().find('div[class=errorMsg]').remove();
    $(this).removeClass('error');
    $(this).val("")
    .css("background-color", "#dcdcdc")
    .attr("disabled", "disabled");
    }
    );
    }

  • #4
    Senior Coder
    Join Date
    Dec 2010
    Posts
    2,398
    Thanks
    12
    Thanked 570 Times in 563 Posts
    With [ code ] and a proper indentation you would have seen this
    Code:
    $(document).ready(function() {
       if('${actionBean.networkArea.ipemanagertype.ipemanagertypeenum}' != 'other'){
          if('${actionBean.channel.networkarea.networksetup.startTimeCurrent}'){
             $("input[id^=channelPid_]").each(
                function(){
                   $(this).parent().find('div[class=errorMsg]').remove();
                   $(this).removeClass('error');
                   $(this).val("")
                      .css("background-color", "#dcdcdc")
                      .attr("disabled", "disabled");
          });}
          else{$("input[id^=channelPid_]")
             .attr("disabled", "");
          }
       } else {
          $("input[id^=channelPid_]").each(
             function(){
                $(this).parent().find('div[class=errorMsg]').remove();
                $(this).removeClass('error');
                $(this).val("")
                   .css("background-color", "#dcdcdc")
                   .attr("disabled", "disabled");
             }
          );
       }
    The closing parentheses for the very first line are missing. This should be correct
    Code:
    $(document).ready(function() {
       if('${actionBean.networkArea.ipemanagertype.ipemanagertypeenum}' != 'other'){
          if('${actionBean.channel.networkarea.networksetup.startTimeCurrent}'){
             $("input[id^=channelPid_]").each(
                function(){
                   $(this).parent().find('div[class=errorMsg]').remove();
                   $(this).removeClass('error');
                   $(this).val("")
                      .css("background-color", "#dcdcdc")
                      .attr("disabled", "disabled");
          });}
          else{$("input[id^=channelPid_]")
             .attr("disabled", "");
          }
       } else {
          $("input[id^=channelPid_]").each(
             function(){
                $(this).parent().find('div[class=errorMsg]').remove();
                $(this).removeClass('error');
                $(this).val("")
                   .css("background-color", "#dcdcdc")
                   .attr("disabled", "disabled");
             }
          );
       } 
    });

  • #5
    New to the CF scene
    Join Date
    Sep 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    sry i forgot to post complete code here it is

    $(document).ready(function() {
    if('${actionBean.networkArea.ipemanagertype.ipemanagertypeenum}' != 'other'){
    if('${actionBean.channel.networkarea.networksetup.startTimeCurrent}'){
    $("input[id^=channelPid_]").each(function(){
    $(this).parent().find('div[class=errorMsg]').remove();
    $(this).removeClass('error');
    $(this).val("")
    .css("background-color", "#dcdcdc")
    .attr("disabled", "disabled");
    });}
    else{$("input[id^=channelPid_]")
    .attr("disabled", "");
    }
    } else {
    $("input[id^=channelPid_]").each(function(){
    $(this).parent().find('div[class=errorMsg]').remove();
    $(this).removeClass('error');
    $(this).val("")
    .css("background-color", "#dcdcdc")
    .attr("disabled", "disabled");
    }
    );
    }
    if(${actionBean.mode == 'update' && actionBean.channel.networkarea.networksetup.startTimeInPast
    && !actionBean.channel.networkarea.networksetup.startTimeCurrent}){
    disableForm("broadcastChannelForm");

    }
    if(${actionBean.mode == 'update' && actionBean.channel.networkarea.networksetup.startTimeCurrent}){
    selScrDisableForm("broadcastChannelForm");
    }

    });


  •  

    Posting Permissions

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