473,503 Members | 1,655 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

AJAX & Flash

3 New Member
Hello,

I have embedded a Flash Movie in an AJAX HTML page which is created by JSF and ICEfaces.
When the page loads for the first time everything works fine. The gallery shows up and displayes all the pictures.

Now we use ICEfaces AJAX components to change some text on the page.
And when this happens the Flash Movie disapears (unloads(?)) from the page.
The space where the Flash Movie should be is just blank and Flash is not present there as the context menu is the one of the HTML page underneath.

The same components are used to render the page for the first time.
I am not quite sure wether this is a problem of Flash or AJAX in general.
Is there some magic we can apply to "reload" the Flash Movie?

Has anybody here ever tried something similar and did succeed?

Any hint is greatly appreciated,

Juergen
Jun 26 '07 #1
3 1686
pbmods
5,821 Recognized Expert Expert
Heya, Juergen. Welcome to TSDN!

My guess is that the Flash object is in the element that's getting overwritten when you change the text. If you're using Firefox or the new Safari beta, inspect your Flash object and look at its parent element.
Jun 26 '07 #2
mentos07
3 New Member
Thank you!

This is a great leap forward. In fact the element gets overwritten, but the new element contains the nearly the same Javascript code. The difference lies in a path where the flash should retrieve some pictures from. But this is correct.

Now the question is "Why is the Javascript code executed when rendering the page for the first time and not when rendering incremental changes?"

I will have to check on the rendering mechanisms of the browsers to find the key.

If I find out something useful I'll report it here.

Jürgen
Jun 27 '07 #3
mentos07
3 New Member
I found the (presumed) reason for the problem on this page:
http://www.howtocreate.co.uk/loadingExternalData.html

"Even many DOM capable browsers will not run the contents of a script element that is is created using DOM methods after the page has loaded. The only way that JavaScript will reliably run a script is if the script is embedded in the page directly or via an external script file, while the page is loading."


If this is true, and all my tests seem to confirm this, then I have ot find a totally different way to solve this problem.

I will try to put the Flash Component outside the DataTable, so that it is loaded only once. And then I'll use the ExternalInterface Methods of Flash to change the contents of the Flash Component.

Jürgen
Jun 27 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

5
1700
by: Colin Walls | last post by:
I have been asked to produce a web catalogue of services and associated options, this eventually will be used for ordering the services. My initial thought was to use a set of cascading drop...
72
4124
by: Paminu | last post by:
In math this expression: (a < b) && (b < c) would be described as: a < b < c But why is it that in C these two expressions evaluate to something different for the same values of a, b and...
3
5878
by: petermichaux | last post by:
Hi, I am trying to put together the last major pieces of my project's puzzle. This is more website/client-side architecture than JavaScript syntax but I hope this is a good place to ask. I'm a...
3
1590
by: bizt | last post by:
Hi, I have just started learning AJAX and need to learn a method where I can do the same to what AJAX does for HTML to Flash. Can this be done? Is there maybe a better way of allowing Flash to...
1
1073
by: sagittario | last post by:
Hi all , i am really hoping some1 could help me with this.. i have attached a flash swf as the header inside my ajax code. this flash swf contains the buttons inside it. so i need an action...
2
4240
by: Nathan Sokalski | last post by:
I am moving my website from my machine to my webhost, and need some help with what extra files I need to include due to the fact that I used AJAX in my site. Everything on the site is obviously...
0
7165
by: Tarik Monem | last post by:
I have been working on an all AJAX/DOM web site which is set to go live today and I thought I'd share my discoveries with all of you whom have helped me when I have encountered different issues along...
1
1598
by: nicky77 | last post by:
Hi, i'm completely new to AJAX - but i'd like to get started with it. I'm starting development work on a small website which will have a flash menu. I'd like to emulate a frame-based layout by...
0
7278
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6991
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7458
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
380
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.