Dynamic html content in a movie?
Hi,
Can someone tell me if it's possible to dynamically load a
HTML file into a flash movie without opening the content
into a separate browser window? i.e. Load the HTML into a
container in the movie window itself. The actual HTML file name
itself could be hardcoded in the movie if that helps...
I'm totally new to Flash and Action Script but am a
developer, so will understand if you can even just point me to an
API.
Thanks in advance.
Brian
No. You would have to parse the html using the xml class (for
instance). Or use an extension (search for tablemaker) that does
the parsing (with restrictions like content can only be in one
table). By itself Flash only supports a small subset of the html
tags. You could use an IFrame but that is pretty much asking for
trouble. And, Flash isn't a browser...
Similar Messages
-
Dynamic HTML Content in iFrames of a BSP application
Hey Folks,
I am currently having to build a context sensitive URL, which is built dynamically and accordingly load the page within a given view during runtime. The URL points to a simple HTML page.
The application whcih is embedded in the view is a BSP application. The BSP application comprises of an iFrame which should hold the value of the URL built, within the attribute "src". Is there a way in which the value of this attribute "src" of the tag "iframe" can be populated during runtime for BSP applications?
Please do let me know of your thoughts on this.
Thanks and Best Regards,
Puja.@Rodrigo,
Did you make sure you have included the end tag </iframe>? am not sure about this, but maybe you would need to include the htmlb page extension too?
<%@ extension name="htmlb" prefix="htmlb"%>
@Others,
My problem is that the BSP in question has been generated by a framework, the content of which i need to tweak programatically.
I forgot to make a mention of the crutial aspect that, the Page Type of my BSP application is 'View'. I could have used the oninitialization event to my convinience , had the page type of the application been 'Page with Flow Logic'. I do not have the various event processing options such as 'onInputProcessing' or 'OnInitialization' or 'OnLayout' here which I can work upon.
Has any body worked with BSPs of type 'View'. Any help would be much appreciated.
Thanks and Best Regards,
Puja. -
Updated HTML content not displayed
Hi All,
In webdynpro application, I am having an HTML file in the MIME repository which I am downloading dynamically and modifying its contents and placing the edited contents in ICM cache to display the URL. But I see that the changes I have made in the HTML file has not taken place even though I see in the debug mode that the chanegs are happening. In order to test i deleted the html file manually from MIME repository and uploaded it again , but even then it displays the old contents of the deleted HTML file. ANd it is not even taking the changes that are happening in the program dynamically.
Where is that it is going wrong?If you place the dynamic HTML content into the ICM cache, then it should have a completely different URL than the original content from the MIME repository. It would only have the same content with the different URL if that is what you placed into the Cache. Generally the Cached URLs are GUIDs. Perhaps you should post your ICM cache upload code, because if the content is the old content from the MIME repository, then you are certainly doing something wrong in the upload.
-
Fetching Dynamic email address from the HTML content sent in the email body
Hi All,
I have a scenario where in i have to send an html content via an email body . while doing so , i need to fetch the email address from the html content and send a mail to the specified email adrress in the html content .
How to fetch the email address from the html content.
Regards
Vinay P.Hi ,
Dynamic configuration means ...do i need to come up with a mapping which contains the To,From,Subject fields & all...so that when i click on the mail package in mail adapter ...this "To" email id will be fetched dynamically
Regards
Vinay P -
Is there a way to display external HTML content inside a SWF movie?
IE if i wanted to have an 800x600 flash movie that i could display cnn.com or something of that sort. Is it possible?
A second option is to display the HTML content over the top of the Flash content.
If is project is to be displayed as a Web page... it's all HTML anyway.... some of which may be Flash content, some that is regular HTML content. So it's not that hard to add in a little more regular HTML content.
In your Flash movie, leave a blank space with the exact dimensions/location of the HTML content you want to display.
Then using HTML/CSS z-indexing, stack the HTML content over the top of that blank space... making it LOOK like the HTML is a part of the Flash.
If you want to display part of another Web site like cnn.com, you could do that in an iframe.
Z-indexing info here:
http://www.w3schools.com/cssref/pr_pos_z-index.asp
http://webdesign.about.com/cs/css/a/aazindex.htm
and the iframe here:
http://www.w3schools.com/tags/tag_iframe.asp
Best wishes,
Adninjastrator -
Hi, I'm just getting started with SharePoint 2013 and would like to have the Intranet homepage page content dynamically update based on another page library.
For example, I have a sub-site with a Pages library. Similar to the Content Editor where I could retrieve the latest x number of items, all I would like to do is display the page content of the latest page created in the sub-site. The only content I care
about is the page content which will be in HTML.
Is this possible and if so how? I'm using a Publishing site if that helps, it would be nice if I could do this with the out of the box SharePoint features and functionality.
Hope I've explained it well enough! ThanksHi Dan,
To display the page content of the latest page in the home page, I recommend to use iframe to dynamically display the latest page.
You can use code to get the URL of the latest page in Pages Library and then dynamically update the URL in the iframe.
Here are some links for your references:
SharePoint dynamically load content into an iframe:
http://dirty-dot.blogspot.kr/2013/03/sharepoint-dynamically-load-content.html
Iterate over Pages library and get each item's properties:
http://sharepoint.stackexchange.com/questions/20846/iterate-over-pages-library-and-get-each-items-properties
Thanks,
Victoria
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Victoria Xia
TechNet Community Support -
Dynamically load content into a "template" swf from text file
I have a dream....
Well, I have a concept. I have not actively pursued Flash in
several years, though I've continued to have it in my arsenal. I've
not done much in the action scripting realm for a while though.
I am trying to create a template that will be used for about
100 different product pages.
It would have two tabs, basically, 2 different graphical
button sets. One will have up to 4 links to similar products, each
tab will be on the side of a square, and I need the ability to not
display a tab if there is no actual link.
As for the other tab, Its a menu that consists of a series of
lines. This can be an external menu, I just need a way to have
flash load the right menu. This menu, when you mouse over a line,
the name of the product appears, as well as a product image that
gets loaded with the menu. The product images would be external,
allowing me to simply replace an image if a new higher end version
of the product comes out.
So, I am totally not an actionscripter. Looks like I need to
load variables from an external file. Can I set a property in the
flash code on the html that tells the movie what dataset to grab
from?
Here's basically what I am looking for
property: value
(load variables for:)
item: 44
(menu1)
faster: 54b.html
slower: 34d.html
left: 43d.html
right: 45c.html
(menu2)
menu:graph5.swf
(menu loads images from external source)
link51: 51d.html
link52: 52c.html
link53: 53c.html
link54: 54d.html
link55: 55b.html
link56: 56d.html
A possible third menu would be text driven, and would use
html to link to various items.
This is a static site, so urls will be fixed.
Is it best to build a php page that serves up data for a
single item, or do one big text file with all 100 or so items? Is
that even possible?
My Flash since MX is very rusty. I am using Flash Pro8. I
would love to create a single file so modifications are to the text
files, unless a new item is released, then it's updating a single
flash menu and updating the text file.
Been spending way too much time in InDesign lately! I used to
be pretty good at Flash!well sorry there fanmap - but I don't think you're going to
be able to get this to work. here's why: the link points to a php
file - which gathers dynamic info from a DB - the return from the
php is generating a string that is based on the DOM and
'constructs' a javascript method that in turn writes to the html
document. although we can embed html into a textField in Flash
there are a limited number of supported html tags - and JS methods
will not operate internally. in addition, (i'm not certain someone
correct this if i'm off) there's no way to 'change' the output of
the php call, therefore you will not be able to read the return
because it is designed to use the DOM and write solely to the
current document. Even if you were to access the JS method from the
swf file (which one can) it will still only write the content of
the php return to the html document - and the output is not
compatible with the textField class. -
Getting html into a flash movie
A client is concerned with getting some html text picked up
by the search engines. I've already created a flash site they are
happy with. Now they are asking if I can actually make part of
their flash site include some html text layed over the flash movie
or something like that.
All I could think of was some way (perhaps with javaScript)
of making the buttons in the swf movie load html text.
Does anyone know if this is possible?
Thanks.
A
P.S. Someone mentioned the "SWFObject method" but I was
curious if there was another way to do this. Remember the main
concern here is that search engines can pick up the text.>> P.S. Someone mentioned the "SWFObject method" but I
was curious if there
>> was
another way to do this. Remember the main concern here is
that search
engines
can pick up the text.
That's the way to go if you want search engines to spider a
Flash site.
SWFObject writes the Flash content to a <DIV> on your
page. Inside that div
element, you place your HTML page... you can do dynamic stuff
with PHP,
whatever. If your user doesn't have Flash, or if a spider
hits the page,
they will see the HTML content within the div. If they do
have Flash, then
SWFObject overwrites the div with the Flash, and your user
sees the Flash.
Works a treat...
If you want an example: www.arandell.com
Turn off JavaScript and refresh, and you'll see the HTML
version. Google
spiders this site perfectly.
Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/ -
Writing Html Content into PDF using JSP
Dear All,
I am using JSP to generate Employee payslip dynamically. Presently i am diplaying payslip as on-screen display.
Here i want to give option "Save as PDF". I am able to create PDF file using IText Libraries. i want to integrate HTML code into the PDF file.
Writing HTML Content (using HTML Tags) into PDF.Well it is a difficult ask and i believe we are trying to re-invent the wheel
Just to make my life simple i could have choosen either sample API given below to serve my cause
1).[http://xmlgraphics.apache.org/fop/] (Apache FOP one can simply write an XSL template of their and then substitute the values from respective DTO's by using XSL - XML transformations and can generate content in different formats which includes PDF aswell)
2).[http://jasperforge.org/plugins/project/project_home.php?group_id=102] (Just design a simple report template using iReport and create a jrxml files and write a small code snipett such that you can pass few details at the runtime and can export the report in different formats which includes PDF aswell)
3).[http://www.object-refinery.com/jfreereport/] (Is much similar to what jasper offers in order to compile these you can either use pentaho product IDE or BEA/Oracle Actuate report tools)
You can simply try searching for different examples for getting more help on using the respective API's
Hope that helps :)
REGARDS,
RaHuL -
Dynamic HTML generation from a Dynamic PDF/XDP
I was wondering if LiveCycle is able to generate a dynamic HTML page from a dynamic XDP/PDF form in LiveCycle ES ?
I have read up on the help contents regarding HTML generation from PDF forms but its not mentioned anywhere whether LiveCycle supports the creation of an HTML page that mimics the dynamic behavior of a dynamic PDF/XDP form.
Thanks in advanceYes it does ....
Paul -
Setting html content with setContent() does never show images
I've an application set sets dynamically generated html-content in a webview node by using the webengine.setContent() method. This generated html content uses image-tags.
Here's the problem: the image is not displayed. I tried all variations (absolute url like "http://localhost/c:/test.png" or "file://c:/test.png", relative urls like "test.png" with png in jar-file).
Anyone out there who has a workaround for me? I appreciate any comment.one non-working apple <img src="apple.png"> You loaded the page content with loadcontent, then inside the page content provided a relative url. This is likely an error.
The question is, what is this url relative to?
The answer is either likely undefined as no protocol was used to load the page content and so it can't be determined how to load the relative url resource.
and two non-working peaches <img src="http://localhost/c:/peaches.png">
You attempted to load content using the http protocol server on the localhost, but you have no such server on the host, so this cannot work.
and a working remote image url <img src="http://docs.oracle.com/javafx/javafx/images/javafx-documentation.png">
This works because you fully specified how to load the content by providing the protocol and valid resource reference.
OK, so the question remains how do you images from the local drive?
There are three options for this in the following code.
package org.jewelsea.examples.webviewlocal;
import javafx.application.Application;
import javafx.beans.value.*;
import javafx.scene.Scene;
import javafx.scene.layout.FlowPane;
import javafx.scene.web.WebView;
import javafx.stage.Stage;
/** Example of a webview loading resources from the file system. */
public class WebViewLocal extends Application {
public static void main(String[] args) throws Exception {
// URL.setURLStreamHandlerFactory(new HandlerFactory());
launch(args);
public void start(final Stage stage) throws Exception {
final FlowPane layout = new FlowPane();
WebView webView = new WebView();
webView.getEngine().load("file:///C:\\dev\\gettingstarted\\timeforgotten.html");
// webView.getEngine().load("jar:file:///C:\\dev\\javafx\\JavaFXidea\\out\\artifacts\\JavaFXidea_jar\\JavaFXidea.jar!/org/jewelsea/examples/webviewlocal/timeforgotten.html");
// webView.getEngine().load("resource:///org/jewelsea/examples/webviewlocal/timeforgotten.html");
webView.getEngine().getLoadWorker().exceptionProperty().addListener(new ChangeListener<Throwable>() {
@Override public void changed(ObservableValue<? extends Throwable> observableValue, Throwable oldThrowable, Throwable newThrowable) {
System.out.println("Load exception: " + newThrowable);
// layout the scene.
layout.getChildren().addAll(webView);
Scene scene = new Scene(layout, 1000, 600);
webView.prefWidthProperty().bind(scene.widthProperty());
webView.prefHeightProperty().bind(scene.heightProperty());
stage.setScene(scene);
stage.show();
}which loads the following html file:
<html>
<head>
<style type="text/css">p { color: sienna; font-size: 20px; text-align: center; }</style>
</head>
<body bgcolor="cornsilk">
<p><em>
<br/>
On either side the river lie,<br/>
Long fields of barley and of rye,<br/>
And through the fields a road runs by,<br/>
To many towered Camelot.
</em></p>
<p><img src="camelot.jpg"/></p>
</body>
</html>If you want to test this example the camelot.jpg image is downloadable from http://www.timelessmyths.com/arthurian/gallery/camelot.jpg.
Option 1: The file:// protocol for lookup from the filesystem.
This is the most straight-forward as it is just based on standard html layout in the filesystem - just place your html and it's relative referenced images somewhere in your filesystem in locations relative to each other - if your browser loads it properly, then your webengine will to if you give it the right file:// path.
In the case of file:///C:\\dev\\gettingstarted\\timeforgotten.html, timeforgotten.html is placed in c:\dev\gettingstarted and camelot.jpg image is placed in the same directory.
Option 2: The jar:file:// protocol for lookup from a jar hosted on the filesystem.
This makes use of the http://docs.oracle.com/javase/7/docs/api/java/net/JarURLConnection.html to find your resources.
If your application resources are packaged in a jar file (could be the same jar file as your main application class) then you can reference the jar file through the file protocol, then pick out the resources packaged in the jar file via their relative paths.
Option 3: The resource:// protocol for lookup based on the classpath.
This type of resource lookup is the one most Java programmers are familiar with - a classloader is used to load a resource. The pattern is widely used in web application frameworks on the server. But usually the means to do this is via a classloader.getResource() call, not via a URL.
Java does not, by default, have a URL protocol handler for looking up resources on the classpath, so if you want to do this, it is necessary to create your own protocol and install it.
The installation function is the commented out line: // URL.setURLStreamHandlerFactory(new HandlerFactory());
It is a system wide call for the VM and should be called (just once) before any URL Connections are established.
To get this to work I used a resource handler from http://www.arakhne.org/arakhneVmutils/index.html which included the following classes:
java.org.arakhne.vmutil.resource.Handler
java.org.arakhne.vmutil.resource.HandlerFactory
java.org.arakhne.vmutil.resource.URLConnection
java.org.arakhne.vmutil.ClassLoaderFinder
java.org.arakhne.vmutil.Resources
java.org.arakhne.vmutil.ResourceNotFoundException
java.org.arakhne.vmutil.URISchemeType
java.org.arakhne.vmutil.URLHandlerUtilDetails on how all this works are in http://java.sun.com/developer/onlineTraining/protocolhandlers/ which defines "A New Era for Java Protocol Handlers" by defining a URL handler extension mechanism which is hardly ever used.
As a final note to my way overly long forum post, when the WebEngine doesn't process the urls sometimes you can get info on what went wrong via the monitoring the loadWorker's exception property, but sometimes I was able to get more complete stack traces by trying to open a connection on a URL to see if I had got the URL correct - for example:
URL url = new URL("jar:file:///C:\\dev\\javafx\\JavaFXidea\\out\\artifacts\\JavaFXidea_jar!/org/jewelsea/examples/webviewlocal/timeforgotten.html");
url.openConnection();Anyway, just using the file:// protocol in webEngine.load() will probably accomplish what you need.
Note that if it is a webstart or browser embedded app, then you'll need to sign it if you want to access the local file system. -
Hi,
For the past few years I have used a website with simple dynamic HTML effects in it to teach people how to double click a mouse. I had a series of images that disappeared off the page when they double clicked on them, I had added the DHTML effects using
Front Page 2003, up until IE11 I could still make the effects work by setting the browser to support compatibility mode but now I can't see how I can activate this content. Is it possible to make the double click effect work by simply altering the JavaScript
on the page?
Thank you in anticipation of your help.
Bernard JordanYou are post a wrong forum.
-
Hi All,
I would like to know how dynamic HTML can be generated in WD,.? Is there any method that can be used?
Thanks,
VasukiHi Vasuki
create a dynamic HTML string lv_html_string and upload to ICM Cache by constructing a dynamic URL.
data: cached_response type ref to if_http_response.
create object cached_response
type
cl_http_response
exporting
add_c_msg = 1.
try. " ignore, if compression can not be switched on
call method cached_response->set_compression
exporting
options = cached_response->co_compress_based_on_mime_type
exceptions
others = 1.
catch cx_root.
endtry.
data: l_app_type type string.
cached_response->set_cdata( lv_html_string ).
l_app_type = 'text/html' .
cached_response->set_header_field( name = if_http_header_fields=>content_type
value = l_app_type ).
concatenate '/sap/public' '/' 'pagename.html' into lv_URL.
cl_http_server=>server_cache_upload( url = lv_url
response = cached_response
SCOPE = IHTTP_INV_global ).
lv_url is the link to a html page, put all the html content in lv_html_string.
Abhi -
Hi,
i want to use the Spry Framework with dynamic loaded HTML.
To do so i load HTML in an div-Element and afterwards i call
'Spry.Data.initRegions(obj);', where obj is the object of the div
with the dynamic content.
I have set: 'Spry.Data.Region.debug = true;' and this shows
me, that the dynamic HTML is parsed in the right way, but i is not
written in the div-Element. I don't know why.
My test setup is based on the 'Hijax Demo - Notes 1' from
articles/data_set_overview/index.html.
At first the XML:
<?xml version="1.0" encoding="iso-8859-1"?>
<notes>
<note id='a1'><![CDATA[<p>This is some
<b>dynamic content</b> for note
1.</p>]]></note>
<note id='b2'><![CDATA[<p>This is some
<b>dynamic content</b> for note
2.</p>]]></note>
<note id='c3'><![CDATA[<p>This is some
<b>dynamic content</b> for note
3.</p>]]></note>
</notes>
Here i have added the id-attribute.
Now the HTML / Spry:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml"
xmlns:spry="
http://ns.adobe.com/spry">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Hijax Demo - Notes 1</title>
<script language="JavaScript" type="text/javascript"
src="../includes/xpath.js"></script>
<script language="JavaScript" type="text/javascript"
src="../includes/SpryData.js"></script>
<script language="JavaScript" type="text/javascript">
var dsNotes = new Spry.Data.XMLDataSet('notes.xml',
"/notes/note");
var dsNotes1 = new Spry.Data.XMLDataSet('notes.xml',
"/notes/note");
Spry.Data.Region.debug = true;
function writeSpry(){
var obj=$('dynamicSpry');
obj.innerHTML='<div id="innerSpry"
spry:region="dsNotes1"><p spry:repeat="dsNotes1">This is
some <b>dynamic content with
Spry</b>{dsNotes1::@id}</p></div>';
Spry.Data.initRegions(obj);
alert(obj.innerHTML);
</script>
</head>
<body>
<a href="#" onclick="dsNotes.setCurrentRowNumber(0);
return false;">Note 1</a>
<a href="#" onclick="dsNotes.setCurrentRowNumber(1);
return false;">Note 2</a>
<a href="#"
onclick="dsNotes.setCurrentRowNumber(2);Spry.Data.initRegions();
return false;">Note 3</a>
<a href="#" onclick="writeSpry(); return
false;">Dynamic HTML</a>
<div id='dynamicSpry' spry:detailregion="dsNotes"
spry:content="{note}">
<p>This is some <b>static content</b> for
note 1.</p>
</div>
</body>
</html>
The trace Box shows:
Generated region markup for 'innerSpry':
<p>This is some <b>dynamic content with
Spry</b>a1</p><p>This is some <b>dynamic
content with Spry</b>b2</p><p>This is some
<b>dynamic content with Spry</b>c3</p>
Everthings semms to be ok.
But the display won't change and the alert box says, the
content has not changed.
I don't know how to say, that Spry should display the right
content.
Sincerly
HaraldThe reason it doesn't work is a bit complicated, but it goes
something like this:
Spry maintains a list of the regions on the page after the
onload event fires. When you go and call initRegions from your
"Dynamic HTML" link, it finds your region that you injected
programatically and adds that to the end of the regions list ...
but, one of the things that initRegions does after it finds and
creates regions, is it tells all of the regions in the regions list
to update themselves ... since you basically have set up a region
in a region (nested) ... the outer region recalculates its internal
content ... blowing away your nested region container ... since
spry is holding a pointer to your inner-nested region container
node, it does insert your new content, it's just that your node
isn't in the document anymore.
That all said, if all you are trying to do is replace the
template code used in the region, you can do it this way:
function writeSpry(){
var obj=$('dynamicSpry');
// Break any ties between the data set and the current region
object:
dsNotes.removeObserver(Spry.Data.getRegion('dynamicSpry'));
obj.innerHTML='<p spry:repeat="dsNotes1">This is some
<b>dynamic content with
Spry</b>{dsNotes1::@id}</p>';
// Add a region attribute so the initRegions call can find
it.
obj.setAttribute("spry:detailregion", "dsNotes1");
Spry.Data.initRegions(obj);
alert(obj.innerHTML);
I'm not going to guarantee that this will work between
versions of Spry ... but allowing folks to change the template
inside the region is definitely something on our list of things to
do. There's also some refactoring work I need to do so that you can
call some method that will allow you to turn a dom sub-tree into a
region without triggering all of the regions on the page to update
themselves. -
How can I generate dynamic html header entries in a page?
Thanks,
ArtSee [this thread|http://forums.oracle.com/forums/thread.jspa?messageID=2808228]: a PL/SQL Function Body Shortcut would be the way to go in page HTML Headers.
For even more flexibility and lower maintenance, consider the other technique mentioned there of placing one of the #REGION_POSITION_nn# placeholders inside the HTML <head> in the page template. A template-less PL/SQL Dynamic Content region can now be set at this display point to generate any header content by calling package code that uses htp. Put this region on page zero for a very generic solution...
Maybe you are looking for
-
Administrator Bios Password won't work on HP 4420s XT940UT#ABA Windows 7 64 Bit
Someone please help me with this!! I bought this laptop from a friend (have a receipt) who sold it to me because the screen was cracked and all spidered out when you turned it on. Well everywhere he went to ask about getting the screen fixed it was v
-
Ideas on running a batch of threads?
Hi All, I have a class which makes system calls. However, sometimes it is ok to wait for the method to finish, but then sometimes it would be much more efficient to make multiple calls at the same time and wait for them all to finish. So I wanted to
-
RegardsHello everyone, I bought the AP541 since I thought I might just as well take the plunge and get a "real" AP rather than the Netgear 102's that I had in the past ( and been working perfectly fine I might add ). First issue is DHCP - I just cant
-
Process train - doesn't navigate backwards
I'm using JDev10.1.3.3, and I am trying to implement an 8 node multipage process train. The problem is it will sequential move forward through the nodes, but never back. I'm using the default "PlusOne" scenario, so I'm expecting that I can move back,
-
Hi All, I have made changes to one of the entry of the pool table-T180U. There was no request created in the Development server for the above changes. How to transport the changes to the Production? Can I directly make the same changes for the pool t