Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-30-2011, 04:55 AM   PM User | #1
shanti.kala
New to the CF scene

 
Join Date: Sep 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
shanti.kala is an unknown quantity at this point
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
shanti.kala is offline   Reply With Quote
Old 09-30-2011, 05:33 AM   PM User | #2
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,249
Thanks: 59
Thanked 3,999 Times in 3,968 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
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.
Old Pedant is online now   Reply With Quote
Old 09-30-2011, 05:35 AM   PM User | #3
shanti.kala
New to the CF scene

 
Join Date: Sep 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
shanti.kala is an unknown quantity at this point
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");
}
);
}
shanti.kala is offline   Reply With Quote
Old 09-30-2011, 07:09 AM   PM User | #4
devnull69
Senior Coder

 
Join Date: Dec 2010
Posts: 2,245
Thanks: 10
Thanked 531 Times in 525 Posts
devnull69 will become famous soon enough
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");
         }
      );
   } 
});
devnull69 is offline   Reply With Quote
Old 09-30-2011, 07:33 AM   PM User | #5
shanti.kala
New to the CF scene

 
Join Date: Sep 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
shanti.kala is an unknown quantity at this point
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");
}

});
shanti.kala is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:51 AM.


Advertisement
Log in to turn off these ads.