Umbraco razor displaying iframe - iframe

I have set this up so that in umbraco I paste the iframe link into a multiple textfield, and then in the XSLT I would do something like:
<xsl:value-of select="embedCode" disable-output-escaping="yes"/>
Which would display the video fine, but I am now trying to do this in razor and I can't seem to get it to display at all? I've tried using html raw but can't get it working
This is basically what I have at the moment which just spits out the iframe url
<div>#item.embedCode</div>
Anyone have any ideas please?

Related

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

Mendix iFrame - Page not found

I have created multiple custom .html pages and placed them in /themes in my project. To use these custom pages in my project, I am using iFrame widget, which is placed in a dataview and all the settings are done correctly as I have used this widget previously as well. When I navigate to this page with widget using iFrame, it works fine the first time and displays the page correctly. However, after first time, no link to any of the pages works and gives an error "Page Not Found". Can someone point out what I am doing wrong here or guide me to a different/better solution to achieve this?
Note: I have also tried the same with iFrame tag inside HTML Snippet, and the behaviour is exactly same.
A common mistake is that people use just the filename instead of complete url in iframe url property. Try changing the filename to complete url e.g. http://example.com/file.html instead of file.html.

Deleting part of html code from iframe

I have an asp.net page where I put some iframe. I want to delete a part of html code from this iframe in code behind. How to do it? For searching and deleting html code on page, will be helpfull regex or HAP. But how to get inside of this iframe?
If the iframe is on a different domain you can't access it via JS (assuming you're using javascript or similar to do it).
http://javascript.info/tutorial/same-origin-security-policy

make aspx page display sml document

Im trying to make an aspx page display as xml for an rss feed
the output looks like its formed ok when i view the source:
<?xml version="1.0" encoding="ISO-8859-1" ?><rss version="2.0"><channel><title>phil</title><link>http://www.mysite.co.uk/blog.aspx</link><description>phils blog</description><item><title>Test Blog</title><link>
http://www.phil.co.uk/blog/test-blog.aspx</link><description>test description</description><pubDate>2011-10-21T14:19:28</pubDate><guid> http://www.phil.co.uk/blog/test-blog.aspx</guid></item></channel></rss>
But when i view the page in chrome it just shows the text from the nodes and not a visual of the xml structure. What do i need to do?
You could use the Google Chrome Tree Extension.
I will suggest you to Use EXtensible Stylesheet Language (XSTL)
You can display xml directly on browser without using any ASPX page. It is used to styling of your xml.
Let me know, if you have any concern.

How to display XSL-transformed XML in ASP.NET page?

So far all the XML / XSLT I've worked with takes an XML document and transforms it to a standalone HTML webpage using an XSLT file.
In my web application, I'm using a web service to retrieve the XML document, which I need to render and make human-readable, and then insert that formatted content into a content placeholder in my master page.
The easiest way would be to append the XSLT to the retrieved XML file and link that to the content placeholder, but something tells me I can't just do that.
I took a look at these Stack Overflow pages, but they just want to render the straight XML whereas I want a transformed XML. Also, I need to be able to put it into my master page template.
This article shows how:
http://www.codeproject.com/Articles/37868/Beginners-Introduction-To-XSL-Transform-Rendering-XML-Data-using-XSL-Get-HTML-output.aspx
even if the spelling is as bad as mine...
Added
And here's another link that shows how, perhaps a bit more simply
http://www.aspfree.com/c/a/XML/Applying-XSLT-to-XML-Using-ASP.NET/2/

Resources