Subversion Repositories SmartDukaan

Rev

Rev 10582 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 10582 Rev 11938
Line 1... Line 1...
1
 
1
 
2
function spliturl(url)
2
function spliturl(url)
3
{
3
{
4
 fullpath = url.substring(0, (url.indexOf("?") == -1) ? url.length : url.indexOf("?"));
4
 fullpath = url.substring(0, (url.indexOf("?") == -1) ? url.length : url.indexOf("?"));
5
 params =fullpath.split('<?=base_url()?>');
5
 params =fullpath.split('<?=base_url()?>');
6
 //console.log(params[1]);
-
 
7
 getparams = url.split('?');
6
 getparams = url.split('?');
8
 //console.log(getparams[1]);
-
 
9
 var output = new Array();
7
 var output = new Array();
10
 output[0] = params[1]; //data controller to parameters
8
 output[0] = params[1]; //data controller to parameters
11
 output[1] = getparams[1];//get input
9
 output[1] = getparams[1];//get input
12
 output[2]=fullpath; //full url expcept get input
10
 output[2]=fullpath; //full url expcept get input
13
 console.log(output);
-
 
14
 return output;
11
 return output;
15
}
12
}
16
 
13
 
17
function autoComplete(){    
14
function autoComplete(){    
18
  var outp = document.getElementById("search-result"); 
15
  var outp = document.getElementById("search-result"); 
Line 208... Line 205...
208
    
205
    
209
  }
206
  }
210
 
207
 
211
function setValue(value){
208
function setValue(value){
212
  document.getElementById('autocomplete').value = value;
209
  document.getElementById('autocomplete').value = value;
213
}
-
 
214
210
}
-
 
211