<br><br><div class="gmail_quote">On Mon, Nov 30, 2009 at 1:39 PM, inhahe <span dir="ltr"><<a href="mailto:inhahe@gmail.com">inhahe@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
i'm pretty new to javascript programming, but i'm pretty sure you just<br>
need ajax, which AFAIK is a highly technical way of saying "using<br>
javascript in a way that makes web pages interactive"<br>
JSON afaik is a way of data to and from the server that allows for<br>
lists and more variable types and such, but also requires the user<br>
download a third-party js file that implements JSON.  i don't think<br>
you'd technically need JSON, because you could simply send the server<br>
a string of all the colors selected delimited by a space or | or<br>
something.<br>
javascript also probably has inherent functions for generating xml,<br>
considering that the object you use to communicate with the server is<br>
an xmlhttprequst. but i think xml might be overkill in this case.<br>
<br>
the javascript would populate the list for the colors the user selects<br>
(the easiest way would probably be to give the list an id and use<br>
getElementByID()), and then when he's done it would create an<br>
xmlhttprequest object to send the data to the server.<br></blockquote><div><br>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.<br>
TIA,<br>V <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
On Mon, Nov 30, 2009 at 7:26 AM, Victor Subervi <<a href="mailto:victorsubervi@gmail.com">victorsubervi@gmail.com</a>> wrote:<br>
> Hi;<br>
> I need a recommendation. I want to print out data like this:<br>
><br>
> <td bgcolor='blue'><a href='???'>blue</a></td><br>
> <td bgcolor='red'><a href='???'>red</a></td><br>
><br>
> and enable the user to select the various colors he wants to add to a list<br>
> that would populate itself on the same page where the selections are, and<br>
> then, once he's selected all the colors he wants, click to add them all at<br>
> once to a table in a database, and move on to the next page. I believe this<br>
> is achieved through JSON and AJAX; however, I haven't been able to google<br>
> any demonstrations of this sort. Am I correct, or should I use some other<br>
> sort of technology?<br>
> TIA,<br>
> Victor<br>
><br>
</div><div><div></div><div class="h5">> --<br>
> <a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
><br>
><br>
</div></div></blockquote></div><br>