Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: Completely OT

Thread Tools

Re: Completely OT

Posts: n/a
On Mon, Nov 30, 2009 at 12:49 PM, Victor Subervi
<(E-Mail Removed)> wrote:
> On Mon, Nov 30, 2009 at 1:39 PM, inhahe <(E-Mail Removed)> wrote:
>> i'm pretty new to javascript programming, but i'm pretty sure you just
>> need ajax, which AFAIK is a highly technical way of saying "using
>> javascript in a way that makes web pages interactive"
>> JSON afaik is a way of data to and from the server that allows for
>> lists and more variable types and such, but also requires the user
>> download a third-party js file that implements JSON. *i don't think
>> you'd technically need JSON, because you could simply send the server
>> a string of all the colors selected delimited by a space or | or
>> something.
>> javascript also probably has inherent functions for generating xml,
>> considering that the object you use to communicate with the server is
>> an xmlhttprequst. but i think xml might be overkill in this case.
>> the javascript would populate the list for the colors the user selects
>> (the easiest way would probably be to give the list an id and use
>> getElementByID()), and then when he's done it would create an
>> xmlhttprequest object to send the data to the server.

> If I'm not mistaken, that won't help me actually print to screen the user's
> choices as he selects them, which in my application, is important. Please
> advise.
> TIA,
> V

sure, that's where this part comes in:

the javascript would populate the list for the colors the user selects
(the easiest way would probably be to give the list an id and use

so basically you'd define, e.g., an onClick="blah('red'); return true"
within the red element's tag, and then define a function blah(x) that
getElementById("my_list_id").innerHtml += "<br>" + x;
and of course give your list textarea an id="my_list_id" attribute in the tag.

that could be slightly wrong, my javascript's rusty
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: VOIPfone down completely ... I mean very completely !! cjd UK VOIP 2 10-10-2008 01:17 PM
Etching tutorials-or now for something completely different Technoholic Case Modding 71 09-27-2005 06:39 AM
Help! How can I let Intel Proset completely control my wirelss? networm Wireless Networking 3 09-26-2005 03:11 AM
USB NIC Group Policy not applying completely Microsoft News Wireless Networking 0 03-11-2005 12:56 AM
Completely update mailboxes (Mozilla mail) Gwen Morse Firefox 0 02-07-2004 08:05 AM