Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7840887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T15:57:17+00:00 2026-06-02T15:57:17+00:00

when I try to pass this value, I get this error 09 is not

  • 0

when I try to pass this value, I get this error

09 is not a legal ECMA-262 octal constant [Break On This Error]

linkClicked(SS-10-04-2012-0199)

javasc…2-0199) (line 1, col 26) SS is not defined

Not sure what it means, tried converting the value to string beforehand etc but then it won’t read at all

for(var i=0; i < resultArray.length; i++){
var temp = resultArray[i].pp_order_details_id;
$('#results').append('<tr><td><a href="javascript:linkClicked(' + temp + ')">' + resultArray[i].pp_order_details_id + '</a></td><td>' + resultArray[i].order_ref + '</td><td>' + resultArray[i].status + '</td></tr>');
}

Above is where the data is written to the table
The user should click the link, and the pp_order_details_id should be passed to the linkClicked function below

function linkClicked(orderno) {
$.post("../../order/get-order.php", {
    orderRef: orderno
}, function (data) {
    if (data.match("set")) { $('#my_order_details').fadeOut("fast").load('index#my_order_details').fadeIn("fast");
    }
});
}

I’m probably doing the passing thing wrong because I’m not used to it, but thought I’d ask

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T15:57:19+00:00Added an answer on June 2, 2026 at 3:57 pm

    By the look of the error message this is your call to linkClicked:

    linkClicked(SS-10-04-2012-0199)
    

    But you need to pass a string. Notice the addition of the escaped ' characters:

    $('#results').append('<tr><td><a href="javascript:linkClicked(\'' + temp + '\')">' //...
    

    This should result in the call looking like this:

    linkClicked('SS-10-04-2012-0199')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Try loading this normal .jpg file in Internet Explorer 6.0. I get an error
I'm getting this error when I try to pass a task to a Celery
Given the email address: Jim <jim@example.com> If I try to pass this to MailAddress
I have a get-parameter with name controller . When I try to pass it
I am getting this error message when I try to Add Web Reference to
What is the difference between ',' and 'as' in except statements, eg: try: pass
I try to pass a structure as a parameter. Global structure: struct ThreadParams {
If you try to pass the username/password to OpenVPN from a file via the
My compiler behaves oddly when I try to pass a fixed-size array to a
I'm working on a program where I try to pass parameters by reference. I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.