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

  • Home
  • SEARCH
  • 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 8425559
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:18:14+00:00 2026-06-10T04:18:14+00:00

I am generating context menu when user selects some text and right click it.

  • 0

I am generating context menu when user selects some text and right click it. I tried implementing it, problem is even sample application is not working.

http://crossrider.com/apps/10565/ide

appAPI.contextMenu.add("key1", "Display data object", function (data) {
   var sAlertText = 'pageUrl: ' + data.pageUrl + '\r\n' +
                 'linkUrl: ' + data.linkUrl + '\r\n' +
                 'selectedText:' + data.selectedText + '\r\n' +
                 'srcUrl:' + data.srcUrl;
   alert(sAlertText);
}, ["all"]);

Only data.pageUrl is available rest of all are “undefined”. I want selectedText.

  • 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-10T04:18:16+00:00Added an answer on June 10, 2026 at 4:18 am

    Disclaimer: I work at Crossrider.

    Indeed there was an issue with the contextMenu due to a change in the Chrome API.
    We’ve fixed this and now the demo app works.

    Thank you for reporting this and please feel free to let us know if you encounter any issues!

    Amir

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

Sidebar

Related Questions

What is a design pattern I can use for generating context-sensitive right click menus
I'm looking for a right-click upload application like RightLoad - an application that can
Im generating a file to present to the user for download, but the server
Visual Studio 2010, .Net 4.0 I'm generating some Domain Service Classes and this is
I have a LINQ query, which for some reason is generating an extra/duplicate INNER
My application is context-sensisitve and I dynamically build menus for the main window /
I am generating some Dynamic SQL and would like to ensure that my code
I've home scrren widget, and I'm generating some items inside (i have a layout
In the context of a Java/Eclipse application I would like to use Prolog for
To put the question into some context, the system exposing the web service uses

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.