Announcement

Collapse
No announcement yet.

Capatalize words script but how.

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #31
    Made a test order and County isn't capitalizing. However the generated code for the County field includes the line

    <input type="TEXT" name="INVOICEADDRESS4" size="40" maxlength="200" VALUE="">

    So it looks like the onchange="this.value = capitalizeWords(this.value)" bit has been left out of that field.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #32
      My code for address4 is this for Act_Order01.html and Act_Order02.html


      Code:
      NETQUOTEDEL:INVOICEPROMPT006 NETQUOTEDEL:INVOICEPROMPT007
        <tr>
          <td bgcolor="NETQUOTEVAR:CHECKOUTBG">NETQUOTEVAR:INVOICEPROMPT007</td>
          <Actinic:LOCATION TYPE='INVOICEADDRESS4'>
          <td bgcolor="NETQUOTEVAR:CHECKOUTBG">
            <input type="TEXT" name="INVOICEADDRESS4" size="40" maxlength="200" value="NETQUOTEVAR:INVOICEADDRESS4" onchange="this.value = capitalizeWords(this.value)">
          </td>
          </Actinic:LOCATION>
        </tr>
        NETQUOTEDEL:INVOICEPROMPT007 NETQUOTEDEL:INVOICEPROMPT008
      David

      Comment


        #33
        Somethings weird as the text appearing on the site isn't coming from that snippet you posted above. The site has VALUE= and you have value= (different case). This suggests that this line is coming from somewhere else or is being modified by the OrderScript.pl routine.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #34
          Is weird


          I have noticed that the county line is never cached either
          David

          Comment


            #35
            To test the above problem why not temporarily change the line

            <td bgcolor="NETQUOTEVAR:CHECKOUTBG">

            to

            <td bgcolor="#ffcc99">

            and see if that cell changes colour.
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment


              #36
              Yes changhed the colour on the site OK
              David

              Comment


                #37
                I think there's something missing from the template. Actinic isn't remembering what you type in the County field. Try entering something, go to the next stage and then cancel. Now restart the checkout and you'll see nothing there.
                Norman - www.drillpine.biz
                Edinburgh, U K / Bitez, Turkey

                Comment


                  #38
                  this seems to be the case

                  What script is at fault?
                  David

                  Comment


                    #39
                    Act_Order01.html for a start, I think. Here's a snippet (the Address fields only) from my unaltered one. Compare with what you've got.
                    Code:
                      NETQUOTEDEL:INVOICEPROMPT003 NETQUOTEDEL:INVOICEPROMPT004
                      <tr>
                        <td bgcolor="NETQUOTEVAR:CHECKOUTBG">NETQUOTEVAR:INVOICEPROMPT004</td>
                        <td bgcolor="NETQUOTEVAR:CHECKOUTBG">
                          <input type="TEXT" name="INVOICEADDRESS1" size="40" maxlength="200" value="NETQUOTEVAR:INVOICEADDRESS1">
                        </td>
                      </tr>
                      NETQUOTEDEL:INVOICEPROMPT004 NETQUOTEDEL:INVOICEPROMPT005
                      <tr>
                        <td bgcolor="NETQUOTEVAR:CHECKOUTBG">NETQUOTEVAR:INVOICEPROMPT005</td>
                        <td bgcolor="NETQUOTEVAR:CHECKOUTBG">
                          <input type="TEXT" name="INVOICEADDRESS2" size="40" maxlength="200" value="NETQUOTEVAR:INVOICEADDRESS2">
                        </td>
                      </tr>
                      NETQUOTEDEL:INVOICEPROMPT005 NETQUOTEDEL:INVOICEPROMPT006
                      <tr>
                        <td bgcolor="NETQUOTEVAR:CHECKOUTBG">NETQUOTEVAR:INVOICEPROMPT006</td>
                        <td bgcolor="NETQUOTEVAR:CHECKOUTBG">
                          <input type="TEXT" name="INVOICEADDRESS3" size="40" maxlength="200" value="NETQUOTEVAR:INVOICEADDRESS3">
                        </td>
                      </tr>
                      NETQUOTEDEL:INVOICEPROMPT006 NETQUOTEDEL:INVOICEPROMPT007
                      <tr>
                        <td bgcolor="NETQUOTEVAR:CHECKOUTBG">NETQUOTEVAR:INVOICEPROMPT007</td>
                        <Actinic:LOCATION TYPE='INVOICEADDRESS4'>
                        <td bgcolor="NETQUOTEVAR:CHECKOUTBG">
                          <input type="TEXT" name="INVOICEADDRESS4" size="40" maxlength="200" value="NETQUOTEVAR:INVOICEADDRESS4">
                        </td>
                        </Actinic:LOCATION>
                      </tr>
                      NETQUOTEDEL:INVOICEPROMPT007 NETQUOTEDEL:INVOICEPROMPT008
                      <tr>
                        <td bgcolor="NETQUOTEVAR:CHECKOUTBG">NETQUOTEVAR:INVOICEPROMPT008</td>
                     	<Actinic:LOCATION TYPE='INVOICEPOSTALCODE'>
                        <td bgcolor="NETQUOTEVAR:CHECKOUTBG">
                          <input type="TEXT" name="INVOICEPOSTALCODE" size="10" maxlength="50" value="NETQUOTEVAR:INVOICEPOSTALCODE">
                        </td>
                    	</Actinic:LOCATION>
                      </tr>
                      NETQUOTEDEL:INVOICEPROMPT008 NETQUOTEDEL:INVOICEPROMPT009
                    Norman - www.drillpine.biz
                    Edinburgh, U K / Bitez, Turkey

                    Comment


                      #40
                      I cant see any thing different.

                      - very strange
                      David

                      Comment


                        #41
                        It works fine for me. Using 6.1.5, I amended the Act_Order01.html fragment
                        Code:
                          NETQUOTEDEL:INVOICEPROMPT006 NETQUOTEDEL:INVOICEPROMPT007
                          <tr>
                            <td bgcolor="NETQUOTEVAR:CHECKOUTBG">NETQUOTEVAR:INVOICEPROMPT007</td>
                            <Actinic:LOCATION TYPE='INVOICEADDRESS4'>
                            <td bgcolor="NETQUOTEVAR:CHECKOUTBG">
                              <input type="TEXT" name="INVOICEADDRESS4" size="40" maxlength="200" value="NETQUOTEVAR:INVOICEADDRESS4">
                            </td>
                            </Actinic:LOCATION>
                          </tr>
                          NETQUOTEDEL:INVOICEPROMPT007 NETQUOTEDEL:INVOICEPROMPT008
                        to be
                        Code:
                          NETQUOTEDEL:INVOICEPROMPT006 NETQUOTEDEL:INVOICEPROMPT007
                          <tr>
                            <td bgcolor="NETQUOTEVAR:CHECKOUTBG">NETQUOTEVAR:INVOICEPROMPT007</td>
                            <Actinic:LOCATION TYPE='INVOICEADDRESS4'>
                            <td bgcolor="NETQUOTEVAR:CHECKOUTBG">
                              <input type="TEXT" name="INVOICEADDRESS4" size="40" maxlength="200" value="NETQUOTEVAR:INVOICEADDRESS4" onchange="this.value=this.value.toUpperCase();">
                            </td>
                            </Actinic:LOCATION>
                          </tr>
                          NETQUOTEDEL:INVOICEPROMPT007 NETQUOTEDEL:INVOICEPROMPT008
                        and it worked as expected.

                        Attach your Act_Order01.html and I'll see if it fails for me.
                        Norman - www.drillpine.biz
                        Edinburgh, U K / Bitez, Turkey

                        Comment


                          #42
                          What do you use this bit for?


                          [CODE] NETQUOTEDEL:INVOICEPROMPT007 NETQUOTEDEL:INVOICEPROMPT008[code]to be
                          Code:
                            NETQUOTEDEL:INVOICEPROMPT006 NETQUOTEDEL:INVOICEPROMPT007
                          David

                          Comment


                            #43
                            These are essential Actinic variables. They mark the beginning and end of bits of code that will be included / omitted depending on whether you have selected these lines via the Show checkbox in Design / Options / Web Site (cont) / Invoice Address.

                            Everything between two identical NETQUOTEDEL's will be include / omitted depending on a choice you made in Design / Options.
                            Norman - www.drillpine.biz
                            Edinburgh, U K / Bitez, Turkey

                            Comment


                              #44
                              Yes sorry.

                              Looks like you eddited your previous post
                              David

                              Comment


                                #45
                                I have copied and pasted your working code into my site and it it not working for me.

                                Something must be over riding it

                                It must be something to do with locations used by Actinic

                                does it have something to do with choosing what state (county) you are in?
                                I only sell the UK and dont use any CLASSES
                                David

                                Comment

                                Working...
                                X