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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:35:01+00:00 2026-06-11T14:35:01+00:00

I am firing up the ServiceStack social bootstrap api example to see how it

  • 0

I am firing up the ServiceStack social bootstrap api example to see how it works.

I clicked the “sign in” link and nothing happened. And I looked into the code (see attachment pic 1)

<a data-cmd="signIn">sign in</a>

On a click event of the “sign in” link, my understanding is the e.srcElement would be “a” tag here?

However, it says e.srcElement “undefined” (see attachment pic 2). So, the “signIn” cmd was never reached.

I didn’t change anything in the social bootstrap api example. What am I doing wrong??

(sorry about the picture size, please zoom in a bit with your browser to see the text more clearly)

enter image description here
enter image description here

  • 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-11T14:35:02+00:00Added an answer on June 11, 2026 at 2:35 pm

    Whilst I don’t care for IE in my demos, I do want to support Firefox. I’ve traced the issue down to this javascript error, e.g I’ve changed:

    var dataCmd = $(e.srcElement).data('cmd');
    

    to

    var dataCmd = $(e.srcElement || e.target).data('cmd');
    

    This change has been re-deployed to http://bootstrapapi.apphb.com

    Basically the way it works is I have a global click handler to catch any clicks and if the src/target element has a cmd defined, I publish that to all the registered modules:

    $(document.body).click(function (e) {
        console.log("handleClicks", e);
        var dataCmd = $(e.srcElement || e.target).data('cmd');
        if (!dataCmd) return;
    
        var cmd = dataCmd.split(':'),
            evt = cmd[0],
            args = cmd.length > 1 ? cmd[1].split(',') : [];
    
        app.sendCmd(evt, args);
    });
    

    So who ever is interested in that click can handle it. Which in the case of data-cmd="signIn" will be the register.js module, which just sets the user preference on the Backbone model:

    signIn: function(e) {
        this.model.set({ hasRegistered: true });
    },
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

the Problem I am having is that the PostExecute is not firing. I see
It is definitely firing because I can for only a moment see the dialog
Again i see that the @PostConstruct is firing every time even though no binding
I am firing an update query that works for one page, but not another.
The setActiveItem function is firing but nothing happens and im not getting any error
Is there any way to force firing of valueChangeListener during typing into an component?
I have a _Click event that is firing when a chart is clicked on.
jquery ajax start handler not firing. Why? jquery 1.6.2 Code example: $(document).ready(function(){ $('#rr-loading-overlay').ajaxStart(function(){ alert('asda');
If I have an onChange function firing when an orientation change has happened, how
I'm firing off tasks using an ExecutorService, dispatching tasks that need to be grouped

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.