search for: toquerystr

Displaying 12 results from an estimated 12 matches for "toquerystr".

Did you mean: querystr
2007 May 02
1
why is Hash#toQueryString including functions
Why function stored in a Hash are serialized by toQueryString. I mean what''s the use-case for this? to eval them on server-side ? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrai...
2007 Oct 26
0
prototype's toQueryString() weird behavior in IE?
...to look like this: &title=&message= ...etc. No problem in FF (pc/mac) but when i submit the empty values to IE, they are returned as ''undefined''. If i alert these values, i just get an empty dialog, alerting typeof value also returns an empty dialog. When i pass em to toQueryString() however, the values are sent as &title=undefined&message=undefined... etc. My solution right now is to just manually create the querystring, but i am curious if this is a (known) issue or a bug or whatever. Any ideas? --~--~---------~--~----~------------~-------~--~----~ You receiv...
2005 Dec 08
2
Prototype.js Hash Methods
Hi, Has anyone seen any documentation on the Hash Object defined in the prototype library? To be precise the following methods - 1. keys 2. values 3. toQueryString 4. inspect 5. Merge I am trying to play around with them and have come up with the following examples - var h = $H({name: "john doe", email: "john-Ch9RrZxMC0c@public.gmane.org", msg: "say hello to me"}); var h_in = h.inspect(); alert(h_in); //returns #<Hash...
2006 Jun 16
3
onCreate not getting triggered.
I am trying to get a loader to display during ajax requests, but the "onCreate" is not getting triggered. The onComplete does. function loadComponent(section){ values = arguments[1] pars = $H(values).toQueryString() pars = "section="+section+"&"+pars var url = ''/internal/ajax/requests.php''; var ComponentLoader = new Ajax.Updater(''maincontent'', url, { asynchronous:true, onCreate: function() { loadingRequest(''mc_loader''...
2005 Oct 27
3
String.protoype.toQueryParams
Hi, I am trying to play with all the methods in the Array Object. Just wanted to check with you guys if this is the correct explanation of toQueryParams(). If yes, then I''ll add it to the documentation as well. Works for me (but I am not sure if it''s the correct way to use it). /* String.prototype.toQueryParams takes a query string, i.e, string with name value pairs
2007 Jul 10
9
Other parameters on InPlaceEditor
Hi to all, I have a doubt on like passing other URL parameters to InPlaceEditor function. For Ajax.Updater I can use "parameters:", but for InPlaceEditor (or InPlaceCollectionEditor) I cannot use "parameters". How I make to pass other parameters to the page that callback? A sample code: ---------------------------------- var editor= new Ajax.InPlaceCollectionEditor(el, url,
2007 Apr 17
5
Problem with toQueryParams()
I''m sure this has been covered before, but here goes... Anybody noticing some odd behavior with submitting forms through Ajax.Request? I thought at first it was a problem with Form.serialize, but was able to trace it back to line #975 (in prototype 1.5.1_rc2) which calls "toQueryParams" on the parameters that are passed into the new Ajax object if it is a string. This is the
2008 Jan 16
0
GET Using encodeURIComponent
...my personal JavaScript and call other personal method called "f_ajax" that implement the Ajax.Request. Then happens 2 encodeURIComponent with my params. Why the GET method make the encode? Could have an option in Ajax.Request to disable the encodeURIComponent in prototype (toQueryPair and toQueryString, today I remove encodeURIComponent in both methods). Can I use another option to resolve my problem? Regards! http://imera.com.br/js/prototype_1_6_0.js --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on R...
2008 Jan 19
1
Set Return Type XML in Prototype
...lready done this kinds of job Please help me as soon as possible. var xmlDoc; function Claulate() { var url = ''http://localhost/jibon/jlab/ajaxDirectPrototype/ calculateAjaxFunction.php''; var a = { empID: 100, amountTK: 200, third: 30 }; var pars = new Hash(a).toQueryString(); var myAjax = new Ajax.Request( url, { method: ''get'', parameters: pars, onComplete: loadXML }); } function loadXML(xmlHttpRequest) { // code for IE if (window.ActiveXObject) { xmlDoc = new ActiveXObject("MSXML2.DOMDocument"); xmlD...
2006 Apr 28
3
Serialize / deserialize an associative array
Perhaps I missed something but I don''t see an easy way to do this ? Basically just wanna hold some ui state in a cookie. Did I miss something obvious ? Best Matt *********************************************************************************** The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB. Authorized and
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...return this._object[key]; + // simulating poorly supported hasOwnProperty + if (this._object[key] !== Object.prototype[key]) + return this._object[key]; }, unset: function(key) { @@ -1050,14 +1062,14 @@ var Hash = Class.create(Enumerable, (function() { }, toQueryString: function() { - return this.map(function(pair) { + return this.inject([], function(results, pair) { var key = encodeURIComponent(pair.key), values = pair.value; if (values && typeof values == 'object') { if (Object.isArray(values)) -...
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply to this email, as some of the replaced lines are too long, so git won't let me send the email. However, there is nothing wrong with that patch, and it should be applied in the sequence listed below. Note also that I assume this will be tested on a clean f11 install, rather than an upgrade of an existing ovirt server