Announcement

Collapse
No announcement yet.

inserting data into a netquotevar

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

    inserting data into a netquotevar

    Hi,

    I dont know if this is possible I am trying to insert a value into netquotevar:adjustment ?

    Code:
     
    <spript language=JavaScript>
    <!--hide from old browsers 
    var a1 = 'NETQUOTEVAR:a1';
    var a2 = "-5.00";
    if a1 = "time" 
            {
                document.write('<INPUT TYPE=SUBMIT VALUE="a2" NAME="NETQUOTEVAR:ADJUSTMENT">');
            }
            else
            {
            document.write('<INPUT TYPE=SUBMIT VALUE="0" NAME=NETQUOTEVAR:ADJUSTMENT">');
            }
    //-->
    </script>
    I hope this doesnt get mashed up when I post..

    I am trying to insert -5.00 in the adjustment. I validate the a1 if its true it should put -5.00 in the "NETQUOTEVAR:ADJUSTMENT"

    I havent been able to try this yet as I have to use the live site.

    Many thanks,

    David Shorthouse
    David Shorthouse,
    Website Manager,
    http://www.Queenswood.co.uk

    #2
    Hi there,

    I'm afraid it is not possible to enter integer values within NETQUOTEVAR:ADJUSTMENT.
    Actinic Software

    Comment


      #3
      Hi,
      Many thanks for the reply. If its not possible to insert integer I would assume that I can insert 500 as I do when I import prices from our database?

      Many thanks
      David Shorthouse
      Queenswood Ltd
      David Shorthouse,
      Website Manager,
      http://www.Queenswood.co.uk

      Comment


        #4
        I'm not sure if your iodea will work but anyway, the JavaScript is wrong.
        Code:
        document.write('<INPUT TYPE=SUBMIT VALUE="a2" NAME="NETQUOTEVAR:ADJUSTMENT">');
        won't do what you expect. It will put a2 as the value. You need
        Code:
        document.write('<INPUT TYPE=SUBMIT VALUE="' + a2 + '" NAME="NETQUOTEVAR:ADJUSTMENT">');
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          Thanks Norman,

          Not very good with Javascript will be testing it tonight I expect when the website is quite.


          Many thanks

          Dave
          David Shorthouse,
          Website Manager,
          http://www.Queenswood.co.uk

          Comment


            #6
            View your pages using Firefox and use it's Tools / JavaScript Console to get decent diagnostics.
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment


              #7
              Thanks again Norman,

              I hadnt installed Firefox since updating the machine to 2000 So have just done that now and will try it out.

              Thanks again.

              Dave
              David Shorthouse,
              Website Manager,
              http://www.Queenswood.co.uk

              Comment

              Working...
              X