Create HTML file from rev app

William de Smet williamdesmet at gmail.com
Wed Aug 25 04:03:13 EDT 2010


Hi there all,

It's been a while since my last question but working hard on some apps.
For my daily job I needed a quick app to create a HTML file. In the
app I have some fields and in one of them I put a URL (just
www.domainname.com).
In some hidden fields I put the needed HTML and the all come together
when I save the file.
All works fine but when I look at the sourcecode in IE8 or Safari the
HTML isn't completely correct.
In a link it misses the quotes (") at the beginning or the end of the URL.

What I do is this:
put  "<a href="& "http://"  & fld "link" & "  & target="& _blank &" >"
& fld "link" &"</a>" &  "<"&"br/"&">"  &  "<"&"br/"&">" after tData

I also tried this but that doesn't works either:
put  "<a href="& """ &"http://"  & fld "link" & """ &"  &
target="& """ & blank & """ &" >" & fld "titel" &"</a>"
after tData
(the " isn't translated then into a quote)

I start the HTML file with:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">


Anyone knows why I don't get the qoute?
And is there a way to get them?


Greetings,

William



More information about the use-livecode mailing list