Hi ,
Thanks for the samples.
I will upgrade to prototype 1.6.

With Regards
-Arun

On Jan 20, 7:15 pm, freshteapot <ch...@freshteapot.net> wrote:
> Hello Arun,
>
> Why not upgrade to version 1.6.something?
>
> Super quick answer.
> //THIS IS NOT FOR PROTOTYPE 1.6 +. It is intended to demonstrate how
> to create a hash in version 1.5.1.1!
>
> var my_first_hash = new Hash();
> my_first_hash.id = '1';
> //This will display a nice little object in the alert box
> alert(my_first_hash.toJSON() );
>
> Slower answer:
>
> copy and paste the following into an html file
> .
> ----------------------------------------------------------------
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/
> TR/html4/strict.dtd">
> <html>
>         <head>
>                 <meta http-equiv="Content-Type" content="text/html; 
> charset=utf-8" /
>
>                 <title>Create a Hash</title>
>                 <script src="./prototype-1.5.1.1.js" type="text/javascript"></
> script>
>         </head>
>         <body>
> <style>
> .wdt{
>         width:500px;}
>
> </style>
> <h1>Creating a hash using prototype-1.5.1.1.js</h1>
> <p class="wdt">
>         For more information check out <a href="http://www.prototypejs.org/
> api/hash">Prototype api on how to use the hash</a> or open up
> prototype.js in your favorite text editor and do a search for "var
> Hash = function(object) {". This will then take you to the section on
> hash's and you can read till your giddy.
> </p>
> <script type="text/javascript">
> //<![CDATA[
> //How to set a hash when using prototype-1.5.1.1.js
>
> var my_first_hash = new Hash();
> my_first_hash.id = '1';
> //This will display a nice little object in the alert box
> alert(my_first_hash.toJSON() );
> //]]>
> </script>
>         </body>
> </html>
> ----------------------------------------------------------------
>
> Then download and save the prototype ( version 1.5.1.1 ) to the same
> directory with the name "prototype-1.5.1.1.js".
>
> Run the html file and it should display the contents of a recently
> made hash.
> Open up the html file and go read the section in the <script> where it
> shows you how to make a hash.
>
> freshteapot
>
> On Jan 20, 8:23 pm, Arun <urgea...@gmail.com> wrote:
>
> > HI All,
>
> > Would appreciate if any body could help me on this.
>
> > 1. How to create a Hash with prototype 1.5.1.1
> > 2. How to set and get the value of the Hash with 1.5.1.1
>
> > Appreciate if any examples ..
>
> > With Regards
> > -Arun
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to