Sharepoint Embed Webpart Cannot find file - iframe

I'm using the Embed webpart in Sharepoint Online on the communication site and have problems with using the right url or storing the data on the right place. I use the next iframe:
<iframe src="https://******.sharepoint.com/SiteAssets/Webmap/index.aspx#11/52.1/5.62" width="100%" height="470"></iframe>
I have uploaded the map Webmap with its content on SiteAssets. Webmap consists, besides index.aspx, of the following subdirectories: css, data, images, js, legend, markers, webfonts.
The error message is "File not found"
(The message is translated by me in English so maybe it is slightly different ie Cannot find file)
Where should I put the Webmap map so I can use a working URL in the Webpart or what else could be wrong? Please help.

Related

CSS not showing up when opening with files

My css only works when I open it with live-server. I didn't realized it until I tried opening the file
of my projects. The JS functionality is there, but my project is just stale, just black and white. I'm using sass and live-sass compiler. And also using a map api leaftlet and open weather api. SO please help,
cannot seems to figure out why my css is not present when I open my project on file or in another browser.
I have seen through your file and I think your issue is your image hasn't been loaded.
You have an image of the starry sky, right? You can only see the black and white page with some icons after the search because your image hasn't been loaded.
As you access the page by opening the file, the image URL in your CSS file is the path relatives to the current CSS file, which means the URL should be ../image/night.jpg.
If you access the page through the live server, that URL is the path relative to your host.
Hope that I understand your problem correctly. I am still learning too :)

How do I remove footer/watermark from Google Data Studio in an embedded report?

I'm redisplaying a Google Data Studio report on my wordpress site via the html embed box. For this particular report I don't want viewers to know the backend is data studio. I've tried readjusting the viewing size to be smaller than that of the report in hopes it would trim out the footer but have had no luck.
Below is the code placed in the html embed box:
<iframe width="2000" height="1600" src="https://datastudio.google.com/embed/reporting/12EqvlygNlYq0D2zpHyNFe3CbswPAC_fT/page/xV>>>>DLB" frameborder="none" style="border:none" allowfullscreen=""></iframe>
Does anyone know how I could remove the google data studio report footer/watermark from my website?
You can’t remove the data studio watermark without violating the Data Studio terms of service
You need to find the following line in HTML.
<div ng-if="reportViewCtrl.isReportEmbedding()">
when a page is loaded use JS to add the following attribute:
style="display:none"
All together will look as follows
<div ng-if="reportViewCtrl.isReportEmbedding()" style="display:none">
3 easy steps:
Disable with ajax/jquery/... the right click function to prevent them from being able to inspect the element embedded and get the url anyway
With CSS, load anything that you can use to overlay it on embedded datastudio footer.
That same element, make it transparent to avoid google penalties

Embed a pdf document into asp webpage

I used the following code to embed and display a pdf document in a .asp webpage not in asp.net,the code displays the frame but not the pdf, can someone tell me where i was wrong.
<!DOCTYPE html>
<html>
<body>
<iframe height="1400" width="1000" src="C:/proof.pdf">If you see this text, your browser cannot display this document. Click this link to view it separately.</iframe>
</body>
</html>
Where you are storing that file is a big problem and something you should likely fix. What you mainly want to fix is this section
src="C:/proof.pdf"
I honestly do not care if your site does give access to the root of your C: drive it is a terrible practice to ever let that happen. Your site should not have access to any files outside your inetpub folder. What you should do immediately is move this file to a resource folder within your website. Assuming you have not changed any of the default settings this pdf would now be stored in
C:/wwwroot/inetpub/resources/proof.pdf
Once you do this though you should also change the src value to a relative path. If you followed my previous advice that path should look like this
src="../resources/proof.pdf"
That should both work fine and be much safer for your hosting computer.

How to add background music in asp.net without bgsound and embed

How to add background music when a website loads for the first time without using embed and bgsound.I am using visual studio 2010 and these two are not supported in this.
I am developing website using master page and i want to use the code in master
page.
What is the best practice to to be able when I open my website and some music starts f sometime.I am not much expert in .net with c#.So finding some problem in it.
If browser also matters?
Regards,
suparna
Add the following code anywhere in the body of your HTML document to embed a music file and play it automatically when a visitor browses your website.
<audio src="music/yoursongname.mp3" autoplay="autoplay" loop="loop"></audio>
Change the "src" attribute so that it contains the path and filename of the music file that you want to embed.
Note: Add the "loop" attribute if you want the music file to play over and over

ASP.NET Build Images Links Dynamically

I am developing a website that has product images on an external server. I have code that tests to see if the image exists like (pseudo code):
DynamicString = FunctionThatCreatesDynamicString()
' DynamicString = "http://external_server/path/to/file1.jpg"
If ImageExists(DyanmicString) = StatusCode.200 Then
' Embed link in ASP.NET page
Else
' Embed not found image in ASP.NET page
End If
My code builds fine and appears to execute. The problem occurs when I attempt to view the external link in a browser, the image appears properly (I have to authenticate first, but that's OK considering I'm on an internal network and this app will be used internally).
However, when I attempt the view the source in my generated HTML page, I am seeing the image to the "Not Found" image when I know the image is there.
I compared all the characters in my dynamically assembled to the external link and all the characters are matching up correctly.
I'm wondering if the authentication has anything to do with why the image is not rendering properly on my rendered HTML.
Any thoughts?
It turns out the problem was the authentication to the images. I tried and was able to use a completely different approach. But thanks for the tip tangurena.

Resources