E-Junkie Forum http://www.e-junkie.com/bb/ E-Junkie Forum RSS en-us Copyright 2010, 19.5 Degrees. All rights reserved. webmaster@e-junkie.com webmaster@e-junkie.com Mon, 6 Jul 2009 00:11:10 GMT Sat, 20 Mar 2010 12:55:47 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/3479/pg/0#post10618 http://www.e-junkie.com/bb/topic/3479/pg/0#post10618 Mon, 6 Jul 2009 00:11:10 GMT
https://www.e-junkie.com/ecom/gb.php?c=cart&i=DRR-TV0110&cl=58192&ejc=2

...with this instead:

javascript:EJEJC_lc('https://www.e-junkie.com/ecom/gb.php?c=cart&i=DRR-TV0110&cl=58192&ejc=2')

So your XML file would look something like this:

<setting mode="normal" allowDrag="false" allowDoubleClickToSwitchMode="false" showPlaylist="true" autoPlay="true" loop="true" shuffle="false" volume="75" mute="false">
<audio cover="mp3-player/files/TataCover.jpg" singer="Táta Vega" album="This Joy" song="This Joy" url="mp3-player/files/This_Joy.mp3" link="javascript:EJEJC_lc('https://www.e-junkie.com/ecom/gb.php?c=cart&i=DRR-TV0110&cl=58192&ejc=2')" img="imgs/add_to_cart.jpg"/>
</setting>

(Note I have also removed the linkTarget= and class= attributes, as they are not needed in this case.)]]>
E-junkie Discussions; E-junkieGuru
Post #5 http://www.e-junkie.com/bb/topic/3479/pg/0#post10618 http://www.e-junkie.com/bb/topic/3479/pg/0#post10618 Mon, 29 Jun 2009 05:38:20 GMT
<script language="javascript" type="text/javascript">
<!--
function EJEJC_lc(th) { return false; }
// -->
</script>
<script type="text/javascript" src="https://www.e-junkie.com/ecom/box.js"></script>



This is the xml file:

<setting mode="normal" allowDrag="false" allowDoubleClickToSwitchMode="false" showPlaylist="true" autoPlay="true" loop="true" shuffle="false" volume="75" mute="false">
<audio cover="mp3-player/files/TataCover.jpg" singer="Táta Vega" album="This Joy" song="This Joy" url="mp3-player/files/This_Joy.mp3"
link="https://www.e-junkie.com/ecom/gb.php?c=cart&i=DRR-TV0110&cl=58192& ejc=2" linkTarget="ej_ejc" class="ec_ejc_thkbx"
onClick="javascript:return EJEJC_lc(this);" img="imgs/add_to_cart.jpg"/>

</setting>


Since I can't put the JS in the xml file is there any other way the xml file can see the required JS that's on the HTML so it can run it?]]>
E-junkie Discussions; dorite
Post #4 http://www.e-junkie.com/bb/topic/3479/pg/0#post10618 http://www.e-junkie.com/bb/topic/3479/pg/0#post10618 Mon, 29 Jun 2009 03:00:20 GMT
<script language="javascript" type="text/javascript">
<!--
function EJEJC_lc(th) { return false; }
// -->
</script>
<script type="text/javascript" src="https://www.e-junkie.com/ecom/box.js"></script>

...and also make sure your Flash content is embedded as "transparent", so the cart can "show through" the Flash when it's displayed (this prevents the Flash player from covering up the cart display). This is described at the top of the Flash help page I linked previously.]]>
E-junkie Discussions; E-junkieGuru
Post #3 http://www.e-junkie.com/bb/topic/3479/pg/0#post10618 http://www.e-junkie.com/bb/topic/3479/pg/0#post10618 Mon, 29 Jun 2009 00:21:58 GMT
This is the example

http://mh75.com/dorite/artists_Tata.html]]>
E-junkie Discussions; dorite
Post #2 http://www.e-junkie.com/bb/topic/3479/pg/0#post10618 http://www.e-junkie.com/bb/topic/3479/pg/0#post10618 Sun, 28 Jun 2009 21:09:54 GMT http://www.e-junkie.com/ej/help.flash-shopping-cart.htm

Note that you will need to use Add to Cart/View Cart code to use the nice overlay cart, as the Buy Now code bypasses the cart entirely and takes a buyer directly to checkout for a single item at a time.

I think perhaps you are just missing the View Cart code in the source code of your Web page? You don't even need the actual button link, just so long as you have the last half with lines from the first <script... to the last </script>.]]>
E-junkie Discussions; E-junkieGuru
Post #1 http://www.e-junkie.com/bb/topic/3479/pg/0#post10618 http://www.e-junkie.com/bb/topic/3479/pg/0#post10618 Sun, 28 Jun 2009 16:20:26 GMT
I have an xml Flash mp3 player. The xml file is being called from an swf (Flash) file embedded in my HTML page.

This is the xml file:

<setting mode="normal" allowDrag="false" allowDoubleClickToSwitchMode="false" showPlaylist="true" autoPlay="true" loop="true" shuffle="false" volume="75" mute="false">
<audio cover="mp3-player/files/TataCover.jpg" singer="Táta Vega" album="This Joy" song="This Joy" url="mp3-player/files/This_Joy.mp3"
link="https://www.e-junkie.com/ecom/gb.php?c=cart&i=DRR-TV0110&cl=58192&ejc=2" linkTarget="ej_ejc" class="ec_ejc_thkbx"
onClick="javascript:return EJEJC_lc(this);" img="imgs/add_to_cart.jpg"/>

</setting>


I want to be able to get the fade-in overlay cart when I click the BUY button but I can only get it to open a new tab/window.



Can this be done? Am I missing some extra code somewhere?]]>
E-junkie Discussions; dorite