using links on the web
Frank D. Engel, Jr.
fde101 at fjrhome.net
Wed Dec 8 14:28:57 EST 2004
Another possibility is to do the conversion within Rev, something like
this (untested code; note the lookupURL function -- it should be
obvious what that is meant to do):
put empty into z
repeat for each line x in the htmlText of field "Input"
put x into y
put offset("<a href=" & quote, y) into i
repeat while i is not 0
put i+8 into j
put offset(quote, y, j) into r
put lookupURL(char j to (r-1) of y) into newURL
put newURL into char j to (r-1) of y
add length(newURL)-(r-j) to r
put offset("<a href=" & quote, y, r) into i
end repeat
put y after z
end repeat
put z into field "Output"
On Dec 8, 2004, at 12:07 PM, Derek Bump wrote:
>> I have a MySQL database with a table associating a correct URL to each
>> "ABCDE", but I can't find a way to recover "ABCDE" as a variable and
>> send it to the database.
>
> I believe this problem could be solved by including a base url in your
> html code on the web...
>
> <base href="http://www.yourdomain.com/scripts/mycode.php">
>
> A JavaScript would also do the trick, but I do not know what the code
> for that would be.
>
>
> Derek Bump
> Dreamscape Software
> ____________________________________________
> Compress Images Easily with JPEGCompress
> http://www.dreamscapesoftware.com
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
-----------------------------------------------------------
Frank D. Engel, Jr. <fde101 at fjrhome.net>
$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep "John 3:16"
John 3:16 For God so loved the world, that he gave his only begotten
Son, that whosoever believeth in him should not perish, but have
everlasting life.
$
___________________________________________________________
$0 Web Hosting with up to 120MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com
More information about the use-livecode
mailing list