Adobe DTM javascript embed without iframe - adobe

I have a simple question. I'm looking to embed javascript code that creates some html and displays an image. I know there are options to embed this code as a third party tag as sequential html/JS or non sequential html/JS. Do both of these options create an iframe for that embed code? Is there a way to not be within an iframe?

If the tag has been placed as "Non-Sequential HTML" then DTM outputs the code as an iframe.
"Sequential HTML" type will use document.write() to output the content synchronously.

Related

scraping video links from lazy loaded videos

I am trying to scrape a video from a page using a package called icrawler, but that video is not rendered instantly when a page loads, so when I get the html code of that page, the video tag doesn't exist but it does if I open the page in the browser and inspect.
How do i wait for the page to load the video before crawling it ?
The page most likely loads the video using javascript so, you would need library capable of rendering/executing HTML and javascript.
I took a quick look at icrawler and according to the doc it uses Cheerio which quoting from its doc "does not produce a visual rendering, apply CSS, load external resources, or execute JavaScript".
The same docs mention that you could use something like PhahomJS (seems to be abandoned) or JSDom. Another alternative is to use Selenium.

Print all content in aspx page including embedded pdf

I have an aspx page that i need to be able to print out. Inside my page i embed a pdf that is displayed using a cdn as the src.
Since it is a pdf and it is embedded but being hosted on another site when i try to print the page even though it displays correctly the element shows as empty. How can i capture everything in the DOM including the embedded pdf?
I have tried to use the jspdf library to no avail.
<embed src='https://image.pdf' style="width: 607px; height: 500px" />
If you are trying to print everything inside the browser window then maybe use print function of window object?
window.print();

Embed Code in Drupal

I am not familiar with Drupal but our clients report that what we provide as embed isn't working with drupal.
Our embed code will be
<iframe id="ivideoframe" src="https://mywebsite/Player.aspx?q=IsahXh4JBPTq9sc%252b2j4zmaJvfFIagPpqAIBQIZpQTGUxPzzL8g44uVrsRGGRbDnSk5IO3kBeGI%252b211on7BfXBL6UjrXe%252fI%252bhftSaavtHay8%253d" height="419" width="665" toolbar="no" scrolling="no" frameborder="0"></iframe>
What I understand from client is the query string letter "?q" has some issue with drupal. Can some one help me to understand how this code will result in error when used in drupal?
If you are putting this embedded code into a block, or a CCK field of some sort (body, text, etc), you'll want to make sure that the "Text Format" is set to either Full HTML or one that allow the use of full html.
Even Full HTML can sometimes be buggy with iFrame's, I've found. We've found the best practice is to actually create your own Text Format called "Raw HTML" that allows everything and doesn't try to format things at all. You can create it at [Admin --> Configuration --> Content authoring --> Text Formats].
Then once you've created the format, simply choose that custom format on the field that contains the iFrame embed code.

A "shortcut" method for exporting an ASP.Net Page to pdf/xls

I want to export a few Pages to pdf/xls. By Pages I mean as the eye sees it - a screenshot of the Page's contents. I know how to build pdf/xls documents using 3rd party tools but is there any way to quickly export the rendered contents of say a Panel?
edit: maybe a tool that can render the page's output as a browser would, and save it as an image file?
There is an open source console program named wkhtmltopdf which you could call from asp.net to convert the page. It can convert to PDF or an image with wkhtmltoimage (JPG, PNG, etc.) using the webkit rendering engine.
Check my answer to this question to see an example of how to convert from a html to a pdf using C#:
Easiest way of porting html table data to readable document
I can recommend http://www.screengrab.org/ for firefox.

mx:HTML window - data scraping a php page?

I have a Flex mx:HTML component which uses an html window to display html data from 3rd party website.
let's call the page:
http://www.company.com/page.php (not a _real page (duh))
There is alot of "trash" displayed.
I used "Firebug" to inspect the webpage elements.
I see that the section of the page I want to display is:
/html/body/div[4]/div[2]/div/div[2]
or, to put it a another way:
html body.landing div#content-bg div#content-wrap div#content div.main
my question:
Is there a way to access this section of the page only, especially since it is "rendered" using PHP (which I have no knowledge or understanding of)?
(I will NOT be using PHP to gather this info)
many thanks!
Mark
Take a look to Flex IFrame which enables HTML Browsing in Flex apps.
You can try this URL.

Resources