Style Javascript window class in List JS plugin

ricslabb03

Member
Hi There,

I managed to get the JS window class to work in a JS List plugin, but I do not know how to style the iframe.

Here is my code and I've attached an image of how the popup looks.

JavaScript:
jQuery.each(rows, function(rowid, row) {
  Fabrik.getWindow({
    id:rowid,
    'loadMethod': 'iframe',
    'contentURL':'index.php/send-email-hidden?eid='+rowid,
    'title': 'Send Emails',
    'height': 500,
    'width': 800
  });
});
 

Attachments

  • jswin.png
    jswin.png
    93.3 KB · Views: 42
I solved the problem by setting the loadMethod to html and placing an iframe in the html parameterwhich I could style how I wanted. I also had to style the modal in my joomla template's custom css to make it bigger and to make the iframe fit the modal correctly.

JavaScript:
  var url = 'index.php/send-email-hidden?tmpl=component&eid='+rowid;
  Fabrik.getWindow({
    id:'sendemail_modal',
    'loadMethod': 'html',
    'title': 'Send Emails',
    'content':'<iframe src="'+url+'" frameborder=0 style="border:0;width:100%;height:100%"></iframe>'
  });
 
Back
Top