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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:51:54+00:00 2026-05-23T00:51:54+00:00

I have a dojo tooltip in a jspx (roo project) page. dojo.addOnLoad(function() { //

  • 0

I have a dojo tooltip in a jspx (roo project) page.

dojo.addOnLoad(function() {
            // create a new Tooltip and connect it to bar1 and bar4
            tooltip1=new dijit.Tooltip({
                connectId : [ "iconInfo"],
                label : "myDesc",
                position : [ "below" ]
            });

        })

I would like to replace the tooltip label : “myDesc” by my var ${photodesc}.

How can I do that ?

  • 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-23T00:51:55+00:00Added an answer on May 23, 2026 at 12:51 am

    Forgive me if I have completly misunderstood your question, but are you just looking for to do this:

    dojo.addOnLoad(function() {
        // create a new Tooltip and connect it to bar1 and bar4
        tooltip1=new dijit.Tooltip({
            connectId : [ "iconInfo"],
            label : "${photodesc}",
            position : [ "below" ]
        });
    });
    

    This is assuming that the ‘photodesc’ is in the scope of the JS you have written.

    In addition, you may want to output the ‘photodesc’ variable using the c:out tag as this escapes HTML characters to avoid cross-site scripting.

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

Sidebar

Related Questions

I have this string, which is generated by dojo.toJson() function: {page:accommodation task=viewList,language:undefined} When decoding
I have this code: dojo.declare(City, null, { constructor : function(cityid, cityinfo){ } }); dojo.declare(TPolyline,
I have Aptana installed within Eclipse. I'm working on a project with the dojo
I am new to dojo. I have three divs; the first div has 10
I have a Dojo tooltip that's been initialized and it works perfectly find when
I have a dojo.data.ItemFileReadStore as follows: var partyStore = new dojo.data.ItemFileReadStore({ id: 'partyStore', data:
I have the following codes to create chart graphics by dojox.charting: function createChart() {
I have a simple function that will scroll down to a div in dojo.
I am new in dojo, but i have to use it on my asp.net
I have: dojo.xhrGet({ url:/data/js/1/markers.js, handleAs:javascript, load: function(r){ dojo.forEach(placemarks, function(item) { Which works fine in

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.