[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

need <script> tag to work with Flash

Posted on 2011-10-21
17
Medium Priority
?
270 Views
Last Modified: 2012-05-12

I need to put a widget on my site using the script tag. How can I do this so that it works in a flash site?

<script src="https://www.crossloop.com/widgetjs/pro_contact_widget.js?accountid=1184493" type="text/javascript" charset="utf-8"></script>



Any help is appreciated!
0
Comment
Question by:DantechIT
  • 9
  • 8
17 Comments
 
LVL 29

Expert Comment

by:dgofman
ID: 37010287
You can not. You can add your widget above or bellow but not inside Flash Player.
Another solution you can create an IFRAME and move on top a FlashPlayer
0
 

Author Comment

by:DantechIT
ID: 37010298

http://www.dantechmsp.com/dantechitnew2/site_flash/

If you go to Get Help tab I need it on that page. Is it possible to do it there?

How do I do an Iframe?
0
 

Author Comment

by:DantechIT
ID: 37010312
just tried

<iframe  src="https://www.crossloop.com/widgetjs/pro_contact_widget.js?accountid=1183293" type="text/javascript" charset="utf-8"></iframe>

but it didn't change anything.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 29

Expert Comment

by:dgofman
ID: 37010320
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<BODY>
<div style="position:absolute; left:250; top:100">
	<iframe width="560" height="315" src="http://www.yahoo.com" frameborder="0"></iframe>
</div>
<div>
	<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="pluginurl" width="100%" height="100%"
			codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
			<param name="movie" value="http://www.dantechmsp.com/dantechitnew2/site_flash/flash/main_v8.swf" />
			<param name="quality" value="high" />
			<param name="allowScriptAccess" value="sameDomain" />
			<param name="base" value="http://www.dantechmsp.com/dantechitnew2/site_flash/"/>
			<embed src="http://www.dantechmsp.com/dantechitnew2/site_flash/flash/main_v8.swf" quality="high"
				width="100%" height="100%" name="pluginurl" align="middle"
				play="true"
				loop="false"
				quality="high"
				allowScriptAccess="sameDomain"
				type="application/x-shockwave-flash"
				base="http://www.dantechmsp.com/dantechitnew2/site_flash/"
				pluginspage="http://www.adobe.com/go/getflashplayer">
			</embed>
	</object>
</div>
</BODY>
</HTML>

Open in new window

0
 
LVL 29

Expert Comment

by:dgofman
ID: 37010321
Or always on top

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<BODY>
<div>
	<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="pluginurl" width="100%" height="100%"
			codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
			<param name="movie" value="http://www.dantechmsp.com/dantechitnew2/site_flash/flash/main_v8.swf" />
			<param name="quality" value="high" />
			<param name="allowScriptAccess" value="sameDomain" />
			<param name="base" value="http://www.dantechmsp.com/dantechitnew2/site_flash/"/>
			<embed src="http://www.dantechmsp.com/dantechitnew2/site_flash/flash/main_v8.swf" quality="high"
				width="100%" height="100%" name="pluginurl" align="middle"
				play="true"
				loop="false"
				quality="high"
				allowScriptAccess="sameDomain"
				type="application/x-shockwave-flash"
				base="http://www.dantechmsp.com/dantechitnew2/site_flash/"
				pluginspage="http://www.adobe.com/go/getflashplayer">
			</embed>
	</object>
</div>
<div style="position:absolute; left:250; top:100">
	<iframe width="560" height="315" src="http://www.yahoo.com" frameborder="0"></iframe>
</div>
</BODY>
</HTML>

Open in new window

0
 

Author Comment

by:DantechIT
ID: 37010405
I can't get the Iframe to show the script. I substituted it for the yahoo link but it doesn't show up.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<BODY>
<div>
	<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="pluginurl" width="100%" height="100%"
			codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
			<param name="movie" value="http://www.dantechmsp.com/dantechitnew2/site_flash/flash/main_v8.swf" />
			<param name="quality" value="high" />
			<param name="allowScriptAccess" value="sameDomain" />
			<param name="base" value="http://www.dantechmsp.com/dantechitnew2/site_flash/"/>
			<embed src="http://www.dantechmsp.com/dantechitnew2/site_flash/flash/main_v8.swf" quality="high"
				width="100%" height="100%" name="pluginurl" align="middle"
				play="true"
				loop="false"
				quality="high"
				allowScriptAccess="sameDomain"
				type="application/x-shockwave-flash"
				base="http://www.dantechmsp.com/dantechitnew2/site_flash/"
				pluginspage="http://www.adobe.com/go/getflashplayer">
			</embed>
	</object>
</div>
<div style="position:absolute; left:250; top:100">
	<iframe width="560" height="315" src="https://www.crossloop.com/widgetjs/pro_contact_widget.js?accountid=1184493" type="text/javascript" charset="utf-8" frameborder="0"></iframe>
</div>
</BODY>
</HTML>

Open in new window

0
 
LVL 29

Expert Comment

by:dgofman
ID: 37011388
Create ASP new page or PHP script (I don't know what are you using on the server) and add just three lines. In the future you will subtitute "accountid" value by dynamic variable

<HTML>
<SCRIPT LANGUAGE="JavaScript" src="https://www.crossloop.com/widgetjs/pro_contact_widget.js?accountid=1184493"></SCRIPT>
</HTML>


Now call this page from IFRAME  like

<iframe width="560" height="315" src="widget.html" frameborder="0"></iframe>
0
 
LVL 29

Expert Comment

by:dgofman
ID: 37011393
I will recommned to pass an accountid from the IFRAME

<iframe width="560" height="315" src="widget.php?accountid=1184493" frameborder="0"></iframe>
0
 

Author Comment

by:DantechIT
ID: 37013235
Thank you. I made both an asp page and a php page but neither work. It didn't show up and threw off the alignment on the flash menu


http://www.dantechmsp.com/dantechitnew2/site_flash/

Did I do something wrong?
0
 
LVL 29

Expert Comment

by:dgofman
ID: 37013346
In this case are you sure your JavaScript is working?

The page is blank what do you expect to see?

http://www.dantechmsp.com/dantechitnew2/site_flash/widget.php?accountid=1183293
0
 
LVL 29

Accepted Solution

by:
dgofman earned 2000 total points
ID: 37013368
So, use this URL in IFRAME src
0
 

Author Comment

by:DantechIT
ID: 37013385
Ok it shows up not but it goes away whenever I click on a link. I would like it to either stay visible he whole time or only when Get Helped is clicked.
0
 
LVL 29

Expert Comment

by:dgofman
ID: 37013390
Check answer
10/21/11 11:31 PM,
ID: 37010321
0
 

Author Comment

by:DantechIT
ID: 37013400
Awesome, thank you.
0
 

Author Comment

by:DantechIT
ID: 37013429
Hey any chance you know how to get rid of the scroll bar?
0
 

Author Comment

by:DantechIT
ID: 37013484
got it.


SCROLLING=NO
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question