[jQuery] Flex Ajax Bridge & jQuery...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16608" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=938583220-02042008><FONT face=Arial size=2>Has anyone on this
list done any work with the FABridge code provided by Adobe for use in working
with Flex?</FONT></SPAN></DIV>
<DIV><SPAN class=938583220-02042008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=938583220-02042008><FONT face=Arial size=2>I've got it running
great when it's in a plain script block inside the body tag. But the second I
put it inside a $(document).ready call, it dies (with no errors). I've tried
putting the call in different locations, I've tried loading in the SWF
explicitly, but nothing works. I've provided a snip of the two codes below. Any
help would be greatly appreciated!!</FONT></SPAN></DIV>
<DIV><SPAN class=938583220-02042008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=938583220-02042008><FONT face=Arial size=2>THIS
WORKS</FONT></SPAN></DIV>
<DIV><SPAN class=938583220-02042008><FONT face=Arial
size=2>------------------------</FONT></SPAN></DIV>
<DIV><SPAN class=938583220-02042008><FONT face=Arial
size=2>[snip]</FONT></SPAN></DIV>
<DIV><SPAN class=938583220-02042008><FONT face=Arial
size=2><body></FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2> <script type="text/javascript"
src="lib/FABridge.js"></script><BR> <script
type="text/javascript" src="lib/FDMSLib.js"></script></FONT></DIV>
<DIV><SPAN class=938583220-02042008><FONT face=Arial size=2> <script
type="text/javascript"><BR> <!--<BR> FDMSLibrary.load("FDMSBridge.swf",
initApp);<BR> function initApp()
{<BR> alert('init');<BR> }<BR> //--><BR> </script></FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=938583220-02042008><FONT face=Arial
size=2></body></FONT></SPAN></DIV>
<DIV><SPAN class=938583220-02042008><SPAN class=938583220-02042008><FONT
face=Arial size=2>[/snip]</FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=938583220-02042008><SPAN class=938583220-02042008><FONT
face=Arial size=2></FONT></SPAN></SPAN> </DIV>
<DIV><SPAN class=938583220-02042008><SPAN class=938583220-02042008><FONT
face=Arial size=2>THIS DOESN'T</FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=938583220-02042008><SPAN class=938583220-02042008><FONT
face=Arial size=2>-------------------------------</FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=938583220-02042008><SPAN class=938583220-02042008><FONT
face=Arial size=2>[snip]</FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=938583220-02042008><SPAN class=938583220-02042008><FONT
face=Arial size=2><head></FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=938583220-02042008><SPAN class=938583220-02042008><FONT
face=Arial size=2> <script type="text/javascript"
src="lib/FABridge.js"></script><BR> <script
type="text/javascript"
src="lib/FDMSLib.js"></script><BR> <script
type="text/javascript"><BR> <!--<BR> $(document).ready(function(){</FONT></SPAN></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=938583220-02042008><SPAN class=938583220-02042008><FONT
face=Arial size=2> FDMSLibrary.load("FDMSBridge.swf",
initApp);</FONT></SPAN></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=938583220-02042008><SPAN class=938583220-02042008><FONT
face=Arial size=2> function initApp()
{<BR> alert('init');<BR> }</FONT></SPAN></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=938583220-02042008><SPAN class=938583220-02042008><FONT
face=Arial
size=2> });<BR> //--><BR> </script></FONT></SPAN></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=938583220-02042008><SPAN class=938583220-02042008><FONT
face=Arial size=2></head></FONT></SPAN></SPAN></DIV>
<DIV><FONT face=Arial size=2><SPAN class=938583220-02042008><SPAN
class=938583220-02042008><FONT face=Arial
size=2>[/snip]</FONT></SPAN></SPAN></FONT></DIV>
<DIV align=left><SPAN style="FONT-SIZE: 14px"><B><FONT face="Century Gothic">
<DIV align=left><SPAN class=159130414-05012007><FONT face=Arial size=2><SPAN
class=159130414-05012007><FONT face=Arial
size=2></FONT></SPAN></FONT></SPAN> </DIV>
<DIV align=left><SPAN class=159130414-05012007><FONT face=Arial size=2><SPAN
class=159130414-05012007><FONT face=Arial
size=2></FONT></SPAN></FONT></SPAN> </DIV>
<DIV align=left><SPAN class=159130414-05012007><FONT face=Arial size=2><SPAN
class=159130414-05012007><FONT face=Arial
size=2></FONT></SPAN></FONT></SPAN> </DIV>
<DIV align=left><SPAN class=159130414-05012007><FONT face=Arial size=2><SPAN
class=159130414-05012007><FONT face=Arial
size=2>____________________________________</FONT></SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=159130414-05012007><FONT face=Arial size=2><SPAN
class=159130414-05012007></SPAN></FONT></SPAN> </DIV>Andy
Matthews<BR></FONT></B></SPAN><SPAN style="FONT-SIZE: 11px"><FONT
face="Century Gothic"><SPAN
style="FONT-SIZE: 8.5pt; FONT-FAMILY: 'Century Gothic'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA; mso-no-proof: yes">Senior
ColdFusion Developer</SPAN><BR></FONT></SPAN><SPAN style="FONT-SIZE: 11px"><FONT
face="Century Gothic"><FONT color=#808080><SPAN
style="FONT-SIZE: 11px"></SPAN><IMG alt="" hspace=0
src="cid:938583220@02042008-22A0" align=baseline border=0></FONT><BR>Office:
615.627.9747<BR>Fax: 615.467.6249</FONT></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 11px"><FONT face="Century Gothic"><A
href="http://www.dealerskins.com/">www.dealerskins.com</A></FONT></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 11px"></SPAN> </DIV>
<DIV><SPAN style="FONT-SIZE: 11px"><SPAN style="FONT-SIZE: 12px"><FONT
face="Century Gothic">Total customer satisfaction is my number 1 priority! If
you are not completely satisfied with the service I have provided, please let me
know right away so I can correct the problem, or notify my manager <FONT
color=#fe6500>Aaron West</FONT> at <FONT
color=#0000ff><U>awest@dealerskins.com</U></FONT>.</FONT></SPAN></SPAN></DIV>
<DIV> </DIV></BODY></HTML>