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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T18:29:36+00:00 2026-05-16T18:29:36+00:00

How do I go about calling a function within a jQuery array to add

  • 0

How do I go about calling a function within a jQuery array to add another array?

$('#map').zoommap({

        // Width and Height of the Map
        width: '490px',
        height: '380px',

        //Region
        map: function getMaps();

    });

getMaps() should return the following:

{
    id: 'campus',
    image: '/resources/images/maps/'+mapId,
    data: '',
    maps: []
}

Cheers,
Nick

  • 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-16T18:29:36+00:00Added an answer on May 16, 2026 at 6:29 pm

    Pretty sure

    map: getMaps()
    

    Will do the trick. No ; at the end (just a comma if you need to add more items), and you don’t need to put function before it either, unless you’re trying to declare a function.

    If you’re questioning how to write the getMaps() function, you pretty much have that too..

    function getMaps() {
        return {
            id: 'campus',
            image: '/resources/images/maps/'+mapId,
            data: '',
            maps: []
        }
    }
    

    Although I don’t know why you need the function at all, when you could just put the inner { id: ... } right in it’s place…. putting it all together:

    $('#map').zoommap({
        // Width and Height of the Map
        width: '490px',
        height: '380px',
    
        //Region
        map: {
            id: 'campus',
            image: '/resources/images/maps/'+mapId,
            data: '',
            maps: []
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

About to start another jquery mobile site for an existing website. Cut down version
I'm having an issue with a function I'm calling (using jQuery). My issue is
I am trying to avoid C6011 warning because an abort function is calling exit().
How could I go about calling a method on a static class given the
I was thinking about the performance of calling List<T>.Indexof(item) . I am not sure
How would you go about invoking the ActionFilterAttribute when you are calling a controllers
Here's my previous question about switching C callstacks. However, C++ uses a different calling
I have the following function to convert a byte array of pixels into an
I have a function that I want to call from within a class method.
I have a function within a custom CRM web application (old VB.Net circa 2003)

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.