No 1???? Plz help I am really stuck :(



Null wrote:
> 
> I am using the following interface demo page:
> http://interface.eyecon.ro/demos/sort.html where I want to put the hash in
> a input field. I need the hash from the sort 3 (3rd column).
> 
> Okay this is a part of the code with a form added: 
> 
> --Code-----------------------------------------------------
> ==some more functions and code here==
> 
> function serialize(s)
> {
>    serial = $.SortSerialize(s);
>    alert(serial.hash);
> };
> </SCRIPT>
> 
> <form action="" method="post">
>   <input name="serial" id="serial" value="" />
>   <p class="submit alignleft"><input type="submit" onclick="serialize(); "
> value="Update" /></p>
> </form>
> --Code-end-------------------------------------------------
> 
> What happens?
> When I click the submit button a string ($.SortSerialize(s)) will be shown
> in an alertbox (on click).
> 
> What do I want?
> I want this string to appear in my textbox/inputfield and not in the
> alertbox.
> 
> I know that the alert(serial.hash); has to be removed from the code, but
> still no luck then .
> 
> This didn't work either:
> 
> --Code-----------------------------------------------------
> function serialize(s)
> {
>    serial = $.SortSerialize(s);
>    $('#sort3').val(serial.hash);
> };
> 
> </SCRIPT>
> 
> <form action="" method="post">
> <input name="serial" id="serial" value="" />
> <p class="submit alignleft"><input type="submit" onclick="serialize(s)"
> value="Update" /></p>
>    </form>
> --Code-end-------------------------------------------------
> 
> So I am out of ideas :( Hope some1 can help!
> 
> Greetz Null
> 

-- 
View this message in context: 
http://www.nabble.com/get-a-hash-into-a-form-%28interface%29-tp14339779s27240p14367624.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to