intuit partner platform - How to pass a meteor user name to a invoking java script as a argument from HTML -


Here's the sample code I'm presenting HTML with this JavaScript as menus proxies and grants url as arguments, To give the URL, I want to attach a URI as a query parameter. Please advise how to get it.

  intuit.ipp.anywhere.setup ({menuProxy: 'http: // xxxx: 8080 / QuickbooksV3API / Bluedot.htm', grant: ' Http: // xxxx: 8080 / QuickbooksV3API / requesttoken.htm '+'? CustId = '+ {{currentUser.username}}});  

When I try to run "Uncaught SyntaxError: Unexpected Tokens", I get the following error because it is confused with the JSON format meteorite.

You can not use handler syntax in javascript. However, by calling Meteor.user in JavaScript, you will get similar results in templates in {{currentUser}} .

  grantUrl: 'http: // xxxx: 8080 / QuickbooksV3API / requesttoken.htm? CustId = '+ Meteor.user () Username  

Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -