Got it fixed:

document.getElementById('serial').value=serial.hash;

This worked for me!

Thank you for your time.


Richard D. Worth-2 wrote:
> 
> If you could provide a link to a test page online, that would make it much
> easier for someone to see what you're seeing and hopefully help you debug
> it. Or, if you're not able to do that, create a pastie of your whole page:
> 
> http://paste.pocoo.org/
> 
> - Richard
> 
> On Dec 14, 2007 3:21 PM, Null <[EMAIL PROTECTED]> 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-tp14339779s27240p14339779.html
>> Sent from the jQuery General Discussion mailing list archive at
>> Nabble.com
>> .
>>
>>
> 
> 

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

Reply via email to