Re: [Proto-Scripty] Re: clear prototype hash

2010-10-21 Thread chrysanthe m
: Hi, I'm surprised the loop didn't work, it seems to: http://jsbin.com/ejeju4/2 Sorry, that link was wrong. It should be: http://jsbin.com/ejeju4 -- T.J. On Oct 21, 7:51 am, T.J. Crowder t...@crowdersoftware.com wrote: Hi, On Oct 21, 3:39 am, chrysanthe m chrysant...@gmail.com wrote

[Proto-Scripty] clear prototype hash

2010-10-20 Thread chrysanthe m
Hello How do I clear a prototype hash? I have finally tried and failed with below after trying hashBrown.length=0 and hashBrown.clear(). hashBown.each(function(key) { hashBrown.unset(key); }); -- You received this message because you are subscribed to the Google Groups

Re: [Proto-Scripty] Prototype return limited

2010-09-10 Thread chrysanthe m
Hi Dave Yes. I know I should not be shoveling out so much data to the client, but I have to for this proof of concept and will restrict it in production. Has anyone parsed return json data larger than 8K? On Thu, Sep 2, 2010 at 9:27 AM, Dave Kibble davekib...@gmail.com wrote: just going on the

[Proto-Scripty] Prototype remove json

2010-08-25 Thread chrysanthe m
Hello Is thee a way to remove a json object processed by prototype client side? My objects are very large and will get larger so I must be frugal and clean up after each processing. Also is there a way to increase the size of the header to a maximum(what?). tia. -- You received this message

[Proto-Scripty] prototype JSON

2010-08-21 Thread chrysanthe m
Hi I am using prototype1.6 with JSON-lib 2.2 and it is working well. However I cant find the latest API for JSON. Can anyone point out the location? tia. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send

[Proto-Scripty] Re: hash serialization problems

2010-05-06 Thread chrysanthe m
Hi Can anyone help me understand this? I can recreate a properly formatted JSONArray server-side, but I really want to know why Object.toJSON() didnt format it client-side correctly. On Thu, Apr 29, 2010 at 4:36 PM, chrysanthe m chrysant...@gmail.com wrote: Hi I have created a hash, added

[Proto-Scripty] prototype POST

2010-04-29 Thread chrysanthe m
Hello I need to use Tomcat/Struts to create the dynamic js at a certain(final) state in my UI. That state in the execute is returning with getInputForward. It works, writing the js dynamically with what gets processed server-side, but now I need to render into that js the data, which I do put in

Re: [Proto-Scripty] Re: enumerate hash

2010-04-14 Thread chrysanthe m
understand well, what you're asking for is pretty close to what you suggested in your original post: hashToBeTested.each(function(pair){ if(valueToTest==pair.value){ hashToBeTested.unset(pair.key); } } Christophe Le 10 avr. 2010 à 12:36, chrysanthe m a écrit : Hi, again Sorry

Re: [Proto-Scripty] Re: subtleties of control flow

2010-04-14 Thread chrysanthe m
www.crowdersoftware.com On Apr 14, 2:51 pm, chrysanthe m chrysant...@gmail.com wrote: Hello I am perplexed with what I believe is an error the code snippet below only prints out testing header==true for iterations that have a header==true in the returned json object. Now the oddity. 1. It does

Re: [Proto-Scripty] Re: subtleties of control flow

2010-04-14 Thread chrysanthe m
. Not that that's likely to be your problem, I'm just saying... Do you ever see more than one header==true alerts? Are they really alerts? (See my earlier note.) -- T.J. On Apr 14, 3:55 pm, chrysanthe m chrysant...@gmail.com wrote: Hi TJ Sorry for insufficient detail The json object

Re: [Proto-Scripty] Re: enumerate hash

2010-04-10 Thread chrysanthe m
, chrysanthe m chrysant...@gmail.com wrote: Hi Alex Thanks, but a newbie here so that was drinking at a firehose. Let me parse it to better understand. First can you really invoke on two separate enumerable objects with that [n,n1,n2] syntax? That is tremendous. My problem is I need to first check

[Proto-Scripty] enumerate hash

2010-04-08 Thread chrysanthe m
Hello I am having a difficult time trying to enumerate a hash to determine if a give key is in the hash and if so delete it and its value. If I could approach it index it would be function remove(valueToTest, hashToBeTested){ -- You received this message because you are subscribed to the Google

[Proto-Scripty] Re: enumerate hash

2010-04-08 Thread chrysanthe m
if not semantically. Can someone guide the proper way and more deeply the use of this? On Thu, Apr 8, 2010 at 3:06 PM, chrysanthe m chrysant...@gmail.com wrote: -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group

Re: [Proto-Scripty] Re: enumerate hash

2010-04-08 Thread chrysanthe m
}); a.get(x); foo b.get(x); zam [a,b].invoke(get,x); [foo, zam] [a,b].invoke(unset,x) [foo, zam] a.get(x) (undefined) Cheers, Alex On Thu, Apr 8, 2010 at 3:24 PM, chrysanthe m chrysant...@gmail.comwrote: Sorry sudden send resume in this reply Hello I am having a difficult

[Proto-Scripty] hash:zero

2010-03-29 Thread chrysanthe m
Hello I am sure this is documented somewhere, I have googled and looked at the api however it is still unclear. How can I zero our all the keys/values of a prototype hash without iterating over it? Sorry if it is documented, I couldn't find an api faq. tia. -- You received this message

[Proto-Scripty] $H problems

2010-03-26 Thread chrysanthe m
Hello I have defined an array var fruit = new Hash(); fruit.set('apple','a'); fruit.set('banana','b'); In code I get a string either from the user or passed between functions, and store it in variable getFruitAbbr. However when I try fruit.get(getFruitAbbr) for getFruitAbbr having one of the

Re: [Proto-Scripty] $H problems

2010-03-26 Thread chrysanthe m
. Also, make sure you are using Prototype 1.6 or above. Examples are here: http://www.prototypejs.org/api/hash - Jeff On Mar 26, 2010, at 2:39 PM, chrysanthe m wrote: Hello I have defined an array var fruit = new Hash(); fruit.set('apple','a'); fruit.set('banana','b'); In code I get

[Proto-Scripty] JSON specific group?

2010-03-25 Thread chrysanthe m
Hello Is there a specific group for JSON questions? I will not ask mine here so not to be manipulative with the question. Please direct as appropriate. tia. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group,

[Proto-Scripty] Amazing disappearing namespace

2010-03-23 Thread chrysanthe m
Hi All This is odd. I have been using prototype for months in a jsp included like this perfectly script src='html:rewrite page=/pages/js/prototype-1.6.1.js/' type=text/javascript/script I started to get message that Object.toJSON() is not a function. I then tried accessing Prototype.Version and

Re: [Proto-Scripty] Amazing disappearing namespace

2010-03-23 Thread chrysanthe m
Peck jeff.p...@snet.net wrote: Try accessing it directly (i.e. without the html:rewrite)... It seems like it's not being loaded. You also debug with a tool like FireBug to verify that it is being loaded. - Jeff On Mar 23, 2010, at 6:15 PM, chrysanthe m wrote: Hi All This is odd. I

[Proto-Scripty] Re: prototype-server side

2010-03-17 Thread chrysanthe m
Thank you Paranav Both cogent responses. I could not find a similar parser in the json-lib. Happily using the json-simple thanks to you. Best of all I can resume coding. On Tue, Mar 16, 2010 at 6:32 PM, chrysanthe m chrysant...@gmail.com wrote: Hello Two questions if I may: 1

[Proto-Scripty] Re: prototype-server side

2010-03-17 Thread chrysanthe m
Hi All Actually I did JSONObject.fromObject(); fyi On Wed, Mar 17, 2010 at 11:35 AM, chrysanthe m chrysant...@gmail.comwrote: Thank you Paranav Both cogent responses. I could not find a similar parser in the json-lib. Happily using the json-simple thanks to you. Best of all I can resume

[Proto-Scripty] prototype-server side

2010-03-16 Thread chrysanthe m
Hello Two questions if I may: 1. Will prototype process javascript associative array into JSON text? 2. I am planning on processing a javascript array into JSON and sending that over an AJAX call as a string. The problem is I cant figure out how to re-hydrate that prototype process JSON string

[Proto-Scripty] Re: process further

2009-07-08 Thread chrysanthe m
Hi David Thanks, but I think I one step further. I am assuming an Ajax.request() has happened, returned and what I am looking at to understand further is syntax like this: $('fullName').value = json.fullName; for an returned parameter fullName and an html element ID of fullName. I am wondering,