Jump to content
UBot Underground

[ask] UI HTML for dropdown from text file


Recommended Posts

Like this:

ui html panel("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
<html xmlns=\"http://www.w3.org/1999/xhtml\">
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />
<title>Untitled Document</title>
</head>

<body>
<label for=\"select\"></label>
<select name=\"select\" id=\"select\">
{$read file("{$special folder("Desktop")}\\dropdown.txt")}
</select>
</body>
</html>
", 100)

 

dropdown.txt value

<option value="item1">item1</option>
 <option value="item2">item2</option>
 <option value="item3">item3</option>

  • Like 1
Link to post
Share on other sites
  • 2 months later...

Like this:

ui html panel("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
<html xmlns=\"http://www.w3.org/1999/xhtml\">
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />
<title>Untitled Document</title>
</head>

<body>
<label for=\"select\"></label>
<select name=\"select\" id=\"select\">
{$read file("{$special folder("Desktop")}\\dropdown.txt")}
</select>
</body>
</html>
", 100)

 

dropdown.txt value

<option value="item1">item1</option>
 <option value="item2">item2</option>
 <option value="item3">item3</option>

 

How do you attach this to a variable? Where does the "#var" go?

 

Thanks!

Link to post
Share on other sites

nm... <select name="select" variable="#var" id="select"> does it... http://ubotstudio.com/forum/public/style_emoticons/default/smile.gif

Link to post
Share on other sites

Is there some way to add a subfolder variable to this?

 

For example, I want to change this:

 

{$read file("{$special folder("Desktop")}\\dropdown.txt")}

 

to something like this:

 

{$read file("{$special folder("Desktop")}\\{#saved variable}\\dropdown.txt")}

 

But the {#saved variable} isn't recognized.

 

Any ideas?

 

TIA

http://ubotstudio.com/forum/public/style_emoticons/default/blink.gif

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...