91+ results for 'encodeURIComponent lang:Javascript' (0 ms)

Not the results you expected?

Serializer.js (https://github.com/ghiata/qooxdoo.git) JavaScript · 374 lines

98

99 if (value instanceof qx.core.Object && qxSerializer != null) {

100 var encValue = encodeURIComponent(qxSerializer(value));

101 if (encValue === undefined) {

102 var encValue = encodeURIComponent(value);

103 }

104 } else {

105 var encValue = encodeURIComponent(value);

106 }

107 return encodeURIComponent(name) + "=" + encValue + "&";

api.js (https://gitlab.com/artofhuman/gitlab-ce) JavaScript · 326 lines

100 // Return single project

101 project(projectPath) {

102 const url = Api.buildUrl(Api.projectPath).replace(':id', encodeURIComponent(projectPath));

103

104 return axios.get(url);

108 projectMergeRequest(projectPath, mergeRequestId, params = {}) {

109 const url = Api.buildUrl(Api.projectMergeRequestPath)

110 .replace(':id', encodeURIComponent(projectPath))

111 .replace(':mrid', mergeRequestId);

112

116 projectMergeRequestChanges(projectPath, mergeRequestId) {

117 const url = Api.buildUrl(Api.projectMergeRequestChangesPath)

118 .replace(':id', encodeURIComponent(projectPath))

119 .replace(':mrid', mergeRequestId);

120

comments.js (https://bitbucket.org/jaredstanley/facebook-js-sdk.git) JavaScript · 120 lines

63 var index = document.URL.indexOf('#');

64 if (index > 0) {

65 attr.xid = encodeURIComponent(document.URL.substring(0, index));

66 }

67 else {

68 attr.xid = encodeURIComponent(document.URL);

69 }

70 }

SF_submit.js (https://github.com/ChuguluGames/mediawiki-svn.git) JavaScript · 150 lines

114

115 if (wgAction == "formedit") {

116 params += "&target=" + encodeURIComponent( wgPageName );

117 } else if ( wgCanonicalSpecialPageName == "FormEdit") {

118

132

133 if (stop >= 0) {

134 params += "&form=" + encodeURIComponent( url.substring(start, stop) );

135

136 start = stop + 1;

137 params += "&target=" + encodeURIComponent( url.substr(start) );

138

139 } else {

jquery.history.js (https://github.com/jrub/silexslides.git) JavaScript · 113 lines

16 var locationWrapper = {

17 put: function(hash, win) {

18 (win || window).location.hash = encodeURIComponent(hash);

19 },

20 get: function(win) {

js.cookie.js (https://github.com/cuckoobox/cuckoo.git) JavaScript · 151 lines

60

61 if (!converter.write) {

62 value = encodeURIComponent(String(value))

63 .replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);

64 } else {

66 }

67

68 key = encodeURIComponent(String(key));

69 key = key.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent);

70 key = key.replace(/[\(\)]/g, escape);

io-form-debug.js (https://gitlab.com/Mirros/cdnjs) JavaScript · 88 lines

21 _serialize: function(o) {

22 var f = (typeof o.id === 'object') ? o.id : Y.config.doc.getElementById(o.id),

23 eUC = encodeURIComponent,

24 data = [],

25 useDf = o.useDisabled || false,

35

36 if ((useDf) ? n : (n && !d)) {

37 n = encodeURIComponent(n) + '=';

38 v = encodeURIComponent(e.value);

stringify.js (https://gitlab.com/RedDedVolvo/solidgoald) JavaScript · 281 lines

184

185 var now = new Date();

186 var str = 'a=' + encodeURIComponent(now.toISOString());

187 expect(Qs.stringify({ a: now })).to.equal(str);

188 done();

WPForms.js (https://github.com/livinglab/openlab.git) JavaScript · 85 lines

53 $('body').append(modaldialog);

54

55 var query = encodeURIComponent(shortcode).split('%3D%22').join('=').split('%22%20').join('&');

56

57 var $iframe_template = $("<iframe src='" + window.ajaxurl + "?action=outofthebox-getpopup&type=shortcodebuilder&asuploadbox=1&" + query + "' width='100%' height='600' tabindex='-1' frameborder='0'></iframe>");

Serializer.js (https://github.com/Wkasel/qooxdoo.git) JavaScript · 344 lines

89 {

90 if (value instanceof qx.core.Object && qxSerializer != null) {

91 var encValue = encodeURIComponent(qxSerializer(value));

92 if (encValue === undefined) {

93 var encValue = encodeURIComponent(value);

94 }

95 } else {

96 var encValue = encodeURIComponent(value);

97 }

98 return encodeURIComponent(name) + "=" + encValue + "&";

script.js (https://bitbucket.org/miya0001/wp-typing.git) JavaScript · 132 lines

123

124 var url = 'https://twitter.com/intent/tweet?url=http://firegoby.jp/typing/&text=';

125 var text = encodeURIComponent("My score is "+wpm+' and Accuracy is '+acc+'% #wptyping');

126 $('#tweet').attr('href', url+text);

127

githugs.js (https://github.com/jakemcgraw/githugs-public.git) JavaScript · 121 lines

62 var body = [];

63 for (var key in data) {

64 body.push(key + '=' + encodeURIComponent(data[key]));

65 }

66 data = body.join('&');

73 var params = [];

74 for (var key in data) {

75 params.push(key + '=' + encodeURIComponent(data[key]));

76 }

77 this.request('GET', url + '?' + params.join('&'), false, callback);

main.js (https://github.com/xuwei-k/xuwei-k.github.com.git) JavaScript · 165 lines

1 const download = function(filename, text) {

2 const element = document.createElement('a');

3 element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text));

4 element.setAttribute('download', filename);

5

panel.js (https://github.com/mozilla-b2g/gaia.git) JavaScript · 98 lines

84 // Non-ASCII chars in SSID will be encoded by UTF-8, and length of

85 // each char might be longer than 1 byte.

86 // Use encodeURIComponent() to encode ssid, then calculate correct

87 // length.

88 var encoder = new TextEncoder('utf-8');

parameters.js (https://github.com/PatientOrderSets/ICEfaces-1.8.2-Enhancements.git) JavaScript · 103 lines

89

90 asURIEncodedString: function() {

91 return encodeURIComponent(this.name) + '=' + encodeURIComponent(this.value);

92 },

93

settings.js (https://github.com/runeh/dragonfly-stp-1.git) JavaScript · 150 lines

109 {

110 document.cookie = name + "="+

111 encodeURIComponent(value)+

112 "; expires="+(new Date(new Date().getTime()+ (360 * 24 * 60 * 60 * 1000 ))).toGMTString()+

113 "; path=/";

publish.js (https://github.com/FesterCluck/npm.git) JavaScript · 106 lines

36 }

37 data._id = data.name+"@"+data.version

38 var attURI = encodeURIComponent(data.name)

39 + "/-/"

40 + encodeURIComponent(data.name)

41 + "-"

42 + encodeURIComponent(data.version)

43 + ".tgz"

44 data.dist = data.dist || {}

59 return log.er(cb, "Failed PUT response "+(response && response.statusCode))(er)

60 }

61 var dataURI = encodeURIComponent(data.name)+"/"+encodeURIComponent(data.version)

62

63 var tag = data.tag || npm.config.get("tag")

javascript.js (https://gitlab.com/JunaYa/JunaYa-blog) JavaScript · 113 lines

14 built_in:

15 'eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent ' +

16 'encodeURI encodeURIComponent escape unescape Object Function Boolean Error ' +

17 'EvalError InternalError RangeError ReferenceError StopIteration SyntaxError ' +

18 'TypeError URIError Number Math Date String RegExp Array Float32Array ' +

jasmine-html.js (https://bitbucket.org/ezietsman/siyavula-annotator.git) JavaScript · 190 lines

58 var suite = suites[i];

59 var suiteDiv = this.createDom('div', { className: 'suite' },

60 this.createDom('a', { className: 'run_spec', href: '?spec=' + encodeURIComponent(suite.getFullName()) }, "run"),

61 this.createDom('a', { className: 'description', href: '?spec=' + encodeURIComponent(suite.getFullName()) }, suite.description));

130 }

131 var specDiv = this.createDom('div', { className: 'spec ' + status },

132 this.createDom('a', { className: 'run_spec', href: '?spec=' + encodeURIComponent(spec.getFullName()) }, "run"),

133 this.createDom('a', {

134 className: 'description',

135 href: '?spec=' + encodeURIComponent(spec.getFullName()),

136 title: spec.getFullName()

137 }, spec.description));

querystring-stringify-debug.js (https://gitlab.com/alidz1982/cdnjs) JavaScript · 112 lines

19 * the delimiters would not normally be handled properly by the builtin

20 * (en|de)codeURIComponent functions.

21 * Default: encodeURIComponent

22 * @module querystring

23 * @submodule querystring-stringify

25 * @static

26 **/

27 QueryString.escape = encodeURIComponent;

28

29 /**

js.cookie.js (https://gitlab.com/Mirros/cdnjs) JavaScript · 139 lines

56 } catch (e) {}

57

58 value = encodeURIComponent(String(value));

59 value = value.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);

60

61 key = encodeURIComponent(String(key));

62 key = key.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent);

63 key = key.replace(/[\(\)]/g, escape);

demo.js (https://github.com/aadrian/highcharts.com.git) JavaScript · 120 lines

66 if (Object.hasOwnProperty.call(obj, p)) {

67 str.push(

68 encodeURIComponent(p) + '=' + encodeURIComponent(obj[p])

69 );

70 }

jasmine_additions.js (https://github.com/heimidal/midas.git) JavaScript · 117 lines

68 }

69 var specDiv = this.createDom('div', { className: 'spec ' + status, style: style },

70 this.createDom('a', { className: 'run_spec', href: '?spec=' + encodeURIComponent(spec.getFullName()) }, "run"),

71 this.createDom('a', {

72 className: 'description',

73 href: '?spec=' + encodeURIComponent(spec.getFullName()),

74 title: spec.getFullName()

75 }, spec.description));

addcslashes.js (https://gitlab.com/rickoverman/doo-cli) JavaScript · 158 lines

135 default:

136 //target += _pad(cca.toString(8), 3);break; // Sufficient for UTF-16

137 encoded = encodeURIComponent(c);

138

139 // 3-length-padded UTF-8 octets

sha1.js (https://gitlab.com/link233/bootmw) JavaScript · 147 lines

52

53 // utf8_encode

54 str = unescape(encodeURIComponent(str));

55 var str_len = str.length;

56

jsCookieTest.js (https://gitlab.com/mohamed_hussein/prodt) JavaScript · 275 lines

90 browser

91 .setCookie({

92 name: encodeURIComponent(' js_cookie_test_encoded'),

93 value: encodeURIComponent(' red panda'),

PingServerFacts.js (https://gitlab.com/scgitlab/dsdsds) JavaScript · 81 lines

32 QUnit.asyncTimeoutTest(transport + " transport calls Ping Server with custom query string in url", testUtilities.defaultTestTimeout, function (end, assert, testName) {

33 var connection = testUtilities.createHubConnection(end, assert, testName),

34 expectedQs = window.encodeURIComponent(testName),

35 savedAjax = $.ajax,

36 testPingServer = function () {

axurerp_pagespecificscript.js (https://github.com/openstate/Wiekiesjij.git) JavaScript · 313 lines

30

31 function GetQuerystring() {

32 return '#OnLoadVariable=' + encodeURIComponent($OnLoadVariable) + '&CSUM=1';

33 }

34

person.js (https://gitlab.com/mikebavon/TripTicket) JavaScript · 122 lines

42 var confpass = document.getElementById('regconfirmpass').value;

43

44 var params = 'fname=' + encodeURIComponent(fname)

45 + '&lname=' + encodeURIComponent(lname)

46 + '&id=' + encodeURIComponent(id)

47 + '&username=' + encodeURIComponent(username)

48 + '&password=' + encodeURIComponent(password);

49

50 if (password == confpass){

79 var password = document.getElementById('password').value;

80

81 var params = 'username=' + encodeURIComponent(username)

82 + '&password=' + encodeURIComponent(password);

details.js (https://github.com/FriedWishes/showslow.git) JavaScript · 102 lines

83 {

84 height: "15em",

85 initialRequest: "url=" + encodeURIComponent(url) + "&ver=" + ydataversion

86 });

87

89 {

90 height: "15em",

91 initialRequest: "url=" + encodeURIComponent(url) + "&ver=" + psdataversion

92 });

93

95 {

96 height: "15em",

97 initialRequest: "url=" + encodeURIComponent(url) + "&ver=" + dtdataversion

98 });

99 }

query.js (https://github.com/raidrush-dev/JNode.git) JavaScript · 461 lines

420

421 /**

422 * uses encodeURIComponent

423 *

424 * @param {String} value

427 encode: function encode(value)

428 {

429 return encodeURIComponent(value);

430 }

431 };

cp.js (https://github.com/bigswitch/snac.git) JavaScript · 117 lines

108 case 'password':

109 case 'textarea':

110 postStr += formElem.name + '=' + encodeURIComponent(formElem.value) + '&'

111 break;

112 }

trees.js (https://github.com/webpulser/forgeos_cms.git) JavaScript · 94 lines

82 url: url,

83 complete: putInPageList(jQuery(link).text(), jQuery(link).attr('title'), block_id, page_id),

84 data: 'authenticity_token=' + encodeURIComponent(window._forgeos_js_vars.token),

85 dataType:'text',

86 type:'post'

encode.js (https://github.com/v0lkan/o2.js.git) JavaScript · 138 lines

122

123 exports.escape = function(str) {

124 return encodeURIComponent([kEmpty, str].join(kEmpty));

125 };

126

actions_spec.js (https://gitlab.com/klml/gitlab-ee) JavaScript · 448 lines

121 const url = Api.buildUrl(Api.createBranchPath).replace(

122 ':id',

123 encodeURIComponent(projectEndpoint),

124 );

125 mock.onGet(url).replyOnce(httpStatusCodes.OK, mockBranches);

script.js (https://github.com/anod/Web-Admin-Lite-Perl.git) JavaScript · 136 lines

95 function execute(cmd) {

96 terminal_history.push(cmd);

97 var cmd_escaped = encodeURIComponent(cmd);

98 $.ajax({

99 type: "POST",

bootstrap-table-cookie.js (https://gitlab.com/Mirros/cdnjs) JavaScript · 234 lines

36 }

37

38 document.cookie = encodeURIComponent(cookieName) + '=' + encodeURIComponent(sValue) + calculateExpiration(vEnd) + (sDomain ? '; domain=' + sDomain : '') + (sPath ? '; path=' + sPath : '') + (bSecure ? '; secure' : '');

39 return true;

40 };

45 return null;

46 }

47 return decodeURIComponent(document.cookie.replace(new RegExp('(?:(?:^|.*;)\\s*' + encodeURIComponent(cookieName).replace(/[\-\.\+\*]/g, '\\$&') + '\\s*\\=\\s*([^;]*).*$)|^.*$'), '$1')) || null;

48 };

49

52 return false;

53 }

54 return (new RegExp('(?:^|;\\s*)' + encodeURIComponent(cookieName).replace(/[\-\.\+\*]/g, '\\$&') + '\\s*\\=')).test(document.cookie);

55 };

56

yql.js (https://gitlab.com/Mirros/cdnjs) JavaScript · 197 lines

115

116 Y.each(this._params, function(v, k) {

117 qs.push(k + '=' + encodeURIComponent(v));

118 });

119

application.js (https://github.com/GerManson/german.pikevo.com.git) JavaScript · 115 lines

86 var currentImage = Application.img.find("img");

87

88 //nextFrameImage = encodeURIComponent(nextFrameImage);

89

90 //console.debug(nextFrameImage);

test.js (https://bitbucket.org/asergeev1970/complaints.git) JavaScript · 1242 lines

22 $.each(files, function (index, file) {

23 $.ajax({

24 url: url + '?file=' + encodeURIComponent(file.name),

25 type: 'DELETE'

26 });

form.js (https://bitbucket.org/thomashii/vtigercrm-6-for-postgresql.git) JavaScript · 298 lines

114

115 if (parameter) {

116 var key = encodeURIComponent(parameter[0]);

117 if (key.length == 0) return;

118

121

122 return parameter[1].map(function(value) {

123 return key + '=' + encodeURIComponent(value);

124 }).join('&');

125 }

chunked-uploads.js (https://github.com/vaibhav011286/file-uploader.git) JavaScript · 346 lines

143 assert.ok(!uploadRequest.requestHeaders["x-ms-meta-qqfilename"]);

144 assert.equal(uploadRequest.method, "PUT");

145 assert.equal(uploadRequest.url, expectedSasUri + "&comp=block&blockid=" + encodeURIComponent(btoa("00000")));

146 uploadRequest.respond(201, null, null);

147

160 assert.ok(!uploadRequest.requestHeaders["x-ms-meta-qqfilename"]);

161 assert.equal(uploadRequest.method, "PUT");

162 assert.equal(uploadRequest.url, expectedSasUri + "&comp=block&blockid=" + encodeURIComponent(btoa("00001")));

163 uploadRequest.respond(201, null, null);

164

237 assert.equal(fileTestHelper.getRequests().length, 3);

238 uploadRequest = fileTestHelper.getRequests()[2];

239 assert.equal(uploadRequest.url, expectedSasUri + "&comp=block&blockid=" + encodeURIComponent(btoa("00000")));

240 uploadRequest.respond(404, null, null);

241 assert.equal(uploader.getUploads()[0].status, qq.status.UPLOAD_FAILED);

web_pdf_preview.js (https://gitlab.com/darmawan.fatria/provjabar-upkp-addons) JavaScript · 125 lines

27 };

28 var url = self.session.url('/report/preview', params);

29 //window.open('/report/preview?data=' + encodeURIComponent(JSON.stringify(response)) + '&token=' + new Date().getTime() + '&session_id=' + self.session.session_id, 'report', '');

30 window.open(url, 'report', '');

31 instance.web.unblockUI();

65 }

66 } else {

67 report_url += "?options=" + encodeURIComponent(JSON.stringify(action.data));

68 report_url += "&context=" + encodeURIComponent(JSON.stringify(action.context));

qwebactionmanager.js (https://gitlab.com/darmawan.fatria/provjabar-pelayanan-pendidikan-addons) JavaScript · 97 lines

48 }

49 } else {

50 report_url += "?options=" + encodeURIComponent(JSON.stringify(action.data));

51 report_url += "&context=" + encodeURIComponent(JSON.stringify(action.context));

encode_decode_uri.js (https://gitlab.com/AnneSmile/v8) JavaScript · 102 lines

100

101 checkWithFunctions("encodeURI", "decodeURI");

102 checkWithFunctions("encodeURIComponent", "decodeURIComponent");

103

cookie.js (https://github.com/apontes/RouteFlow.git) JavaScript · 102 lines

72 if(exp && exp.toUTCString){ props.expires = exp.toUTCString(); }

73

74 value = encodeURIComponent(value);

75 var updatedCookie = name + "=" + value, propName;

76 for(propName in props){

test.js (https://gitlab.com/emad.rashad/mls-grading) JavaScript · 1260 lines

22 $.each(result.files, function (index, file) {

23 $.ajax({

24 url: url + '?file=' + encodeURIComponent(file.name),

25 type: 'DELETE'

26 });

git.js (https://github.com/tpurtell/changedna.git) JavaScript · 88 lines

12

13 function encodeRepository(repository) {

14 return encodeURIComponent(repository);

15 }

16 function getOutputBase(repository) {

appFolderList.js (https://bitbucket.org/ferOnti/processmaker.git) JavaScript · 297 lines

270

271

272 //ajax_function('appFolderAjax','documentdelete','sFileUID='+encodeURIComponent(appDocId),'POST');

273 //window.location = 'appFolderList';

274

form.js (https://gitlab.com/axeltizon/magento-demopoweraccess) JavaScript · 194 lines

137 url = url.replace(/[\/&]+$/, '');

138 $.each(params, function(key, value) {

139 url += concat[0] + key + concat[1] + window.encodeURIComponent(value);

140 });

141 return url + (concat[0] === '/' ? '/' : '');

gestionBodega.js (https://bitbucket.org/juliojavieer/prueba_03.git) JavaScript · 216 lines

12 console.log("id_bodega: ");

13

14 var jsonBod = encodeURIComponent(

15 '{"id_bodega":"' + id_bod

16 + '","nombre_bodega":"' + nom_bod + '"}');

64 console.log(nombre);

65

66 var jsonBod = encodeURIComponent(

67 '{"id_bodega":"' + id_bod

68 + '","nombre_bodega":"' + nombre + '"}');

config-6728244dac0c5efcd52dd3415680536b746da4ebc863f0d7322891e465c36303.js (https://gitlab.com/slice-group/paraguana-mall-w) JavaScript · 131 lines

70 } else {

71 for ( var i in params )

72 queryString.push( i + "=" + encodeURIComponent( params[ i ] ) );

73 }

74

cookies.js (https://gitlab.com/alidz1982/cdnjs) JavaScript · 156 lines

79

80 Cookies._generateCookieString = function (key, value, options) {

81 key = key.replace(/[^#$&+\^`|]/g, encodeURIComponent);

82 key = key.replace(/\(/g, '%28').replace(/\)/g, '%29');

83 value = (value + '').replace(/[^!#$&-+\--:<-\[\]-~]/g, encodeURIComponent);

test.js (https://github.com/JianMeng/sproutcore.git) JavaScript · 314 lines

189 var url = testEnv.url || 'http://example.com/search';

190 var q = testEnv.q || 'a search test';

191 return url + '?q='+encodeURIComponent(q);

192 }

193

GAPokki.js (https://github.com/CambriaK/Pokki-1.git) JavaScript · 230 lines

83 var qa = [];

84 for (var key in params) {

85 qa.push(key + '=' + encodeURIComponent(params[key]));

86 }

87 return '?' + qa.join('&');

main.js (https://bitbucket.org/WarrenFNS/epsconnect.git) JavaScript · 258 lines

219 url = url + "&loc=" + Location;

220 url = url + "&rowID=" + Location + "AER" + new Date().getTime();

221 url = url + "&name=" + encodeURIComponent(getElementObject("afterERName").value);

222 url = url + "&desc=" + encodeURIComponent(getElementObject("afterERDesc").value);

223 url = url + "&addr=" + encodeURIComponent(getElementObject("afterERAddr").value);

224 url = url + "&city=" + encodeURIComponent(getElementObject("afterERCity").value);

225 url = url + "&zip=" + encodeURIComponent(getElementObject("afterERZip").value);

226 url = url + "&tel=" + encodeURIComponent(getElementObject("afterERTel").value);

237 url = url + "?category=AfterER";

238 url = url + "&loc=" + Location;

239 url = url + "&rowID=" + encodeURIComponent(currAfterER);

240 url = url + "&name=" + encodeURIComponent(getElementObject("afterERName").value);

241 url = url + "&desc=" + encodeURIComponent(getElementObject("afterERDesc").value);

242 url = url + "&addr=" + encodeURIComponent(getElementObject("afterERAddr").value);

hash.js (https://github.com/jwheare/prototype.git) JavaScript · 223 lines

152 function toQueryPair(key, value) {

153 if (Object.isUndefined(value)) return key;

154 return key + '=' + encodeURIComponent(String.interpret(value));

155 }

156

162 function toQueryString() {

163 return this.inject([], function(results, pair) {

164 var key = encodeURIComponent(pair.key), values = pair.value;

165

166 if (values && typeof values == 'object') {

browser_rules_pseudo_lock_options.js (https://github.com/rillian/firefox.git) JavaScript · 131 lines

26

27 add_task(function* () {

28 yield addTab("data:text/html;charset=utf-8," + encodeURIComponent(TEST_URI));

29 let {inspector, view} = yield openRuleView();

30 yield selectNode("div", inspector);

worker_fileReader.js (https://github.com/rillian/firefox.git) JavaScript · 419 lines

25

26 function convertToUTF8(s) {

27 return unescape(encodeURIComponent(s));

28 }

29

xd.js_1346385827.m.js (https://bitbucket.org/tislamov/xdc.git) JavaScript · 112 lines

101 else

102 {if(config.canClose){$('.cancel-window').click(function(ev){window.location=location.href;$(this).parents().dialog('close');return false;});}else{$('.cancel-window').remove();}}}});$('#registerForm').ajaxForm({beforeSend:function(){that.doAjaxFormBeforeSend({formId:'#registerForm'});},success:function(data){data=$.parseJSON(data);$('button[type=submit]','#registerForm').attr('disabled',false).removeClass('disabled').fadeTo(100,1);that.doAjaxFormSuccess({formId:'#registerForm',data:data,errorsPrefix:'RegistrationForm_',inputPrefix:'user[',inputPostfix:']',statusSuccess:function(response){return that.redirect({to:response.redirectUrl});}});},error:function(xhr,status,response){that.doAjaxFormError({formId:'#registerForm','xhr':xhr});}});if(config.canClose){$('.cancel-window').click(function(ev){window.location=location.href;$(this).parents('.ui-dialog-content').dialog('close');return false;});}else{$('.cancel-window').remove();}

103 $('.register-box-footer-link').live('click',function(ev){var tabIndex=parseInt($(this).attr('data-tabIndex'));$('#registration-tabs').tabs('select',tabIndex);return false;});$('a','#dialog-sign-up-button').attr('draggable',false);},ajaxLoader:''});if(config.autoShow){$(selector).trigger('click');}},updateLocationHash:function(pagerId){var newLocation=$('.pagination .selected > a:first','#'+pagerId).attr('href');if(newLocation){$.bbq.pushState(pagerId+'='+newLocation);}},loadLocationHash:function(listId){$(window).bind('hashchange',function(e){var list=$('#'+listId);var currentUrl=$('.pagination .selected > a:first',list).attr('href').replace(/\+/g,'%20');var loadUrl=$.bbq.getState(listId);loadUrl=loadUrl?encodeURI(loadUrl).replace(/,/,encodeURIComponent(',')):loadUrl;if(loadUrl&&(currentUrl!==loadUrl)){list.yiiListView.update(listId,{url:loadUrl});}});$(window).trigger('hashchange');},trackGAURL:function(options){var _events=this.getGlobal('gaEvents');options=$.extend({url:window.location.href,ev:''},options);if(options.ev!=''&&!_events[options.ev]){return false;}

104 var _trackUrl='{url}{glueString}{eventName}';var eventName=options.ev===''?'':'ev='+_events[options.ev];var _glueString=eventName!==''?(options.url.search(/\?/)>-1?'&':'?'):'';_trackUrl=_trackUrl.replace('{url}',options.url).replace('{glueString}',_glueString).replace('{eventName}',eventName);this.loadGAParams({'_trackPageview':_trackUrl});return true;},loadGAParams:function(moreParams){var params=this.getGlobal('GAParams');if(moreParams!=='undefined'){params=$.extend(params,moreParams);}

105 _gaq=typeof(_gaq)!=='undefined'?_gaq:[];$.each(params,function(GAParam,value){if(value&&value!==''){_gaq.push([GAParam,value]);}});},focus:function(options){options=$.extend({cnt:null,isId:false,filter:'input[type="text"]:first,textarea:first'},options);if(options.isId){options.cnt='#'+options.cnt.replace('#','');}

cookie.js (https://gitlab.com/essere.lab.public/qualitas.class-corpus) JavaScript · 77 lines

60 }else{

61 props = props || {};

62 value = encodeURIComponent(value);

63 if(typeof(props.expires) == "number"){

64 var d = new Date();

xhr.js (https://gitlab.com/jiangming1399/luci) JavaScript · 262 lines

119 {

120 code += (code ? '&' : '') +

121 form.elements[i].name + '=' + encodeURIComponent(

122 e.options[e.selectedIndex].value

123 );

128 if (e[j].name) {

129 code += (code ? '&' : '') +

130 e[j].name + '=' + encodeURIComponent(e[j].value);

131 }

132 }

134 {

135 code += (code ? '&' : '') +

136 e.name + '=' + encodeURIComponent(e.value);

137 }

138 }

TweetBox.js (https://gitlab.com/alidzapp/TweetSplitter) JavaScript · 66 lines

13 this.domElement.value += this.currentCountTag;

14

15 $("#wrapper").append("<div id='tweets" + this.idNum + "' class='row clearfix'><div id = 'tweetColumn" + this.idNum + "' class='col-xs-8 column'></div><div id= 'buttons" + this.idNum + "' class='col-xs-4 column'><div class='row clearfix'><a class='btn btn-primary' id='custom-tweet-button" + this.idNum + "' >Tweet</a></div><div class='row clearfix'><label id='count" + this.idNum + "' for='tweet'></label></div><script> document.getElementById('custom-tweet-button" + this.idNum + "').addEventListener('click', function (el) { el.target.href = ''; var tweet = encodeURIComponent(($('#tweet" + this.idNum + "').val())); el.target.href = href='http://twitter.com/intent/tweet?text=' + tweet});</script></div></div>");

16 document.getElementById("tweetColumn" + this.idNum + "").appendChild(this.domElement);

17

AuthView.js (https://gitlab.com/atomfrede/jhipster-ci-example-gradle) JavaScript · 178 lines

141 redirect_uri = redirectUrl;

142

143 url += '&redirect_uri=' + encodeURIComponent(redirectUrl);

144 url += '&realm=' + encodeURIComponent(realm);

145 url += '&client_id=' + encodeURIComponent(clientId);

146 url += '&scope=' + encodeURIComponent(scopes.join(scopeSeparator));

147 url += '&state=' + encodeURIComponent(state);

148 for (var key in additionalQueryStringParams) {

149 url += '&' + key + '=' + encodeURIComponent(additionalQueryStringParams[key]);

functions.js (https://github.com/jrschumacher/jobberbase.git) JavaScript · 112 lines

41 {

42 clearTimeout(window.search_timer);

43 $('#job-listings').load(url + encodeURIComponent(keywords) + '/');

44 $("#indicator").hide();

45 },

storage.permissions.js (https://github.com/Setuber/Ringify.git) JavaScript · 148 lines

4 var useQueues = $("[id=Queues_" + userId + "]:checked").val() !== undefined;

5

6 actionUrl = actionUrl.replace("_user_", encodeURIComponent(userId));

7 actionUrl = actionUrl.replace("_useTables_", encodeURIComponent(useTables));

8 actionUrl = actionUrl.replace("_useBlobs_", encodeURIComponent(useBlobs));

9 actionUrl = actionUrl.replace("_useQueues_", encodeURIComponent(useQueues));

15 var isPublic = $("[id=Public_" + storage + "]").val() == "false";

16

17 actionUrl = actionUrl.replace("_storage_", encodeURIComponent(storage));

18 actionUrl = actionUrl.replace("_isPublic_", encodeURIComponent(isPublic));

44 actionUrl = hasAccess ? addPermissionActionUrl : removePermissionActionUrl;

45

46 actionUrl = actionUrl.replace("_storage_", encodeURIComponent(storage));

47 actionUrl = actionUrl.replace("_user_", encodeURIComponent(userId));

ngConstellation-1.8.0.js (https://gitlab.com/psyked/Promethee) JavaScript · 225 lines

182 var ret = [];

183 for (var d in data)

184 ret.push(encodeURIComponent(d) + "=" + encodeURIComponent(data[d]));

185 return ret.join("&");

186 }

search.js (https://github.com/johannesloetzsch/evopedia.git) JavaScript · 105 lines

19 var parts = new Array();

20 for (key in params) {

21 parts.push(encodeURIComponent(key) + '=' + encodeURIComponent(params[key]));

22 }

23 return parts.join("&");

prototype.js (http://fatal-error.googlecode.com/svn/trunk/) JavaScript · 3269 lines ✨ Summary

This JavaScript code defines a set of functions and classes for working with CSS selectors, including parsing, manipulating, and evaluating selector expressions. It provides a robust framework for querying HTML documents based on CSS selectors, allowing developers to efficiently search and manipulate elements in the DOM. The code is designed to be flexible and extensible, supporting various types of selectors and attributes.

809

810 Hash.toQueryString.addPair = function(key, value, prefix) {

811 key = encodeURIComponent(key);

812 if (value === undefined) this.push(key);

813 else this.push(key + '=' + (value == null ? '' : encodeURIComponent(value)));

popup.js (https://bitbucket.org/peixuan/chromium_r197479_base.git) JavaScript · 83 lines

24 'method=flickr.photos.search&' +

25 'api_key=90485e931f687a9b9c2a66bf58a3861a&' +

26 'text=' + encodeURIComponent(QUERY) + '&' +

27 'safe_search=1&' +

28 'content_type=1&' +

ByteArray.js (https://github.com/teamdstn/dstnation.git) JavaScript · 564 lines

468 ByteArray.prototype.writeUTF = function(value)

469 {

470 var str = unescape(encodeURIComponent(value));

471 var length = str.length;

472

487 ByteArray.prototype.writeUTFBytes = function(value)

488 {

489 var str = unescape(encodeURIComponent(value));

490 var length = str.length;

491

ajax.js (https://github.com/ronnylt/spine.git) JavaScript · 204 lines

167 base += '/';

168 }

169 base += encodeURIComponent(this.id);

170 return base;

171 }

cookie.js (https://github.com/natos/WhatsOn.git) JavaScript · 172 lines

34 escape: function (value) {

35 return value.replace(/[,;"\\=\s%]/g, function (character) {

36 return encodeURIComponent(character);

37 });

38 },

tw-sack.dev.js (https://gitlab.com/Mirros/jsdelivr) JavaScript · 193 lines

62 this.encVar = function(name, value, returnvars) {

63 if (true == returnvars) {

64 return Array(encodeURIComponent(name), encodeURIComponent(value));

65 } else {

66 this.vars[encodeURIComponent(name)] = Array(encodeURIComponent(value), true);

69

70 this.processURLString = function(string, encode) {

71 encoded = encodeURIComponent(this.argumentSeparator);

72 regexp = new RegExp(this.argumentSeparator + "|" + encoded);

73 varArray = string.split(regexp);

fetch.js (https://gitlab.com/Mirros/cdnjs) JavaScript · 218 lines

126 }).map(function(name) {

127 var value = (params[name] === null) ? '' : params[name]

128 return encodeURIComponent(name) + '=' + encodeURIComponent(value)

129 }).join('&').replace(/%20/g, '+')

130 }

stringify.js (https://gitlab.com/INF3190/lab-server) JavaScript · 679 lines

341 t.test('stringifies a date', function (st) {

342 var now = new Date();

343 var str = 'a=' + encodeURIComponent(now.toISOString());

344 st.equal(qs.stringify({ a: now }), str);

345 st.end();

userprofiletoolbar.get.js (https://github.com/deas/alfresco.git) JavaScript · 99 lines

15 model.followers = -1;

16

17 var following = remote.call("/api/subscriptions/" + encodeURIComponent(userId) + "/following/count");

18 if (following.status == 200)

19 {

22 if (model.activeUserProfile)

23 {

24 var followers = remote.call("/api/subscriptions/" + encodeURIComponent(userId) + "/followers/count");

25 if(followers.status == 200)

26 {

toolbar.get.js (https://github.com/deas/alfresco.git) JavaScript · 67 lines

10 var role = null;

11 var obj = null;

12 var json = remote.call("/api/sites/" + page.url.templateArgs.site + "/memberships/" + encodeURIComponent(user.name));

13 if (json.status == 200)

14 {

compat.js (https://gitlab.com/bruce.ng/angularjs-lesson) JavaScript · 84 lines

38 $stateProvider.state(inherit(route, {

39 parent: null,

40 name: 'route:' + encodeURIComponent(url),

41 url: url,

42 onEnter: onEnterRoute,

env.robot.js (https://gitlab.com/bruce.ng/alloy-ui) JavaScript · 95 lines

10 // assign weights to in our search index

11 var data = {

12 $id: encodeURIComponent(url),

13 url: url,

14 full_text: $(document.body).text(),

search_result.js (https://bitbucket.org/schatt/chorus.git) JavaScript · 200 lines

70

71 if (this.isConstrained()) {

72 return prefix + this.searchIn() + "/" + this.entityType() + "/" + encodeURIComponent(this.get("query"));

73 } else {

74 return prefix + encodeURIComponent(this.get("query"));

qs.js (https://bitbucket.org/keithelliott/gittielabs.git) JavaScript · 351 lines

262 function stringifyString(str, prefix) {

263 if (!prefix) throw new TypeError('stringify expects an object');

264 return prefix + '=' + encodeURIComponent(str);

265 }

266

300 key = keys[i];

301 ret.push(stringify(obj[key], prefix

302 ? prefix + '[' + encodeURIComponent(key) + ']'

303 : encodeURIComponent(key)));

binary_parser.js (https://github.com/jsjohnst/node-mongodb-native.git) JavaScript · 253 lines

202 // Encode a cstring correctly

203 p.encode_cstring = function(s) {

204 return unescape(encodeURIComponent(s)) + p.fromByte(0);

205 };

206

attachment_paths.js (https://github.com/farshidce/jscouchtests.git) JavaScript · 156 lines

16 for (var i=0; i < dbNames.length; i++) {

17 var db = new CouchDB(dbNames[i]);

18 var dbName = encodeURIComponent(dbNames[i]);

19 db.deleteDb();

20 db.createDb();

test-net-url.js (https://bitbucket.org/skudatech/addon-sdk.git) JavaScript · 212 lines

11 const latin1text = "Hello, ゼロ!";

12

13 const dataURIutf8 = "data:text/plain;charset=utf-8," + encodeURIComponent(utf8text);

14 const dataURIlatin1 = "data:text/plain;charset=ISO-8859-1," + escape(latin1text);

15 const chromeURI = "chrome://global-platform/locale/accessible.properties";

content-symbiont.test.js (https://github.com/kaiquewdev/chromeless.git) JavaScript · 152 lines

13 '</window>';

14 var url = "data:application/vnd.mozilla.xul+xml," +

15 encodeURIComponent(content);

16 var features = ["chrome", "width=10", "height=10"];

17

index.js (https://gitlab.com/MichelZuniga/node) JavaScript · 101 lines

68 }

69

70 if (encodeURIComponent(name) !== name) {

71

72 // Maybe it's a scoped package name, like @user/package

75 var user = nameMatch[1]

76 var pkg = nameMatch[2]

77 if (encodeURIComponent(user) === user && encodeURIComponent(pkg) === pkg) {

78 return done(warnings, errors)

79 }

git-host.js (https://gitlab.com/MichelZuniga/node) JavaScript · 96 lines

30 var rawComittish = vars.comittish

31 Object.keys(vars).forEach(function (key) {

32 vars[key] = encodeURIComponent(vars[key])

33 })

34 vars['auth@'] = rawAuth ? rawAuth + '@' : ''

cmd.js (https://gitlab.com/knax/extjs) JavaScript · 184 lines

176

177 _getParam: function(name) {

178 if (name=(new RegExp('[?&]'+encodeURIComponent(name)+'=([^&]*)')).exec(top.location.search)) {

179 return decodeURIComponent(name[1]);

180 }

kontagent_api.js (https://github.com/d1on/javascript-sdk.git) JavaScript · 858 lines

89

90 for(key in data) {

91 val = encodeURIComponent(decodeURIComponent(data[key].toString()));

92 key = encodeURIComponent(decodeURIComponent(key));

MicrosoftMvcAjax.debug.js (https://hg01.codeplex.com/aspnetmobilesamples) JavaScript · 409 lines ✨ Summary

This JavaScript code is part of a web application framework, specifically for ASP.NET MVC. It provides functionality for handling form submissions asynchronously using AJAX requests. The code includes classes and methods for serializing forms, handling form validation, and updating DOM elements with server responses. It also registers custom classes for the framework’s components.

149 if (name) {

150 var tagName = element.tagName.toUpperCase();

151 var encodedName = encodeURIComponent(name);

152 var inputElement = element;

153 if (tagName === 'INPUT') {

154 var type = inputElement.type;

155 if (type === 'submit') {

156 return encodedName + '=' + encodeURIComponent(inputElement.value);

157 }

158 else if (type === 'image') {

161 }

162 else if ((tagName === 'BUTTON') && (name.length) && (inputElement.type === 'submit')) {

163 return encodedName + '=' + encodeURIComponent(inputElement.value);

164 }

165 }