Pass A URL w/Javascript

Mark Brownell gizmotron at earthlink.net
Tue Aug 12 20:31:01 EDT 2003


On Tuesday, August 12, 2003, at 05:55  PM, Scott Rossi wrote:

> Recently, Mark Brownell wrote:
>
>> I'll bet I can pass all kinds of stuff inside the URL and parse it up
>> for my own custom needs. I'll test for white space or empty space in
>> the URL first just to see if it will break it. Otherwise I can use a
>> delimiter to pass unbroken strings of chars. This is a cool feature.
>
> Keep in mind, if you ever have a problem with spaces or other "special"
> characters in a URL, you can use the urlEncode/Decode functions to 
> make the
> problem characters more serer-friendly.
>
> Regards,
>
> Scott Rossi

Scott,

Rev just passed this with flying colors:

<p> <a href="http:// and the cat chased the dog">Cat & Dog </a> </p>
<p> <a href="http type=sound linkauto=intro.swa buffer=5 size=40 
next=yes">mtmlsound link</a></p>
<p><a href="http type=image linkauto=image2.gif 
location=side">mtmlimage link</a> </p>
<p><a href="http type=video linkauto=comeWithMe.mov next=yes 
location=side">mtmlvideo link</a></p>

This is definitely not SQML compliant but having your own markup 
language "means never having to say you're sorry."

This just saved me from having to write the algorithm from hell. I 
might just go out and take a day off for this. Yippee!

Mark




More information about the use-livecode mailing list