Subversion Repositories SmartDukaan

Rev

Rev 15018 | Rev 15027 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 15018 Rev 15020
Line 50... Line 50...
50
        String jsCode = "javascript:try{var ele=document.getElementById('attribute-select-0');ele.value ="+"'"+color+"'"+"';ele.onchange();}catch(error){Android.onError(error.message);}";
50
        String jsCode = "javascript:try{var ele=document.getElementById('attribute-select-0');ele.value ="+"'"+color+"'"+"';ele.onchange();}catch(error){Android.onError(error.message);}";
51
        return jsCode;
51
        return jsCode;
52
    }
52
    }
53
 
53
 
54
    private void parseUrl() throws URISyntaxException{
54
    private void parseUrl() throws URISyntaxException{
55
        List<NameValuePair> params = URLEncodedUtils.parse(new URI(url), "UTF-8");
-
 
56
        for (NameValuePair param : params){
-
 
57
            if (param.getName().equalsIgnoreCase("supc")){
-
 
58
                supc = param.getValue();
55
        supc = request.getParameter("supc");
59
            }
-
 
60
        }
-
 
61
        productUrl = new URI(url).getHost()+new URI(url).getPath();
56
        productUrl = new URI(url).getHost()+new URI(url).getPath();
62
        if (!productUrl.startsWith("http")){
57
        if (!productUrl.startsWith("http")){
63
            productUrl = "http://"+productUrl;
58
            productUrl = "http://"+productUrl;
64
        }
59
        }
65
    }
60
    }