Dynamically parse Skype Web Control tags - html

I want to use Skype Web Control in my React application.
The problem is that when I add generated span tags in React component, they are not parsed by Skype SDK and no plugin is rendered.
How can I programmatically force Skype SDK to parse my DOM once again to find that new tags were added and render Skype plugin?

Solution found
SkypeWebControl.SDK.start();

Related

Extract Angular components to plain HTML + CSS

I have an angular app that I need to use as a source of the components for my new app that will be mostly using pure HTML. I need to get the HTML and CSS from the Angular app.
The problem is, that the app uses custom components such as <mat-icon> that are not standard HTML tags. I assume, that under the hood they eventually consist of simple HTML elements but I can't figure it out. Is there any method to convert an Angular website to plain HTML & CSS? I know that the dynamic content can't be extracted, but I mean only the view. Maybe there is a Chrome extension to do that? I do have access to the app source code, so it can be also some npm module.

Use Openlayers in NativeScript Project

I am new to NativeScript and have knowledge of Angular. I am trying to insert a map to my mobile app with Openlayers. In Angular, in other words HTML, we can create a div and let openlayer draw the map on it. However, I can't find any equivalent to div in NativeScript, or XML. How should I overcome this?
Unlike Cordova / PhoneGap, NativeScript does not run within WebView. It has a JavaScript runtime which allows you to reuse your web skills not web components. Anything that depends on Browser / HTML Dom can't be used within NativeScript as the UI is purely native here.
If you still want to use Openlayers, you should host a WebView in your application and load your HTML / JavaScript there which can manipulate the map for you. You may also use nativescript-webview-interface to communicate with your NativeScript runtime from your web app running within the WebView.

How to use own element file for flash instead of Bootstrap-ui's default, CakePHP 3?

I am using bootstrap-ui plugin for Form but it automatically loads flash. I want to use my own element file for Success/Error/Warning etc but bootstrap-ui automatically uses its default.ctp element for rending flash message.
So how can I use my own element files for displaying the flash message?
You can overwrite the flash template on app level, like any other plugin template:
src/Template/Plugin/BootstrapUI/Element/Flash/default.ctp
See also
Cookbook > Plugins > Overriding Plugin Templates from Inside Your Application

Open new html page inside phonegap app

The thing with phonegap is that it uses it's own API via phonegap.js that is declared at the head of the index.html page.
When using window.open and it's alternatives, the new page will forget anything from the previous one, and phonegap's API would no longer be accessible.
What is the right way to open a new html file?
I really find it hard to believe that phonegap apps have to be one huge html file.
Does your phonegap app need to open a new page? The idea of phonegap is 1-page app. Meaning that to change the view, you don't need to reload the whole DOM tree. Rather you load your DOM only once and then manipulate objects inside it.
You can move to another html page by this code:
window.location = "NewFile.html";

How to Access DOM of new web page opened in Chrome

i am writing a NPAPI plugin for that i am using NPSIMPLE sample code from google chrome. i have to get the DOM of web page opened in the chrome browser. My plugin solution also includes background.html file. which when i open in chrome browser calls a method in NPAPI plugin. so my plugin can get the URL of this file. now i want to read the DOM structure of this File.
i have few questions:
when a new page is opened in browser by user how i have to embed my plugin to that page and get the DOM of that page?
whenever a new tab is opened how can i get the notification in My plugin?
How to get the DOM mutation notification to my plugin?
Does NPAPI provides API to get the DOM mutation notification or Content Script is the only option? if content script is the only option then how to establish communication between plugin and content_script?
i am trying to get this answers as well. any help greatly appreciated...
thanks in advance...
1) The only way you could do this automatically would be to put the plugin inside an extension and do it with the extension.
2) You can't, since plugins don't know anything outside of the page they are in. You might be able to jury-rig something using an extension, I suppose, but I'm not sure if that's possible or not.
3 and 4) Your best bet is probably to figure out how to get these notifications with javascript and inject javascript that will call back into your plugin.
Sounds like one of your main sticking points is that you aren't clear on what a plugin can do; you may want to read up a bit.