Announcement

Collapse
No announcement yet.

adding a form to full des

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

    adding a form to full des

    I have inserted the following code into my full description.
    I am getting a general script error.
    When I insert the same code in act_primary or anywhere else, it works by itself.
    What am I doing wrong? How can I insert this form, so that it shows up in all of my products.

    !!< <form method="GET" action="http://www.levitonhelpdesk.com/catalog/search/default.asp" target="Body">
    <p><input type="text" name="kwd" size="20"><input type="submit" value="" name="B1"></p>
    </form> >!!

    #2
    Actinic Products are within a FORM and you can't have a form within a form. You'll have to place this elsewhere or put it within the Extended Info Popup page as this isn't form based.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      This (untested) idea might ovecome the nested form tags.

      Put this in Act_Primary.html just after the <body...> tag.
      Code:
      <form name="helpdesk" id="helpdesk" method="GET" action="http://www.levitonhelpdesk.com/catalog/search/default.asp" target="Body">
      <input id="kwd" type="hidden" name="kwd">
      </form>
      
      <script language=JavaScript>
      <!--
      function sendit(ref){
       var txt = document.getElementById('info' + ref).value;
       document.getElementById('kwd').value =  txt;
       if (txt != '') document.getElementById('helpdesk').submit();
       alert('No text entered');
      } 
      //-->
      </script>
      Put this into your Product Template
      Code:
      <input type="text" size="20" id="infoNETQUOTEVAR:PRODUCTREFERENCE">
      <input type="button" name="B1" value="B1" onclick="sendit('NETQUOTEVAR:PRODUCTREFERENCE')">
      There are probably buglets and typos in this but it should give you the idea.
      Last edited by NormanRouxel; 23-Nov-2005, 09:46 PM. Reason: Clarified code
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment


        #4
        Thank you NORM.
        I can always count on you.

        Comment


          #5
          Wow! You mean it worked. I just typed that lot straight out of my head.
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment

          Working...
          X