:: Forum >>

insert image into Grid (image is from anothercomputer)

When i write html page

<img src="\\192.169.100.14\ShareFolder\ExamResultImage\ct.jpg">
--> it can show-->ok)

but in ActiveWidget

<script type="text/javascript">
var obj = new AW.UI.Grid;
var HeaderText = new Array();
var CellText = new Array();
var selectorData = ["CR","CT","MR","RF","XA","ES","US","&#26908;&#20307;","&#29983;&#29702;","&#32048;&#33740;","&#30149;&#29702;"];

CellText = [["nano","pipo","<img src=\\192.169.100.14\ShareFolder\ExamResultImage\ct.jpg>","","",""]];
//-->image can't show :-( what wrong

obj.setId("ExamResultsTable");
obj.setHeaderText(HeaderText);
obj.setCellText(CellText);
obj.setColumnCount(10);
obj.setRowCount(10);
obj.setVirtualMode(false);

obj.onHeaderClicked = function(event,index){return 'disabled'};
obj.setSelectionMode("single-cell");
obj.setSelectorVisible(true);
obj.setSelectorWidth(70);
obj.setSelectorText(selectorData);
obj.setRowHeight(80);

document.write(obj);


</script>

Now i want to show image from another computer e.g \\192.169.100.14\ShareFolder\ExamResultImage\ct.jpg
What i do
Nano
Thursday, October 23, 2008
You must escape the slash char or use backslash -

"<img src=\\\\192.169.100.14\\ShareFolder\\ExamResultImage\\ct.jpg>"

or

"<img src=//192.169.100.14/ShareFolder/ExamResultImage/ct.jpg>"
Alex (ActiveWidgets)
Thursday, October 23, 2008

This topic is archived.


Back to support forum

Forum search