Si queremos detectar cuando nuestro iframe cambia de página debemos sobreescribir el evento onLoad. Es importante que una vez capturemos esa navegación volvamos a aplicar el pushState por defecto para que el navegador tenga constancia del histórico. Ejemplo: <iframe onLoad { () => { const pushState = () => { const defaultPushState = iframeContentRef.contentWindow.history.pushState; return function (data: any, title: string, url?: string | null) { //YOUR CODE return defaultPushState.apply(this, [data, title, url]); }; }; iframeContentRef.contentWindow.history.pushState = pushState(); }} src={IFRAME_URL}> </iframe>
Etiqueta: control
Controlar ejecución de un Flow mediante una KEY
IMPORTANTE: Siempre se debe controlar el acceso a nuestros flows cuando éstos pueden ser accesibles desde fuera de nuestro entorno. Existen mecanismos para proteger ataques o ejecuciones no deseadas. Este post simplemente define un pequeño paso extra que podemos añadir a modo de seguridad, que en ningún caso debería ser el único. Tanto si trabajamos …
Sigue leyendo Controlar ejecución de un Flow mediante una KEY
Deshabilitar LoopBackCheck via PowerShell
Windows PowerShell: New-ItemProperty HKLM:SystemCurrentControlSetControlLsa -Name "DisableLoopbackCheck" -Value "1" -PropertyType dword
Event Receiver en SharePoint (Teoría e información)
Tenemos 5 tipos de Event Receivers para programar en SharePoint: SPEmailEventReceiver (Para los emails) SPFeatureReceiver (Para las características) SPItemEventReceiver (Para los elementos de las listas/librerías) SPListEventReceiver (Para las listas/librerías) SPWebEventReceiver (Para los sites y site collections) Cada uno de ellos tienen unos métodos específicos que podemos implementar para realizar acciones: SPEmailEventReceiver 1.1. EmailReceived (Cuando un …
Sigue leyendo Event Receiver en SharePoint (Teoría e información)
Windows Server 2012: Turn Off Windows Firewall in 5 steps
1. Go to Control Panel and System and Security 2. Go to Windows Firewall 3. From the left menu, select Turn Windows Firewall on or off 4. Check all options with Turn off Windows Firewall (not recommended) 5. All options should be red now
SharePoint 2013: Create JS File From HTML Display Template
When you create a custom Display Template and you deploy it, you can see the HTML uploaded, but you can't see its JS (created automatically in theory). Problem: You don't have the correspondent JS of your HTML Display Template Solution: 1. Access to your Site with SharePoint Designer 2. Go To: All Files -> _catalogs …
Sigue leyendo SharePoint 2013: Create JS File From HTML Display Template