This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Widget Iframe change URL Dinamycally
#2
You can do this via Custom JavaScript, change #widget-2 to your widget's id, create buttons as needed and set Additional classes to btn-1, btn-2 and so on.

Code:
$(function() {
  function seturl(url) {
    $('#widget-2 iframe').prop('src', url);
  }

  $('.btn-1').off('vclick').on('vclick', function() {
    seturl('https://forum.logicmachine.net');
  });

  $('.btn-2').off('vclick').on('vclick', function() {
    seturl('http://openrb.com');
  });
});
Reply


Messages In This Thread
RE: Widget Iframe change URL Dinamycally - by admin - 24.05.2017, 08:56

Forum Jump: