I downloaded code to use new Google maps javascript api to use in Flash AIR application from
http://www.technogumbo.com/2011/12/Migrating-to-Javascript-from-the-Google-Maps-API-for-Flash-Using-Adobe-AIR/index.php
For the project marker I assigned an icon image. If the html file is opened in browser the icon image is loaded. However, when the same html is loaded in AIR application via HTMLLoader the marker image is not shown.
I am using the same code downloaded from above example, just have added icon image for marker.
Related
hi i have image stored in google drive or mega a want to display it using my qt android app
i thinks the problem is this
QML Image: Erreur de décodage
Format d'image non support
https://drive.google.com/file/d/**102A4WrjwOlySb8LWfMZ7CiIrt0f-12CO/view?usp=sharing**
this work well to my app
https://zupimages.net/up/21/05/cwkf.png
You should modify your Google Drive URL a bit as advised here to get a direct link to the image file.
Modified URL format:
https://drive.google.com/uc?export=download&id=FILE_ID
Example QML image which displays your Google Drive image:
Image {
source: "https://drive.google.com/uc?export=download&id=102A4WrjwOlySb8LWfMZ7CiIrt0f-12CO"
}
We have web application, it contains iframe with src attribute linking some pdf resource. In browsers (Edge, Chrome, Opera) user can see pdf in this iframe.
But now we createed UWP application showing the same html pages. When user open the page with this iframe, iframe is empty and the pdf is automaticaly opened in the browser window.
How to enable support for pdf in iframe in UWP application?
If I understand your question, you want to use WebView to show a web page. The web page has a <iframe> html tag, the iframe's src is a online pdf file. For the UWP built-in WebView control, it doesn't support pdf file.
So, if you want to render pdf in UWP, you could use Windows.Data.Pdf classes.
In addition, if you say you have to use WebView to show pdf file, you could try to find some JavaScript ways to render the pdf file on web page and then show it in WebView.
I tried to download the web page as pdf by using html2canvas and jspdf. All elements of page like radio button, checkbox and label are rendered well. But if I add the embedded video into the page by iframe, it doesn't render at all.
Is there any way to render the embedded video into pdf by html2canvas and jspdf?
Thanks.
this is the screenshot of web page to be rendered.
And this is one of downloaded pdf.
I'm afraid html2canvas cannot render iframes. It says so clearly in the documentation:
The script doesn't render plugin content such as Flash or Java applets. It doesn't render iframe content either.
You could do this by other means, but not from the client, AFAIK.
I have created a Google Maps map that I included on a webpage, by following these steps:
click "Customize and preview embedded map"
adjust the preview
copy paste the URL under "Paste HTML to embed in website"
paste the copied code into our webpage (<iframe>)
Now when clicking an area that I have created within the map (draw a shape) the user is able to click a link that points to another page within our website. But, the problem is that the page opens in the same <iframe>, whilst it should open outside the <iframe>.
When adding attributes like target="_blank" or target="_top" the attribute is stripped away by Google when saving the maps. Hence my embedded Google Maps map is useless for my website visitors.
Does anybody know how to make sure the window is opened outside the <iframe>?
Have you tried using the base tag within the <iframe>?
<base target="_parent" />
See How to force link from iframe to be opened in the parent window.
Alternatively you could create a intermediary page that the Google Maps page can call with a URL in the querystring that then runs some JavaScript to redirect the parent page to the URL.
Pipbox says it's "Plone 4 compatible way to do AJAX pop-ups in Plone 3".
http://plone.org/products/pipbox
Then, what's the proper way of doing jQuery Tools image pop-ups in Plone 4?
Scan HTML for images using selector
Install click handler
On click open the image in pop-up, using one of predefined sizes from plone.app.imaging
All pipbox really does is load plone.app.jquerytools support in Plone 3. In Plone 4, plone.app.jquerytools is built in.
plone.app.jquerytools loads jQuery Tools and some Plone-specific support for easy AJAX popups. That support allows you to associate AJAX popups with jQuery-selectable page components. See the PYPI page for full documentation.
A quick example: let's say that you want to set up lightbox-style popups for images in the content area using the preview-scale supplied by plone.app.imaging. JS to do this is:
jQuery( function($) {
$('img.image-right, img.image-left, img.image-inline')
.prepOverlay({
subtype: 'image',
urlmatch: '/image_.+$',
urlreplace: '/image_preview'
});
});
You would load this code by registering a javascript resource as a skin or browser layer, then add it to the portal_javascripts js resources.
The code:
Sets up a function to load when the page is ready, with "jQuery" aliased to "$";
Selects all image items in the page that use the styles used by the visual editor;
Calls the prepOverlay routine (from plone.app.jquerytools) to associate them with overlays;
Specifies that the overlays will be images, which means that size information may be determined from the loaded image;
Does a little regular expression matching and replacing to pick up the image URL and convert it to a preview.