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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:10:39+00:00 2026-05-23T13:10:39+00:00

Doubt this is possible as I don’t have a 1 page app, but pretty

  • 0

Doubt this is possible as I don’t have a 1 page app, but pretty much every view I make contains 80% of the same css/javascript, so is there any way I could tell knockoutJS a master view which everything else would just populate?

I doubt it as this is pretty much what a 1 page app is for… best I can hope for is to use something like Combres to combine all my non-changing stuff together into one resource file per type…

== EDIT ==

Adding example of what I mean, I am pretty sure I wouldn’t be able to inject into multiple areas like shown below, but here is an example:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <title>Master Page</title>
        <link type="text/css" rel="stylesheet" href="../Assets/Styles/main.css">
        <link type="text/css" rel="stylesheet" href="../Assets/Styles/Themes/simple.css">
        <link type="text/css" rel="stylesheet" href="../Assets/Styles/jquery.qtip.min.css">
        {Per Page Css Here}
    </head>
    <body>
        {Per Page Content Here}

        <script type="text/javascript" src="../Scripts/Libs/jquery-1.6.1.min.js"></script>
        <script type="text/javascript" src="../Scripts/Libs/jquery-ui-1.8.13.custom.min.js"></script>
        <script type="text/javascript" src="../Scripts/Libs/jquery.validate.min.js"></script>
        <script type="text/javascript" src="../Scripts/Libs/jquery.tmpl.js"></script>
        <script type="text/javascript" src="../Scripts/Libs/jquery.qtip.pack.js"></script>
        <script type="text/javascript" src="../Scripts/Libs/knockout-1.2.1.js"></script>
        <script type="text/javascript" src="../Scripts/Libs/knockout-external-templates.js"></script>
        <script type="text/javascript" src="../Scripts/Libs/cufon-yui.js"></script>

        {Per Page Scripts Here}
    </body>
</html>

<!-- View 1 -->
<link type="text/css" rel="stylesheet" href="../Assets/Styles/Views/view1.css">
<h1>Some Content</h1>
<script type="text/javascript" src="../Scripts/view1.js"></script>

<!-- View 2 -->
<link type="text/css" rel="stylesheet" href="../Assets/Styles/Views/view2.css">
<h1>Some Other Content</h1>
<script type="text/javascript" src="../Scripts/view2.js"></script>

Again, if I cannot do this its not a game breaker, just dont want to have to update every view if I update the jquery version etc…

  • 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-23T13:10:40+00:00Added an answer on May 23, 2026 at 1:10 pm

    You could declare your Javascript code relevant to each view in your views and the common code in your master page. Then call that bit of code from your master page and bind them using ko.applybindings.

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

Sidebar

Related Questions

I doubt this is possible, but here's what I want to do. If my
I don't even know if this is possible and I highly doubt it is,
I doubt this is possible, but just wanted to confirm. I am writing a
I doubt this is possible, and I'm certain to do it in a production
I am doubt if something like this is possible with asp.net and an application
I'm in a bit of a doubt about this subject. Situation: I have conducted
While I do a program, sometimes I've got this doubt. I have been using
I'm aware that questions like this have been asked before and I doubt it's
I'm using socket.io. It works well, but I have a short doubt about the
I got this doubt while writing some code. Is 'bool' a basic datatype defined

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.