HTML5 Data Bindings Support Product Page

Solved

how do you add an image sorce to an image

Reported 06 Mar 2014 23:37:04
1
has this problem
06 Mar 2014 23:37:04 Mr. em posted:
I have image hosted on another domain and I am trying to call them via this page using data binding, not sure why not working? here it the code
<script type="text/javascript" src="../ScriptLibrary/jquery-latest.pack.js"></script>
<script type="text/javascript" src="../ScriptLibrary/dmxDataBindings.js"></script>
<script type="text/javascript" src="../ScriptLibrary/dmxDataSet.js"></script>
<script type="text/javascript">
  /* dmxDataSet name "rsFeaturedGeneral" */
       jQuery.dmxDataSet(
         {"id": "rsFeaturedGeneral", "url": "../dmxDatabaseSources/rsFeaturedGenral.asp?limit=7", "dataSourceType": "database", "dataType": "jsonp"}
       );
  /* END dmxDataSet name "rsFeaturedGeneral" */
</script>
</head>

<body>
<div data-binding-id="repeat1" data-binding-repeat="rsFeaturedGeneral.data" img="{{ProductPicture}}">[img]https://img.mema-ecom.com/productimages/" data-binding-src="{{ProductPicture}}" /></div>

Replies

Replied 07 Mar 2014 10:10:47
07 Mar 2014 10:10:47 Teodor Kuduschiev replied:
Hello,
This code seems to be wrong.
You can try using with an <img ... tag
data-binding-src="https://img.mema-ecom.com/productimages/{{ProductPicture}}" 

Not as you are currently trying to apply it on a div.
Replied 07 Mar 2014 17:51:51
07 Mar 2014 17:51:51 Mr. em replied:
thanks

Reply to this topic