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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:26:00+00:00 2026-06-13T12:26:00+00:00

I would like to create a page for inserting a new car. I am

  • 0

I would like to create a page for inserting a new car. I am using knockout.js and want to use knockout mapping. The problem is that for create, in order to get a structure for the mapping, I need to make an ajax call and return new and empty serialized object. Is there any to prevent this ajax call?
(I also don’t want to write down the whole model structure by myself)

  • 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-13T12:26:01+00:00Added an answer on June 13, 2026 at 12:26 pm

    If you don’t want to create a JavaScript version of your object and you don’t want to do an ajax call to get it, it’s not possible that Knockout magically knows the structure of your object.

    What you could do, is use Fiddler to intercept the AJAX call. Fiddler will then show you the JSON representation of your object. You can copy paste this into your JavaScript so you have a ‘cached’ version of your model for first use. Pass this to Knockout and Knockout will create the object for you.

    Of course the cached version will get out of sync with your server model (the same can happen with a plain JavaScript model). This is just something you have to deal with manually.

    A way around this is to use a T4 template to do some code generation at compile time. Trough reflection you can generate a .js file with the up to date version of the model.

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

Sidebar

Related Questions

I would like to create a login page using ASP.NET. I don't want to
Summary of problem: I would like to create a master page, and from that
I would like to create a page flow that allows the use to use
I would like to create an order form for my ASP.net page (I included
I would like to create a new page in Elgg where I can put
I would like to create a front page for a Wordpress blog that contains
I would like to create a page in panorama in WP7, using wrap panel
I would like to create an edit page for the below form. The problem
I would like create a tabbed mobile page using jQuery Mobile. I have got
I would like to create an HTML page that contains a table, where one

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.