How to access media file inside the webcomponent ??

Forum to discuss the new web client version of Servoy.

How to access media file inside the webcomponent ??

Postby ashutoslenka426 » Thu Jun 15, 2017 9:31 am

Hi All ,

I have a media file . I want to access the media file inside the webcomponent . I am doing so :

Code: Select all
<div>
   <img src="media:///Images/delete.png">
</div>


But this is not working . What can I do ? . Please provide some suggestion .
AL
ashutoslenka426
 
Posts: 295
Joined: Thu Jan 26, 2012 3:38 pm

Re: How to access media file inside the webcomponent ??

Postby mboegem » Thu Jun 15, 2017 9:52 am

Hi,

please see my answer in this thread https://forum.servoy.com/viewtopic.php?f=69&t=21738
Although that is about CSS, the same applies to webcomponents.

The webcomponent runs client-side (browser) and therefor doesn't have a clue what 'media:///' means, as this is a Servoy thing.
In NG all media files are exposed, so you just need to change your reference.

Hope this helps.
Marc Boegem
Solutiative / JBS Group, Partner
Servoy Specialist
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image
User avatar
mboegem
 
Posts: 1750
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam

Re: How to access media file inside the webcomponent ??

Postby ashutoslenka426 » Thu Jun 15, 2017 1:44 pm

Thanks for your reply.
AL
ashutoslenka426
 
Posts: 295
Joined: Thu Jan 26, 2012 3:38 pm


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 8 guests