#1 (permalink)  
Old 05-27-2007, 12:07 PM
Registered User
 
Join Date: May 2007
Posts: 6
Question Linking HTML to Flash

I know this should be easy... and I can't understand what in my code is wrong.

I have an HTML page that I want to link to a pop-up HTML window that has flash. I have the link in HTML as "javascript:;" then in the behaviors I have "on click" "open browser window" with the obvious dimensions etc inputted.

I tried this exact same thing with the HTML linking to a HTML pop-up (with no flash) and it all worked ok... but as soon as I inserted the flash into the pop-up it no longer works.

What am I doing wrong? Any help would be greatly appreciated.
Take care!!
Stece
Reply With Quote

  #2 (permalink)  
Old 05-27-2007, 04:22 PM
Leprakawn's Avatar
Moderator
 
Join Date: Jan 2004
Location: Outside, and playing with your invisible friends.
Posts: 1,130
Send a message via AIM to Leprakawn Send a message via Yahoo to Leprakawn
Sounds like your Flash code might be messed up. By not working, are you referring to the pop-up not working, or do you mean the content within the pop-up? BTW, it might be a good idea to either show us your code or give us a link to see it in action.
__________________
Like my spiffy, unique signature?
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
Code:
         ...,,.,.,.
        /          \
__oooo__[///]--[\\\]__oooo__
Reply With Quote
  #3 (permalink)  
Old 05-29-2007, 12:20 PM
Registered User
 
Join Date: May 2007
Posts: 6
Thanks for your reply.

Here is the code from the HTML cell where the user would click the link that takes them to the pop-up HTML window with the flash file.

<td align="left" valign="top" id="caption_darkgreen">explanation text goes here.<br />
<ahref="javascript:;" target="_blank" onclick="MM_openBrWindow('steve_mcleod/file_name.html','maasai','width=700,height=415')"> VIEW GALLERY</a></td>

Below is the code copied direct from the HTML pop-up window.

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style></head>

<body>
<table width="100" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<th align="center" valign="top" scope="col"><object width="700" height="415">
<param name="movie" value="flash/flash/maasai.swf">
<embed src="flash/maasai.swf" width="700" height="415">
</embed>
</object></th>
</tr>
</table>
</body>
</html>

-------------------------------------------

Is there anything I have done wrong above? Thanks again for your help...
Take care,
Steve
Reply With Quote
  #4 (permalink)  
Old 05-29-2007, 03:35 PM
Leprakawn's Avatar
Moderator
 
Join Date: Jan 2004
Location: Outside, and playing with your invisible friends.
Posts: 1,130
Send a message via AIM to Leprakawn Send a message via Yahoo to Leprakawn
Arrow

Try this instead
HTML Code:
<a href="javascript:windowHandle=window.open('*LOCATION/FILE.HTM*','*WINDOW NAME*','top=0,left=0,width=700,height=415,scrollbars=yes,resizable=yes');windowHandle.focus()">
It looks to me that you have two separate instances attempting to create the new window, and that would be my guess as to what is causing the issue. BTW, remove the astericks, too.
__________________
Like my spiffy, unique signature?
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
Code:
         ...,,.,.,.
        /          \
__oooo__[///]--[\\\]__oooo__

Last edited by Leprakawn; 05-29-2007 at 03:41 PM.
Reply With Quote
  #5 (permalink)  
Old 05-29-2007, 04:03 PM
curtiss's Avatar
Moderator
 
Join Date: May 2003
Posts: 1,445
Actually, in order to keep everything valid and allow your users who have disabled javascript to enjoy the presentation, you should form your link like:
Code:
<a href="steve_mcleod/file_name.html" target="maasai" onclick="MM_openBrWindow('steve_mcleod/file_name.html','maasai','width=700,height=415') return false">
Now, onto your question: You say that, if you take out the object code from the pop-up window, it works fine? In that case, it means that there is most likely a problem with the Flash itself. Are you able to load the file with the Flash presentation by itself in a normal browser window? In other words, if you direct your browser straight to steve_mcleod/file_name.html, does it load up properly?
__________________
I hate Internet Explorer! Anyone with me?
Reply With Quote
  #6 (permalink)  
Old 05-29-2007, 05:04 PM
Registered User
 
Join Date: May 2007
Posts: 6
Thanks Leprakawn & Curtis,
Curtis, in regards to your question...

I have trialed a couple of different browsers since I first posted the topic and it seems as thought IE is the problem. For example, with the exact same code I had originally I can open the pop-up that contains the flash element in Forefox but not IE.

Then again, the pop-up opens in IE if no flash is included in the window.

In addition, if it is a normal link, (linked to the HTML page with the same flash file) it doesnt seem to be working in IE. I'm not sure if this would be a problem with the HTML? The reason being is that I have included flash using a simle linking to a HTML page before and it all worked fine.

Is there any way that I can get around this problem and make it IE compatible?

Thanks
Steve

Last edited by stevegm; 05-29-2007 at 05:15 PM. Reason: Addition
Reply With Quote
  #7 (permalink)  
Old 05-29-2007, 07:00 PM
Leprakawn's Avatar
Moderator
 
Join Date: Jan 2004
Location: Outside, and playing with your invisible friends.
Posts: 1,130
Send a message via AIM to Leprakawn Send a message via Yahoo to Leprakawn
Thumbs up

Sure! Sue Microcrap for the inconsistency and the labour you are dealing with to resolve this issue! I am absolutely sure Bill Gates will completely understand your strenuous efforts and reward you with at least several thousand dollars.
__________________
Like my spiffy, unique signature?
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
Code:
         ...,,.,.,.
        /          \
__oooo__[///]--[\\\]__oooo__

Last edited by Leprakawn; 05-29-2007 at 07:03 PM.
Reply With Quote
  #8 (permalink)  
Old 05-29-2007, 07:09 PM
Registered User
 
Join Date: May 2007
Posts: 6
That could be true...
Reply With Quote
  #9 (permalink)  
Old 05-30-2007, 08:09 AM
curtiss's Avatar
Moderator
 
Join Date: May 2003
Posts: 1,445
OK. So we have narrowed down your problems to the following (please correct me if I am wrong on any of these, as those corrections will help me diagnose the problem further):
  1. Everything works the way it should in Firefox
  2. The pop-up window opens and loads in IE when there is no Flash embedded in the pop-up page
  3. The pop-up page does not load at all in IE, even when your browser is sent directly to that address, if the Flash is embedded

It sounds to me as though there is an issue with either your particular IE browser and the Flash application you have embedded.

Try the following to help diagnose the problem further:
  1. Find another Flash application, and embed it in place of the one you have developed. See if that makes any difference
  2. Tell us what version of Internet Explorer you are using
  3. Visit Macro-dobe's Web site, and verify that you have the latest version of Flash installed and operating properly in your IE browser
  4. Make a test page and upload it to a public Web server somewhere, so we can try to test your problem
__________________
I hate Internet Explorer! Anyone with me?
Reply With Quote
  #10 (permalink)  
Old 05-30-2007, 12:45 PM
Registered User
 
Join Date: May 2007
Posts: 6
Hi Curtis,
Thanks for your reply.

This is really crazy... I stripped down everything, basically just making a test page with a link to the pop-up window. The index page and pop-up page I placed in the parent folder and the flash file in a secondary folder.

The stupid thing is, it worked. I just don't understand why because I quite honestly used exactly the same proceedures as I had done previously, the only difference being the file structure.

Good idea, I will make sure I have the latest flash player and IE... after testing these things out I will get back to you by the end of the day to let you know how things went.

Thanks again Curtis, take care!
Steve
Reply With Quote
  #11 (permalink)  
Old 06-01-2007, 05:21 PM
Registered User
 
Join Date: May 2007
Posts: 6
Thumbs up

Although I had a few minor scipting issues, everything worked in IE once I had uploaded it on the server.
Reply With Quote
  #12 (permalink)  
Old 06-03-2007, 04:33 PM
curtiss's Avatar
Moderator
 
Join Date: May 2003
Posts: 1,445
I'm really glad you got it working. Strange problem.
__________________
I hate Internet Explorer! Anyone with me?
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Flash loads html, html (into flash) links to another html inside flash, or to a popup kenny_gr Graphics and Flash 1 10-16-2007 09:32 AM
CoffeeCup HTML Editor,Direct FTP,Website Font and others. marketraise2007 Graphics and Flash 0 05-25-2007 05:52 AM
html appear after flash movie also background change colour bobsworld Graphics and Flash 1 03-01-2007 11:00 AM
html web page with power point slide or flash zillah Graphics and Flash 6 08-24-2006 04:16 AM
linking html page to flash target mikemr2 Graphics and Flash 1 04-22-2005 06:13 PM


All times are GMT -5. The time now is 07:46 AM.

 
Bitrix
Clicky Web Analytics
CloudContacts
Maxtango


Subscribe to our feed | add to myYahoo!

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
© 1997-2007 HTMLCenter