i have a trouble with displaying image stored in my local folder</div>{{for r in plot_list:}}{{ if r.endswith('.html'):}}<div class="plot_path" id ={{=plot_list.index(r)}} style = 'width:100%; height:500px; display:none' >{{=IFRAME(_src=r, _style = 'width:100%; height:100%; border: 0') }}</div>{{else:}}<div class="plot_path" id ={{=plot_list.index(r)}} style = 'width:100%; height:500px; display:none' >{{=IMG(_src=r, _style = 'width:100%; height:100%; border: 0') }}</div>{{pass}}{{pass}}</div>i can display the HTML files in the same folder but not the png file and jpg file, please helpThanks
this the URL https://xxx.xx.xxx.xx:8898/ftds/view/view_custom_search and the image will be expected to display on the same pagethis the file location in controllerfile_location = os.path.join(request.folder, 'views','Plot')plot_list = os.listdir(file_location)this is in the view:
{{for r in plot_list:}}{{ if r.endswith('.html'):}}<div class="plot_path" id ={{=plot_list.index(r)}} style = 'width:100%; height:500px; display:none' >{{=IFRAME(_src=r, _style = 'width:100%; height:100%; border: 0') }}</div>{{else:}}<div class="plot_path" id ={{=plot_list.index(r)}} style = 'width:100%; height:500px; display:none' >{{=IMG(_src=r, _style = 'width:100%; height:100%; border: 0') }}</div>{{pass}}{{pass}}</div>
the HTML file is displayed on the same page correctly but not the images (it's blank) even though they're both in the same folder.Please help, Thanks
you mean src = _Plot/r ?