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

The Archive Base Latest Questions

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

I have a multiple files uploadify setting with: ‘onComplete’ : function(event, ID, fileObj, response,

  • 0

I have a multiple files uploadify setting with:

'onComplete' : function(event, ID, fileObj, response, data) {
    myCollection.add({params parsed from response json});
}

which triggers (trough this.collection.bind(‘add’, this.add)) this collection view method:

add: function(obj) {
    var view = new MyModelView({model: obj});
    this.$('.insert-models-here').append(view.render().el);
    return this;
},

The new MyModelView call triggers: MyModelView::initialize() which is here:

initialize: function() {
    var t = $('#photo-template').html();
    this.template = _.template(t);
    this.model.view = this;
},

And every _.template() calls jumps inside __flash__toXML() method from which all thread is stopped.
The result is no model added inside my collection from any uploadify event.

Does anyone knows why and how to avoid this?

  • 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-23T23:28:51+00:00Added an answer on May 23, 2026 at 11:28 pm

    Ok, I found solution.

    Problem was in using underscore in uploadify events so I replace underscore _.templates with icanhaz and rewrite my add() collection view method this way to workaround any underscore functionality:

        add: function(obj) {
            var view = new MyModelView({model: obj});
            $('.insert-models-here').first().append(view.render().el);
            return this;
        },
    

    Hope someone will call my name in future..

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

Sidebar

Related Questions

I am using uploadify plugin of jquery and have set multiple files upload to
I have multiple excel files which I open as datatable I want to merge
My code is built to multiple .dll files, and I have a template class
I have multiple files with hundreds of thousands of records in following format: 2010/08/10
Can we have multiple HTML files in Phonegap application?
I have a flash file uploader that allows uploading multiple files in one shot.
I have often wonder how Facebook is able to handle uploading multiple files on
I have multiple files that I keep including individually. I want to just put
I have a very simple question....I have multiple jsp files like login.jsp , Registration.jsp
Is it possible to have a file belong to multiple subpackages? For example: /**

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.