Jump to content
UBot Underground

Help With Showing List Items In Html Panel


Recommended Posts

HI, 

I searched all the thread but could not find a solution to my problem.

 

I have a list that have some html codes like

<input type="checkbox" variable="#myvar0" fillwith="checked"><img src="https://cdn.pixabay.com/photo/2019/09/19/20/24/city-4490237__340.jpg"height="150" width="150">

<input type="checkbox" variable="#myvar0" fillwith="checked"><img src="https://cdn.pixabay.com/photo/2020/01/13/19/27/victor-emmanuel-ii-monument-4763299__340.jpg" height="150" width="150">
 

I want to show these list items in html panel, with check box.

 

and the list get changed in next run. will pick some other images, but this don't change in html panel. is there any word around for this.

 

Many Thanks in advance.

 

I tried http://network.ubotstudio.com/forum/index.php/topic/22101-ui-html-panel-change-text/?hl=ui+panel

 

but no luck.

 

code I have

set(#news,%newurls,"Global")
on load("Bot Loaded") {
    set(#news,1,"Global")
}
ui html panel("<!DOCTYPE html>
<html>
<head>

<body>

<span variable=\"#news\"></span>

 
</body>
</html>",200)
set(#news,%newurls,"Global") 

my html panel code looks like this

<!DOCTYPE html>
<html>
<head>

<body>

<span variable="#news"></span>

 
</body>
</html>
Link to post
Share on other sites

You need something like this

set(#options,"test,test2,test3,test4,test5","Global")
ui html panel("<!doctype html>
<html>
<head>
<meta charset=\"utf-8\">
<title>Untitled Document</title>
</head>

<body>
<select variable=\"#selectedList\" list=\"#options\" list-fillwith=\"options\" name=\"dropdown\" style=\"width:\">
</select>
</body>
</html>
",200)

 

Link to post
Share on other sites

this did not work. I want to show the changes to be shown as soon the list items changed.

There is no drop-down requirements. Just want to show the images which are in the list.

I hope someone can surely have the answer. 

Edited by spa3212
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...