Jump to content

problem with AjaxRequest on uniHtmlFrame.


gunawanh4d1

Recommended Posts

If I have a unihtmlframe and then I put this on property Html of uniHtmlFrame

<div class="grid-container">
   <div class="grid-x grid-padding-x">
   
   <div class="large-2 medium-3 small-6 columns ">   
   <center>
   <img style="width:100%; margin-top:10px" src="https://picsum.photos/id/1/145/145">
   </center>   
   </div>

   <div class="large-2 medium-3 small-6 columns ">   
   <center>
   <img style="width:100%; margin-top:10px" src="https://picsum.photos/id/2/145/145">
   </center>   
   </div>

   <div class="large-2 medium-3 small-6 columns end">   
   <center>
   <img style="width:100%; margin-top:10px" src="https://picsum.photos/id/3/145/145">
   </center>   
   </div>
   
   </div>
</div>    

and I use this and put into CustomFile at Servermodule
  
  foundation.css
  foundation.min.js

at the onAjaxEvent, I put this simple 

  showmessage(EventName);

I need to click/dblclick on each of images. And it should be connected to OnAjaxEvent and return the something (number of eah image or name of each image file).
the source of src will be changed to Files, but on this project, I take from the internet

Already try this, I put onclick on Html tag "Img"
  
   <img style="width:100%; margin-top:10px" src="https://picsum.photos/id/1/145/145" onclick="ajaxRequest(Mainform.UniHTMLFrame1, 'MyEvent1', [])">

no error but still not connected to event onAjaxEvent
can anyone help me. Where is the mistake ?

Thanks for anyone help

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...