Announcement

Collapse
No announcement yet.

'Email A Friend' Link - Actinic Advanced User Guide 7.1

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

    'Email A Friend' Link - Actinic Advanced User Guide 7.1

    Folks,

    Two posts in 15 minutes!

    I am trying to utilise "Including an 'Email A Friend' Link into Actinic" from page 47 of the Actinic Advanced User Guide 7.1.

    As with my other issue, I've read everything I can on the Forums ... but, you may recall, I'm a naive twiddler and not a code guru!

    Anyway ...

    As previously, I use Act_ProductLine and Act_ProductLineNew to display products in our online shop; however, despite cut'n'pasting the relevant code (and only amending the eMail Subject to include the web-site URL) - and placing the resultant code into both "Act_ProductLine" and "Act_ProductLineNew", as per this:

    "<TR>
    <TD></TD>
    <TD CLASS="actxsmall">
    Please enter an eMail address in the text box to notify the recipient about this product:
    <P>
    <INPUT TYPE=text VALUE="Enter eMail address" SIZE=40 onFocus="this.value=''" onChange="var thisSiteURL=location.hostname,thisLoc=location.href + '#NETQUOTEVAR:PRODUCTANCHOR';
    if(this.value != '')
    {location.href='mailto:' + this.value +'?subject=You may wish to take a look at this site '+thisSiteURL+'&body=I saw this NETQUOTEVAR:PRODUCTNAME here '+thisLoc+' and thought you might be interested.'}">
    <P>
    <INPUT TYPE=button VALUE="Send"></TD>
    </TR>"

    I can only get the <Send> eMail button to work for the products which utilise the "Act_ProductLine" HTML fragment and not the "Act_ProductLineNew". Even then, I can only get it to work in MS IE and not Firefox, where nothing at all happens (is Firefox really this incompatible or have Actinic 'optimised' their code to please the larger majority of IE users?).

    First I tried to cut'n'paste the relevant (and identical) eMail code into each HTML fragment - this failed to resolve the issue. So then I cut and pasted the entire HTML from the one that worked (Act_ProductLine) and pasted it into the one that didn't (Act_ProductLineNew), amending the latter manually to re-install the "New" product logo (which, as far as I can see, is the only material difference between the 2 bits of HTML):

    "<IMG SRC="new_product.gif" BORDER="1" WIDTH="30" HEIGHT="14" ALT="New Product" ALIGN="absmiddle"><BR>".

    was placed after the "NETQUOTEVAR:PRODUCTREF".

    As before, the code only works in the standard product template and NOT the "New Product" one.

    I think the MS IE fault I get when displaying this page - a visible pop-up which refers me to a likely missing ";" (semi-colon) - is related to this ... yet I cannot find fault with the code (originally cut'n'pasted from the Actinic User Guide and carefully modded to change the eMail Subject).

    What's so confusing is why the code works in "Act_ProductLine" but not in "Act_ProductLineNew".

    Aaaarrrrggggghhhhh!

    Help! Please ...
    Cheers,

    <B>Steve Crane</B>

    #2
    For the difference in the templates - do you reference the same javascript (.js) files in ther header of both templates? It sounds like you have one missing in the New template.

    For Firefox - have you enabled scripting?

    hth
    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


      #3
      'Email A Friend' Link - JavaScript error(s)?

      The Actinic User Guide makes no mention of amending this . Here is the entire section from that guide:

      "Including an 'Email A Friend' Link into Actinic
      Enter the following code into your product layout template (normally called
      Act_ProductLine.html)...
      Advanced Users Guide - 48
      Enter e-mail address to tell a friend
      <input type=text value="" size=40 onchange="
      var thisloc=location.href + '#NETQUOTEVAR:PRODUCTANCHOR';
      if (this.value != '') {
      location.href='mailto:' + this.value
      +'?subject=Take%20a%20look%20at%20NETQUOTEVAR:PRODUCTNAME&body=I%20saw%20
      ' + thisloc + '%20and%20thought%20you%20would%20be%20interested.'
      }
      ">
      <input type=button value="OK">"

      In neither of the amended HTML pages is there any reference to any javascript (.js) files in either header of either templates. In fact, there is no (explicit) header element in either of the amended files!

      I can only presume that if there should be something which is referenced, that it is 'called' by the 'higher order' Actinic HTML that cross-references both "Act_ProductLine" and "Act_ProductLineNew". (Perhaps this "Act_ProductBody" or something else, mebbee???).
      Cheers,

      <B>Steve Crane</B>

      Comment


        #4
        It's probably a copy / paste problem. The text
        Code:
        <input type=text value="" size=40 onchange="
        var thisloc=location.href + '#NETQUOTEVAR:PRODUCTANCHOR';
        if (this.value != '') {
        location.href='mailto:' + this.value
        +'?subject=Take%20a%20look%20at%20NETQUOTEVAR:PRODUCTNAME&body=I%20saw%20
        ' + thisloc + '%20and%20thought%20you%20would%20be%20interested.'
        }
        ">
        should all be on one long line
        Code:
        <input type=text value="" size=40 onchange="var thisloc=location.href + '#NETQUOTEVAR:PRODUCTANCHOR';if (this.value != '') {location.href='mailto:' + this.value+'?subject=Take%20a%20look%20at%20NETQUOTEVAR:PRODUCTNAME&body=I%20saw%20' + thisloc + '%20and%20thought%20you%20would%20be%20interested.'}">
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          Steve - you are thinking in the right direction - what is different about the page where it works, and the page where it does not work? Is it a different Overall Layout? That's one of the best things about this Forum. You give someone a hint and off they go and find the answer themselves, then post the details to help the next guy.

          BTW I visited your site in the hope of finding a working (or not working) example of how Actinic is generating the final code - I did not find any link. I did notice that in your Broken Links message tou say you will provide additional info by mail OR fix the 404 error ASAP, perhaps that should be AND fix the error.
          rgds,
          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


            #6
            You're Quite Right ...

            wjcampbe,

            Thanks - I'll fix the "Broken Links" typo!
            Cheers,

            <B>Steve Crane</B>

            Comment

            Working...
            X