简体   繁体   中英

error on javascript, probably syntax?

I get error

[Error] PLS-00103 (805: 6): PLS-00103: Encountered the symbol "HTP" when expecting one of the following: := . ( % ;
The symbol ":=" was substituted for "HTP" to continue.

Which is the last line, I don't see anything that I'm missing, but obviously there is a comma or something. Can anyone help?

      HTP.P( '<script> 
 function currencychange(){

     $.ajax({
          url:contr_entry_pkg.select_sales_center,
          data: { pvCurrCd:'||CURRDEF||',
          pnSalesCenterID: $(this).find("#pnSalesCenterID").val()

                }
          async:false,
          success: function(vRetVal){
                 var jsonObj =  eval("("+vRetVal+")");
               }

               });
           };' )   
     HTP.P( '</script>');  

Maybe there should be ; before last line

'...
       };' );   
 HTP.P( '</script>');  

As you can see with syntax hightlighting...

HTP.P('<script> 
    function currencychange(){
    $.ajax({
      url:contr_entry_pkg.select_sales_center,
      data: { 
        pvCurrCd:"||CURRDEF||",
        pnSalesCenterID: $(this).find("#pnSalesCenterID").val()
      },
      async:false,
      success: function(vRetVal) {
        var jsonObj =  eval("("+vRetVal+")");
      }

    });
};');   

HTP.P('</script>');  

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM