Web page fields

Mike Bonner bonnmike at gmail.com
Thu Mar 5 17:45:36 EST 2015


Hey, if this is for an external browser, and you have control of the page
being accessed, there is no reason you can't set up a url with a GET, that
is used by the receiving page to set the default value. If the page is
straight html, and not php or .lc processed, i'm not sure how you can
inject a javascript command to change the form.  Its most likely possible,
I just don't know how, and the whole "is it firefox, chrome, IE, Opera"
question makes it that much more difficult, unless you have control of that
too.

if you do have control if the page, or if you can set up a seperate lc or
php file, you can generate the page to look however you want.
http://sample.com/setupquery.lc?myquery="urlencoded query here"

and in the file setupquery you could have

blah blah blah, most of your page here
 <input bb-autocomplete="true <>" id="query <>" name="query <>"
on-select="navigateTo(id) <>" placeholder="Search... <>" type="text <>"
 value="
<?lc
     if $_GET["myquery"] is not empty then
          put $_GET["myquery"]
     else
          put  "<>"
     end if
?>
" />
blah blah blah the rest of your page here


But if you don't have control of the page, i'm still not sure how to do it
in an external browser from lc.



More information about the use-livecode mailing list