ExternalInterface.call Causes JAVASCRIPT ERROR??
my AS3.0 is this:
btn_mc.addEventListener(MouseEvent.CLICK,journey_popup);
function journey_popup(e) {
ExternalInterface.call("journey_wow_popup");
my javascript is this:
function journey_wow_popup () {
window.open('journey_pricing.php','_blank',
'height=200,width=350,status=yes,toolbar=no,menubar=no,location=no');
My flash OBJET ID and movie name is "journey_wow"
I get this javascript error when I click btn:
Error: "journey_wow" is undefined
I tried this on 4 computers, I never get the the error in FF,
I got the error on 2/4 of the computers in IE and didnt get the
Error in the other 2.
So sometimes it works in IE and sometimes it doesn't. Also my
flash element is not in a form.
you can view it here:
http://www.sussexjewelers.com/product.php?pid=1390
(its the big red box with yellow star)
Please help!!
Thanks!
Below is my embeding script, thanks.
<script language="javascript">AC_FL_RunContent =
0;</script>
<script src="AC_RunActiveContent.js"
language="javascript"></script>
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent(
'codebase', '
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
'width', '626',
'height', '115',
'src', 'journey_wow',
'quality', 'high',
'FlashVars',
'journey_price=<?=round($prod_field['prod_price'][0])?>',
'pluginspage', '
http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'transparent',
'devicefont', 'false',
'id', 'journey_wow',
'bgcolor', '#ffffff',
'name', 'journey_wow',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','always',
'movie', 'journey_wow',
'salign', ''
); //end AC code
</script>
Similar Messages
-
Internet Explorer MS04-038 patch causes javascript error in EP5 SP4
The problem in a nutshell that we are experiencing is that the portal Top Level Navigation returns a 'permission denied' javascript error. This is stemming from Microsoft's Internet Explorer Patch MS04-038 <i>(MS04-038 Cumulative Security Update for Internet Explorer
This update addresses 8 vulnerabilities in systems running Microsoft Internet Explorer [all supported versions], all of which can allow an attacker to take complete control of the system. Microsoft has rated this patch as CRITICAL).</i> We also can't get IE to recognize that the portal is a trusted site.
Any help would be appreciated!It's a known problem, and can cause symptoms besides the one you mention, as described in
SAP Note 785308. Solutions and work arounds will be documented in this note as soon as they
are available:
<http://service.sap.com/~sapidb/012006153200001521102004E.ITF>.
This Note applies to EP5 and EP6, as well as ITS, BSPs, and Visual Composer.
The latest advice in the Note is, "do not apply MS Security Hotfix KB834707". Information on
"MS04-038: Cumulative Security Update for Internet Explorer" available at:
<http://www.microsoft.com/technet/security/bulletin/MS04-038.mspx>).
Regards,
Sean -
Calling onInputProcessing javascript error
Hi,
My query is as follows: I want to call onInputProcessing on pressing of a link.
as follows.
<a href="mailto:<% loop at i_mail into wa_mail. %> <%= wa_mail%>,"
<% endloop. %>
onClick="onInputProcessing()">Send Email to selected </a>
But It give me a javascript error on clicking of the link.
Please help me on this.
Thanks
shilpaHi,
The exact same question has been answerered here:
Mailing in HTMLB using HTML a href syntax
Best regards,
Guillaume -
Semaphore call causes memory error
I have been using semaphores in my code to prevent simultaneous
hardware calls from different parts of my program. This code was originally
developed using Labview 8.0 and has been running properly for me for years.
I recently ported this code to a Labview 2009 environment
and have started to get out of memory errors when executing it. The code will run without problems for a
couple of days and then the error will occur. At this time the way to clear the
error seems to be totally closing Labview and restarting it (and sometimes a
machine reboot).
I am currently working around this problem by disabling the
semaphores in my code and making sure that the hardware calls are all done
serially.
The program is running on a Windows XP Platform.Hi Ccaplan,
Ben is 100% correct (of course). As he said, it is extremely difficult to diagnose code that spans 10 screens. Not only is it difficult for us to follow, but there are 10 screens worth of potential coding problems.
Another thing to consider is your LabVIEW version. Make sure you have 2009 sp1 by looking at the labview splash screen, or by going to Help>>About Labview...
For more info on 2009 sp1, look here: http://www.ni.com/support/lv2009_sp1.htm
I can say that I did a few searches through the system and I was unable to locate any semaphore-related memory issues (that have already been reported).
Good Luck,
D Smith -
Problem with AS3 "ExternalInterface.call" in InternetExplorer
Hi,
Explaining how the page is setup:
I have a HTML page with 2 different AS3 Flash movies.
The first flash movie is the main animation and sits in the
middle of the screen with a large background image set into the
body of the HTML.
The second flash movie stretches 100% width/height of the
screen dimensions and acts as a fade from black>to invisible.
What I'm trying to do:
Once the second Flash animation has faded from black to
invisible it calls a JavaScript function in the HTML page to hide
the div element the second flash movie is embed into (this is
because the first flash movie will display a set of input boxes
which the user needs to be able to type into - which they wont be
able to click on if there is another flash movie overlaying the
entire first movie).
My intial solution:
In the second Flash movie is the following code:
stop();
// this will load the API necessary to communicate with
external entities
import flash.external.ExternalInterface;
// call the JavaScript function
ExternalInterface.call('myJavaScriptFunction');
...and this works fine in Mozilla Firefox/Safari. The
actionscript successfully calls the JavaScript function in the HTML
page and that JavaScript function simply (at this stage displays an
alert() message to show that it has been successfully called).
Problem with IE:
But, the moment I try this in Internet Explorer I don't get a
alert() message but a JavaScript error message that says:
Code: Select all
Line: 1
Char: 106
Error: 'null' is null or not an object
Code: 0
As you can expect I'm totally confused as to what the problem
could be.
This is really urgent as it's a live project that needs to
get completed immediately, so any help you may have would be
greatly appreciated!
Kind regards,
Mark.My guess is that its to do with your embedding code. Check a)
you have an id attribute assigned to the resulting object tag from
whatever embedding method you use and b) for good measure make sure
its unique in your html page.
Javascript needs to have a valid reference to return the
value from the javascript function back to flash. In my experience
IE is more sensitive to issues here.
If you get stuck post a test page somewhere.
Tools to use to help with javascript debugging and view the
html embed results (e.g. from swfobject or activecontent.js):
In firefox : Firebug
In IE: IE Developer Toolbar , Companion JS, and DebugBar are
all helpful and , combined, get close to Firebug. -
Problem Description:
korean character crash when using ExternalInterface.call(funcName, args)
funcName : alpha-numeric
args : include korean characters
Steps to Reproduce:
<flex source>
private function handleRequest(val):void {
ExternalInterface.call("processRequest", "가나다라");
<javascript source>
function processRequest(param) {
alert(param); //does not display korean characters
Actual Result:
媛€?섎떎??
Expected Result:
가나다라
Any Workarounds:
Nothing !!
OS : Windows7 Pro 64bit(korean)
Flex Builder : 3.0
Flash Player : 11.8.800.168 ActiveX
Browser : IE10
WAS : WebLogic 8.1, 12g, Tomcat 5,6,7
Chrome : 29.0.1547.66 m <== Good
FireFox : 23.0.1 <== GoodSame problem here! With the exact same version.
Problems on IE.
Chrome and FF OK -
ExternalInterface Call Javascript Array to AS2 throwing undefined error
I need to pass various (tracking) IDs to a .swf. the IDs are in an array like this =
<script type="text/javascript">
function getImpID() {
var medID={impID:'12345',pvID:'677890',exID:'654332'};
return medID;
function thisMovie(banner) {
if (navigator.appName.indexOf("Microsoft") != -1) {
return window[banner]
else {
return document[banner]
window.onload=getImpID;
</script>
Right now the AS2 I have is:
import flash.external.*;
System.security.allowDomain(sourceDomain)
var allID:String = ExternalInterface.call.apply("getImpID");
function getIDs(){
var impID:Number;
var pvID:Number;
var exID:Number;
var id_arr:Array = allID.split(",");
_root.id_test.text = impID;
getIDs();
Basically what I need is to split the three ID's from the javascript so that I can append them with various URL clickTags in the AS. Main issue I have is the 'undefined' error, so I'm going out on a limb here that the AS2 I have doesn't do anything right now of value. Biggest head scratcher for me is, if I have the IDs in an array in the javascript (medID) how to get them not only properly into Flash but to separate them into their separate IDs.
Any suggestions would be greatly appreciated.
Thanks!Forgot to reply, your guidance helped in solving the riddle =
actionscript:
function idTag(){
getID = Object(ExternalInterface.call("getImpID"));
getID.toString();
//_root.id_test.text = getID;
idTag();
javascript
<script type="text/javascript">
function getImpID() {
var getID=['impID=8910424942498409873&pvID=8910423767061585831'];
thisMovie("banner").getID;
return getID;
function thisMovie(movieName) {
if (navigator.appName.indexOf("Microsoft") != -1) {
return window[movieName]
else {
return document[movieName]
</script>
worked like a charm! -
Bug? calling javascript click() on a hidden button causes js error on page
I call the .click() method on a hidden button to cause the page to refresh. This works OK, but when the page comes back up, it has a javascript error on it. It turns out the error is from some javascript that is trying to set the focus on the hidden button that was clicked, which causes an error in IE (This doesn't seem to bother Firefox) .
While I imagine that there are workarounds, why should the underlying faces architecture be setting the focus to a hidden button?
It's easy to duplicate:
Create new page. Add two buttons. For the first, make it invisible (uncheck visible in properties), then cause it to submit a virtual form.
For the second, add this to the onclick:
document.getElementById("form1:button1").click();return false;
Bring up the page, click on the visible button. The page will refresh, and you'll have a nice js error.
BTW: Obviously, I don't want to click one button from another. What I want is a way to cause an action to happen from javascript. I can't imagine it would work to simply submit a form from javascript, so I use this method. It works fine except for the error. Is there a better way to do this?which causes an error in IE (This doesn't seem to bother Firefox) .Vaious browsers behave differently at times when executing javascript code. Many instances of this can be found on the net. This is a browser specific problem.So it's ok to set the focus to a hidden button because firefox is more relaxed about this obvious error than explorer is? When would anyone really want a hidden button to gain focus? What do I tell my users--don't use explorer, because it doesn't like it when faces sets the focus to a hidden button? Ignore the error message you get? What?
BTW: Obviously, I don't want to click one button from another. >>What I want is a way to cause an action to happen from javascript.Please describe in detail what action you would like to perform from javascript. It is not clear as to what the use case is.
I don't really see how the use case matters. I gave a very easy example how to duplicate this problem. The reason that I want to do this is that there are many places to enter javascript code that don't allow for an action to be triggered. I have many instances of this. For example, I'd like a mouseover on an edit field to cause an action. I can capture this in javascript, but I can't cause any server side processing. To get around this limitation, I call the hidden button's .click method, which does cause a server side event.
Here's a simpler, more direct incarnation of this error that doesn't involve javascript.
Create a new page. Put an element on it, like an edit box. Put a button on the page. For its action, put:
public String button1_action() {
getButton1().setVisible(false);
return null;
Pressing this button will cause a page refresh, and then a javascript error.
Use Case: After the user presses the button, they shouldn't be allowed to press or see it again. -
Javascript error calling a bi 7.0 webapplication from a bsp application
Hi everyone,
This is the scenario we're facing a javascript error :
Enterprise Portal is calling a custom bsp application ( via an iview in the enterprise portal ) in the bi system with a parameter "template_id" and a value, which is the technical name of a bi web application.
The bsp application is evaluating the parameter by some custom code and creating a html page with a redirect or a maintenance message to the bi web application passed with the parameter "template_id".
The html link to the bi web application is created according to this documentation :
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/46/03d4ac801467e6e10000000a1553f6/content.htm
Purpose of the bsp application :
in the bi system there is a database table to maintain a flag for each webtemplate and infocube, which should not be called via the enterprise portal for a certain time ( some kind of maintenance switch ). The bsp application then decides to show a maintenance page for the called webtemplate or to send the redirect page to the client.
The process described above is :
working with the bi 7.01 sp7 in the bi ( enterprise portal sp22 ) in the productive system.
working in the Q&A system bi 7.01 sp8 with bi 3.5 web applications.
not working in the Q&A system bi 7.01 sp8 with bi 7.0 web applications.
The javascript error calling bi 7.0 web applications is :
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET4.0C; .NET4.0E)
Timestamp: Mon, 6 Jun 2011 09:11:04 UTC
Message: Object doesn't support this property or method
Line: 96
Char: 11
Code: 0
URI: https://mlptb1.mlp-ag.com:58001/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE=B_221_002_KUNDEN_POSTEN_AD
We've opened a message. Support center is saying that this method isn't supported by sap. We should ommit the bsp application and the used functionality.
Is there any way to find out, what is causing this object is missing ?
Is there another way than a bsp application to use this custom maintenance function in the described system setup ?
system components :
production system
SAP NetWeaver 7.0 Portal SP22
SAP BI 7.01 SP 7
q&a system
SAP NetWeaver 7.0 Portal SP22
SAP BI 7.01 SP 8
Kind regards.
DirkHello everyone,
we did some further analysis on this problem und we think we found the problem.
The error occurs while trying to execute the standard url for web templates inside a Enterprise Portal Frame, for example
https://XXX:XXX/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE=XXX
While executing the URL a HTML-Page with some embeded Javascript-code is sent back to the browser.
In this Javascrip-Code, the method-call "dsmObj.registerAll" leads to a script error in Internet Explorer.
dsmObj.registerAll("pcd:portal_content/com.sap.pct/platform_add_ons/com.sap.ip.bi/iViews/com.sap.ip.bi.bex", "GUSID:6FC9SuhGDPIMMLwOdeHEIg--_7WQud13yeLJDz2kYoQFSg--", "1307605928212");
In SP7, the method "dsmObj.registerFullKey" is called instead of "dsmObj.registerAll". This has changed in SP8.
dsmObj.registerFullKey("GUSID:iBPvyska9*xE_JBalkQG2g--YyKv2C3NToP0I79Mw7EO8w--", "1307606479963");
The object "dsmObj" seems to reference the parent frame of the Enterprise Portal.
Has anyone seen this before? Any ideas how we can fix this?
Kind regards,
Matthias
Edited by: Matthias Keller on Jun 9, 2011 2:07 PM -
JavaScript errors in IE6 during ExternalInterface.addCallback
I'm having a terrible time getting the Bridge to work in IE6.
(A working Firefox prototype took all of 20 minutes.)
I'm using UFO (
http://www.bobbyvandersluis.com/ufo/)
to load the .swf file. However, when it gets to the
ExternalInterface.addCallback in FABridge.as, IE throws some opaque
JavaScript errors: Line 1, Char 22 Syntax Error. If I comment out
all of the ExternalInterface.addCallback calls, IE gets past this,
however, nothing works beyond that (not surprisingly). Am I missing
something obvious with regard to IE?
Any help would be much appreciated.Looks like my above code was not setting the object/@id
correctly on the Flash object. Once I added id: 'chart' to
UFO.create's initialization parameter, everything went
swimmingly. -
Javascript error when using ExternalInterface.addCallback with crossdomain swf file
how can i use ExternalInterface.addCallback when using
javascript access from Server A (html) to Server B (swf) ? coz it
showing error?
Server A
192.168.0.10/XXX/example.html
===========
<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
id="MGSInsurances1" width="960" height="600"
codebase="
http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
<param name="movie" value="
http://192.168.0.22/MGS/flex/MGSInsurances1.swf"
/>
<param name="quality" value="high" />
<param name="bgcolor" value="#869ca7" />
<param name="allowScriptAccess" value="always" />
<embed src="
http://192.168.0.22/MGS/flex/MGSInsurances1.swf"
quality="high" bgcolor="#869ca7"
width="960" height="600" name="MGSInsurances1"
align="middle"
play="true"
loop="false"
quality="high"
allowScriptAccess="always"
type="application/x-shockwave-flash"
pluginspage="
http://www.adobe.com/go/getflashplayer">
</embed>
</object>
<script language="javascript">
window.MGSInsurances1 =
document.getElementById('MGSInsurances1');
</script>
Server B
192.168.0.22/MGS/flex/MGSInsurances1.swf
==================
Security.allowDomain("*");
if(ExternalInterface.available)
ExternalInterface.addCallback("onchange",onchange);
ExternalInterface.addCallback("datachange",datachange);
but javascript Error is showing "Unknown name", how can i fix
it? urgent! somebody know this?i solved it! because i havent restart my server again! No
Error again ! sorry for bothering everybody. -
Javascript Error when calling EPCM.raiseEvent
Hi all!
I'm having a Javascript error when calling EPCM.raiseEvent function. The error is :
'The object does not accept the method or property'
Maybe the traslation is not perfect (I'm using spanish for my browser). Here is my call:
EPCM.raiseEvent('myPar','myEvent','myParam');
What can be wrong?
Thanks in advance, and sorry for my terrible english.Hi!
This error is very strange... I accidentally changed the event name at consumer, but not at producer.... and the error didn't appear... Obviuslly it did'nt work, but it's so strange that if the event is not cought, there is no error (but nothing happens)
I also noticed that doesn't matter which event I raise (I have two of them), the error is thrown at the same line, and they have totally different caller and receiver functions....
Thanks In advance.
Message was edited by:
Eneko Rodriguez -
Checking html:errors collection for its size before calling a javascript
Hi all
The problem that i am facing is that i to check html:errors collection whether it contains any validation messages .Than based on this result i have to call a javascript function from inside a javascript function.This is all happening in the jsp page.I dont know how to do that.Any help will be appreciated.Hi all
The problem that i am facing is that i to check html:errors collection whether it contains any validation messages .Than based on this result i have to call a javascript function from inside a javascript function.This is all happening in the jsp page.I dont know how to do that.Any help will be appreciated. -
Javascript error caused by TabNavigator with Flash 9.0.60.235?
Hi all,
I recently upgraded from Flex 3 beta 1 to beta 2. As part of
hte install I upgraded from Flash 9.0.47.0 to 9.0.60.235 (to get
the debug popup to stop from appearing). Since this install,
anytime I run a Flex app containing a TabNavigator, it gives me a
Javascript error upon
closing the browser:
Line: 1
Char: 70
Error: Expected ')'
Code: 0
This occurs in IE 6. It happens even in my production
applications (which are still Flex 3 beta 1). So it seems to be a
Flash 9.0.60.235 problem. Has anyone else seen this yet? I can't
imagine why having a TabNavigator could cause some random
Javascript problem...
Any help or thoughts is greatly appreciated!
Jasondolinja,
Does it do this with all projects, or just a few? What about
if you create an empty project file with just a TabNavigator, do
you still see the JavaScript error?
Peter -
JavaScript errors at function calls to "top" (e.g. team room or wpc editor)
Hi all,
formerly I run into problems when I tried to embed a team room into the content area of the NW portal.
Now I have a similar problem with the WPC page editor.
In both cases I get JavaScript errors, because the navigation calls a "top" element, which seems to be overwritten by the portal frameworkpage.
Is there any possibility to isolate these elements in a way that allows to embed them into the content area of the portal without these errors?
Or is it only possible to open them in a new window?
Regards, JosefHi priya,
Not sure: check syntax in your Update Roules, also at level of start routine.
Ciao.
Riccardo.
Maybe you are looking for
-
Differences between LSMW and BDC
Hi All Please can you give me the few points about the differences between LSMW and BDC? Awaiting for your Responce Praveen
-
af:fileDownloadActionListener screws up bounded task flow?
Hi, I have a strange problem. I have a bounded task flow that runs in a popup. Everything works just fine. (I followed the [Embedding Regions inside PopUp Windows|http://www.oracle.com/technology/products/adf/patterns/11.1.1.1.0/popupregionpattern.pd
-
The Adobe Forms was created with Disable Fields!
Hi All, I am new in Adode Interactive Forms ABAP. I am trying to implement a simple scenario using Web Services published by RFC on ABAP side and simple form with one field MATNR to bring a Description MARKT, and button to call the Web Services. I
-
Automatic Email notification of ST03N data
Hi everyone, Currently, I provide <b>dialog steps data from ST03N</b> to my client on a daily basis using a spreadsheet that I send via email. I want to somehow <u>automate the data extraction process and the email notification sent to my client</u>
-
Hi Experts, I have the data flow like View --Generic datasource. I added 2 new fields to view. Now my question is how can we unchek the hidefield check box. Thanks in Advance.