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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T05:31:29+00:00 2026-06-06T05:31:29+00:00

Some background I’m currently building a predominantly classic web app (rather than a single

  • 0

Some background

I’m currently building a predominantly classic web app (rather than a single page app) however the majority of my forms are AJAX.

I’m having trouble with binding the UI to my model – at the moment I have to explicitly:-

  1. Tell each button that produces a form where to fetch the form from (it’s delivered, pre-populated as AJAH)
  2. Tell each form which content box it is tied to and must update on successful request

  3. Tell the content box where to go to refresh itself

This is done at the moment by adding these properties to the respective objects that generate them and the url for fetching is constructed by the js.

The question

I’d really like to tie everything together and make it easier (maybe with events or something?) but can someone explain in simple terms the mechanics of how UI bindings are typically implemented?

  • 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-06T05:31:31+00:00Added an answer on June 6, 2026 at 5:31 am

    Ok, so the way I decided to do this was to define a ContentBox.Update() javascript method so every content box on the page can just be told to update itself.

    Then in my Form class on the server side I have a $form->bind($content_box_id); method which adds the binding to an array of bindings in the Form class which is passed to the javascript. Then once the form has been submitted, the array of bindings is looped over and the ContentBox.Update() method is called on each content box that the form is bound to.

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

Sidebar

Related Questions

Some background. Currently have an asp.net web site which is contained on 2 web
Some background I'm currently working on a mobile site so I keep switching user
I'm running some background threads in the GUI. Currently I'm implementing a personal Thread
Some Background info: My web application stores some XML in a Text column of
Some background first. I am currently learning some stuff about monadic parser combinators. While
First Some Background I'm planning out the architecture for a new PHP web application
Some background: Currently, I'm using the Coderay gem (v 0.9.7) in a Rails project
First some background: VB.NET 2005 Application that accesses a MS-SQL back-end, using multiple Web
Some Background We have a team of four developers and we have two web
Some background: For a project I'm working on (building an XML DOM from a

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.