Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Whats wrong with this

Status
Not open for further replies.

bean1234

Technical User
Nov 14, 2006
45
US
Hello All,

I get an error at the end of the fucntion i.e a syntax error in Mozilla, can you please let me know can you please let me know what wrong with this ,I am unable to see anything wrong with this piece of code.

Thanks in advance!

Code:
function initializeGroupByList(selectTag,jpfScopeID){


var url = '/GPortal/portlets/User/getColumns.do?jpfScopeID='+jpfScopeID;
var ajax = new Ajax.Request(url,{method:'get',evalScripts:true,onComplete:populateGroupResponse,asynchronous:false });

sortableColumnsArray = window.opener.sortableColumnsArray;

for (i=0;i<sortableColumnsArray.length;i++){

     for(j=0;j<groupColumsArrayDb.length;j++){
    
        if(sortableColumnsArray[i] == groupColumnsArrayDb[j])
            {
                realGroupColumnsArray.push(groupColumnsArrayDb[j]);
                break;
            
            }
            
     
     }
     
 }
 
for(i = 0;i<realGroupColumnsArray.length;i++){
    
        document.getElementById(selectTag.id).options[i] = new Option(realGroupColumnsArray[i],realGroupColumnsArray[i]);
    
    }
}/****The Syntax error shows up here ***/
 
Have you tried commenting out pieces at a time to see what the problem is. My guess is that you have a missing bracket somewhere ABOVE this code in your file.

[monkey][snake] <.
 
Thanks Monksnake,actually there was a syntax error outside this function in the js file , for some reason the mozilla debuger was pointing to this curly bracket .

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top