greenman wrote:
Hello,
Is there a chance to serialize a selection/range object (holding the
selected by the user text fragment) on a webpage, so that I could
deserialize it later on this site and make this selection/range
programatically or apply a different style to it?
Regards,
g.
Hi,
Serializing isn't difficult.
Just think up 2 seperators you don't use in the selectbox, eg:
| means seperator between name and value
# means seperator between different entries.
Then you'll end up with a string like:
10|low#20|medium#30|high
for
<select name="bla">
<option value="10">low
<option value="20">medium
<option value="30">high
</select>
But where do you want to store this serialized string?
In a cookie?
Can you program serverside? That could make more sense.
Serverside you could use an include for a complex select, that needs for
example a lot of database activity to produce.
Please give more information so we can help you better.
Regards,
Erwin Moller