NetTalk Central

Author Topic: p_web.CreateYouTube  (Read 3015 times)

osquiabro

  • Hero Member
  • *****
  • Posts: 687
    • View Profile
    • Email
p_web.CreateYouTube
« on: February 20, 2022, 05:38:10 AM »
Hi Bruce, is possible to add extra parameter to this procedure for iframe, i need to add extra value to iframe like this
loc:extra = ' class="responsive-iframe"' but don't work

NetWebServerWorkerBase.CreateYouTube  Procedure(string pID, string pWidth,String pHeight,Long pAutoHide=-1,Long pAutoPlay=0,Long pColor=0,Long pControls=-1,Long pAnnotations=0,Long pLoop=0,Long pModest=0,<String pList>,Long pRelated=0,Long pStart=0,Long pTheme=0)

src.prepend('<iframe maybe extra value here frameborder="0" allowfullscreen="allowfullscreen" width="'&clip(pWidth)&'" height="'&clip(pHeight)&'" src="')
  src.append('"></iframe>')


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: p_web.CreateYouTube
« Reply #1 on: February 20, 2022, 07:44:21 PM »
I've added a pClass parameter for the next buils, and template support for it as well.
Cheers
Bruce

osquiabro

  • Hero Member
  • *****
  • Posts: 687
    • View Profile
    • Email
Re: p_web.CreateYouTube
« Reply #2 on: February 21, 2022, 03:56:33 AM »
Thanks!