E-Junkie Forum http://www.e-junkie.com/bb/ E-Junkie Forum RSS en-us Copyright 2012, 19.5 Degrees. All rights reserved. webmaster@e-junkie.com webmaster@e-junkie.com Mon, 3 May 2010 01:31:41 GMT Fri, 10 Feb 2012 16:34:36 GMT 681 E-JUNKIE 5 E-Junkie Forum http://www.e-junkie.com/bb/ http://www.e-junkie.com/ej/logo.gif 290 104 Post #6 http://www.e-junkie.com/bb/topic/1265/pg/0#post14224 http://www.e-junkie.com/bb/topic/1265/pg/0#post14224 Mon, 3 May 2010 01:31:41 GMT
javascript:EJEJC_lc('https://www.e-junkie.com/ecom/gb.php?c=cart&i=...&cl=...&ejc=2')

Note that entire line should be used as the link URL (not just the https://... portion that our forum software turns into an orange link :^). E.g., in HTML the equivalent link code would be:

<a href="javascript:EJEJC_lc('https://www.e-junkie.com/ecom/gb.php?c=cart&i=...&cl=...&ejc=2')">

Also make sure your Flash is embedded with the "wmode" parameter set to "transparent", however your particular embedding method supports that; some examples are given on our Flash help page here:
http://www.e-junkie.com/ej/help.flash-shopping-cart.htm

Finally, make sure you have at least this portion of our View Cart code placed somewhere in the HTML source of the Web page where your Flash is embedded:

<script language="javascript" type="text/javascript">
<!--
function EJEJC_lc(th) { return false; }
// -->
</script>
<script src='http://www.e-junkie.com/ecom/box.js' type='text/javascript'></script>]]>
E-junkie Discussions; E-junkieGuru
Post #5 http://www.e-junkie.com/bb/topic/1265/pg/0#post14224 http://www.e-junkie.com/bb/topic/1265/pg/0#post14224 Sat, 1 May 2010 11:10:04 GMT
buttonWeWantToAssignCodeTo.addEventListener(MouseEvent.MOUSE_UP, getTheCode);
function getTheCode(event:MouseEvent):void {
var jscommand:String = "window.open('https://www.e-junkie.com/ecom/gb.php?c=cart&i=1&cl=37&ejc=2','win','height=300,width=450,toolbar=no,scrollbars=yes');";
var url:URLRequest = new URLRequest("javascript:" + jscommand + " void(0);");
navigateToURL(url, "_self");
}


Still awaiting for a decent solution and decent help tutorial from ejunkie for actionscript 3.0.]]>
E-junkie Discussions; subuse
Post #4 http://www.e-junkie.com/bb/topic/1265/pg/0#post14224 http://www.e-junkie.com/bb/topic/1265/pg/0#post14224 Mon, 19 Apr 2010 01:00:30 GMT
javascript:EJEJC_lc('https://www.e-junkie.com/ecom/gb.php?c=cart&i=...&cl=...&ejc=2')

...where i= your product's item number (or leave off the i= parameter for a View Cart button) and cl= your E-junkie client ID. Basically, your Flash widgets should not be linking to a cart/item URL (https://...) directly; instead, they should use a bookmarklet-style URL (javascript:...) that invokes our cart script's JS function EJEJC_lc(), where the latter requests the cart/item URL in our overlay cart.]]>
E-junkie Discussions; E-junkieGuru
Post #3 http://www.e-junkie.com/bb/topic/1265/pg/0#post14224 http://www.e-junkie.com/bb/topic/1265/pg/0#post14224 Sun, 18 Apr 2010 09:29:14 GMT Your standard explanation of the actionscript 2.0 code doesn't work in 3.0
3.0 doesn't supports the getUrl function anymore.


3.0 needs an event listener and a function to be assigned to make a button work. In 3.0 we only have this standard option:

This opens a new "nameless" blanc tab-page (nothing happens):
buttonWeWantToAssignCodeTo.addEventListener(MouseEvent.MOUSE_UP, getTheCode);
function getTheCode(event:MouseEvent):void {
navigateToURL(new URLRequest("javascript:EJEJC_lc('https://www.e-junkie.com/ecom/gb.php?c=cart&i=1&cl=37&ejc=2')"));
}

This opens a new tab-page with the cart spread over the whole screen:
buttonWeWantToAssignCodeTo.addEventListener(MouseEvent.MOUSE_UP, getTheCode);
function getTheCode(event:MouseEvent):void {
navigateToURL(new URLRequest('https://www.e-junkie.com/ecom/gb.php?c=cart&i=1&cl=37&ejc=2'));
}


So, not quite elegant and the cool thing that should happen.

Anyone knows a solution to make the cart work?
Cheers,
Subuse]]>
E-junkie Discussions; subuse
Post #2 http://www.e-junkie.com/bb/topic/1265/pg/0#post14224 http://www.e-junkie.com/bb/topic/1265/pg/0#post14224 Sun, 16 Dec 2007 01:29:14 GMT E-junkie Discussions; Shivani Post #1 http://www.e-junkie.com/bb/topic/1265/pg/0#post14224 http://www.e-junkie.com/bb/topic/1265/pg/0#post14224 Sun, 16 Dec 2007 01:29:02 GMT E-junkie Discussions; guest_user