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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...