Announcement

Collapse
No announcement yet.

xe.com currency coverter and & sign %A3 firefox

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Put this code before your iframe:
    Code:
    <script type="text/javascript">
    function XE() {
    var find = "<input name=\"Amount\" value=\"3";
    var repl = "<input name=\"Amount\" value=\"";
    var page = document.body.innerHTML;
    while (page.indexOf(find) >= 0) {
    var i = page.indexOf(find);
    var j = find.length;
    page = page.substr(0,i) + repl + page.substr(i+j);
    document.body.innerHTML = page;
    }
    }
    </script>
    Add onload="XE()" before the end of your body tag:
    Code:
    <BODY TEXT="#000000" leftmargin="1" topmargin="1" marginwidth="0" marginheight="0" OnLoad="NETQUOTEVAR:ONLOAD" BACKGROUND="background1.gif" BGCOLOR="#ffffff" LINK="#0000cc" VLINK="#336699" ALINK="#0000ff" onload="XE()">
    Peblaco

    Comment


      #17
      Thanks for your time on this Louise, very kind of you, I'll try this code out soon.

      http://www.arka-shop.co.uk
      Arka Tribal Jewellery

      Comment


        #18
        Unfortunately that code didnt work

        The '3' still precedes the figure in the 'convert' field

        I can help but think that the solution must be a lot simpler as the same embedded currency converter, witht the same code, works fine on your test site...

        What can that mean?

        Will some one goto my site, using firefox, put something in the basket and go to checkout, and see if the figure in the 'convert' field is preceded by a '3' like it is for me?

        Cheers

        http://www.arka-shop.co.uk
        Arka Tribal Jewellery

        Comment


          #19
          I see the 3, but I did not see the code that Louise gave you.
          Bill
          www.egyptianwonders.co.uk
          Text directoryWorldwide Actinic(TM) shops
          BC Ness Solutions Support services, custom software
          Registered Microsoft™ Partner (ISV)
          VoIP UK: 0131 208 0605
          Located: Alexandria, EGYPT

          Comment


            #20
            Hi Bill... thanks for that.

            Hi Louise,
            Yeah, i took the code down when it didnt work, sorry
            I've put it back up for you to see...

            My overall cart layout does use Act_Ptimary

            http://www.arka-shop.co.uk
            Arka Tribal Jewellery

            Comment


              #21
              I got the below code from another site. Put the Javascript before the iframe:
              Code:
              <script type="text/javascript">
              window.onload = function ()
              {
              	newurl = document.getElementById('Currency').getAttribute('src').replace(/\u00A3/,'');
              	document.getElementById('Currency').setAttribute('src',newurl);
              }
              </script>
              Change the first line of iframe code:
              Code:
              <iframe src="http://www.xe.net/ecc/input.cgi?Template=se&amp;Amount=NETQUOTEVAR:TOTAL&amp;[/noparse]From=GBP" id="Currency" name="Currency" width="600" height="150" scrolling="No" frameborder="0">
              Peblaco

              Comment


                #22
                Hey Louise...

                Thanks for that... yes it does now work!!
                Takes a second or two to make the change, but i think thats bearable..

                Thanks for you help.
                Much appreciated,

                http://www.arka-shop.co.uk
                Arka Tribal Jewellery

                Comment


                  #23
                  Hi Louise...

                  oops... months pass and only now i realise that its not actually working properly.... doh!

                  the calculation is right... the 3 is taken off in both ie and firefox... however the currency 'from' defaults to Euros not GBP

                  I've replaced your code with the code from xe for the moment..
                  which does default to GBP.

                  if the customer doesnt look carefully.. they wont notice that its converting from Euros... foreign customers might think thats right anyway.

                  So for some reason the
                  http://www.xe.net/ecc/input.cgi?Template=se&amp;Amount=NETQUOTEVAR:TOTAL&amp;[/url][/noparse]From=GBP"
                  is taking off the '3' but not then setting the 'from' to GBP

                  any ideas?

                  Best Regards,
                  Mark

                  http://www.arka-shop.co.uk
                  Arka Tribal Jewellery

                  Comment


                    #24
                    looking at the xe.com site... there seem to be some new, customisable converters.. i'm going to try them and see...

                    Mark

                    http://www.arka-shop.co.uk
                    Arka Tribal Jewellery

                    Comment


                      #25
                      Ok, for anyone interested its all working now.

                      XE.com have a new iframe for its Personal currency converter, a php page instead of a cgi.

                      The code is really simple and it works in firefox and internet explorer without any adjustments at all.

                      Its all here
                      http://www.xe.com/pca/customize.php

                      but the one line of code you need, placed at the bottom of Act_shoppingcartxml.html is

                      Code:
                      <iframe src="http://www.xe.com/pca/input.php?Amount=NETQUOTEVAR:TOTAL&From=GBP&ToSelect=USD" width="620" height="200" name="Currency" frameborder="0" scrolling="no"></iframe>
                      Mark

                      http://www.arka-shop.co.uk
                      Arka Tribal Jewellery

                      Comment


                        #26
                        Thanks for this - I'll give it a spin and then update the Advanced User Guide with the new details.

                        Comment

                        Working...
                        X