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 1041619
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T15:22:52+00:00 2026-05-16T15:22:52+00:00

I am using the eBay JavaScript Finding API. The currency id member of the

  • 0

I am using the eBay JavaScript Finding API. The currency id member of the findItemsAdvancedResponse object is defined as @currencyId. So I am retrieving this value as:

function _cb_findItemsAdvanced(root) {
    var items = root.findItemsAdvancedResponse[0].searchResult[0].item || [];
    var html = [];
    if (items.length == 0) {
        html.push('No Results');
    }
    for (var i = 0; i < items.length; ++i) {
        var item     = items[i];
        var title    = item.title;
        var pic      = item.galleryURL;
        var viewitem = item.viewItemURL;
        var price = Number(item.sellingStatus[0].currentPrice[0].`__value__`).toFixed(2);
        var currency = ""
        var currency = item.sellingStatus[0].currentPrice[0].@currencyId;
        if (null != title && null != viewitem) {
            html.push('<div class="item-layout5"><table><tr><td><div style="width:102px;overflow:hidden;">');
            html.push('<a href="' + viewitem + '" target="_blank" rel="nofollow"><img src="' + pic + '" border= "" alt="' + title + '" /></a></div></td>');
            html.push('<td><span class="itemname"><a href="' + viewitem + '">' + title + '</a></span></td></tr>');
            html.push('<tr><td><img src="PTMFOG0000000064.gif" alt="" /></td><td><span class="buyprice">' + currency + ' &#36;' + price + '</span></td></tr></table></div>');
        }
    }
    document.getElementById("results").innerHTML = html.join("");

}  // End _cb_findItemsByKeywords() function

This works fine for Firefox browsers, but not for Google Chrome or IE (I get a compilation error).

Is using the @ symbol in a member name acceptable in JavaScript? And what workaround can I use so that the above code will work in all browsers?

Thanks

  • 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-05-16T15:22:52+00:00Added an answer on May 16, 2026 at 3:22 pm

    In javascript, the syntax

      foo.bar
    

    is equivalent to

      foo['bar']
    

    and the latter works even when ‘bar’ is not a valid identifier name, as in this case.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using this HTML <html> <head> <Title>EBAY Search</title> </head> <script language=JavaScript src=ajaxlib.js></script> <body>
I am using Eclipse WTP plugin to generate the stub from this WSDL: https://api.sandbox.ebay.com/wsapi?wsdl
After using the ebay API recently, I was expecting it to be as simple
I'm trying to make my first web service client for the eBay API using
Hi I am using this code to get some data from ebay . string
I am using the Amazon and eBay API via PHP5 and Curl to get
I have just started with the ebay Finding API and Feedback API and I
This should be simple, but I am having problems. Using the eBay .Net library,
I am using VB .Net to access the eBay API and store all completed
Using PHP5, how can I use the eBay API to set all my 2000+

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.