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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:27:18+00:00 2026-06-11T15:27:18+00:00

Is there a fancy way of binding a view to html already renderer in

  • 0

Is there a fancy way of binding a view to html already renderer in the page?

Example your server load all your page html, then you load views on top of that html without using the render method the first time you load the page.

  • 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-11T15:27:19+00:00Added an answer on June 11, 2026 at 3:27 pm

    I’ve done something similar to what I think you’re trying to do. In my case, I added Backbone functionality on top of existing forms. Here’s a stripped down example:

    Existing HTML:

    <div id="my-app">
      <form name="input" action="html_form_action.asp" method="get">
        Username: <input type="text" name="user" id="username" />
        <input type="submit" value="Submit" />
      </form> 
    </div>
    

    Backbone:

    var MyFormView = Backbone.View.extend({
      events: {
        "submit form": "formHandler"
      },
      formHandler: function(evt) {
        evt.preventDefault();
        var nameVal = $('#username').val();
        this.$el.append('<p>hello: ' + nameVal + '</p>');
      }
    });
    
    $().ready(function(){
      var myForm = new MyFormView({el: "#my-app"});
    });
    

    The key is passing your existing html as the “el” property when you create your view.

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

Sidebar

Related Questions

is there a way to get a fancybox ( http://fancy.klade.lv/ ) or any other
Is there a fancy way to know you are in the last loop in
Is there a nice and fancy way to check wether the URL of a
Is there a way to use a full server path instead of a url
Is there a way to use those fancy time helper methods in specific time
Is there a good way to show a fancy notification to a user when
I have a logger system which basically is a fancy way of writing my
Is there a way to link every HG commit to a specific bug tracking
I'm just wondering if there is a more efficient way of doing this. I
Can't seem to nail this one down... Is there a programmatic/batchish way to rename

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.