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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T17:10:53+00:00 2026-05-10T17:10:53+00:00

Here is my question, Would it be possible, knowing that classic asp support server-side

  • 0

Here is my question,

Would it be possible, knowing that classic asp support server-side javascript, to be able to generate ‘server side HTML’ to send to the client like Response.write $(page).html()

Of course it would be great to use jQuery to do it because it’s easy to parse complicated structure and manipulate them.

The only problem I can think of that would prevent me from doing this would be that classic asp exposes only 3 objects (response, server, request) and none of them provide ‘dom building facilities’ like the one jQuery uses all the time. How could we possibly create a blank document object?

Edit : I have to agree with you that it’s definitely not a good idea performance wise. Let me explain why we would need it.

I am actually transforming various JSON feed into complicated, sometimes nested report in HTML. Client side it works really well, even with complicated set and long report.

However, some of our client would like to access the ‘formatted’ report using tools like EXCEL (using webquery which are depleted of any javascript). So in that particular case, I would need to be able to response.write the .html() content of what would be the jQuery work.

  • 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. 2026-05-10T17:10:53+00:00Added an answer on May 10, 2026 at 5:10 pm

    I such situations I use an XML DOM as surrogate for the HTML DOM I would have in a browser.

    jQuery can manipulating an XML DOM however jQuery expects window to be present in its context. It may be possible to fool jQuery (or tweak it) so that it would work server-side but it could be quite fragile.

    Personnally I just use a small library of helper functions that make manipulating an XML DOM a little less painful, For example as:-

    function XmlWrapper(elem) { this.element = elem; } XmlWrapper.prototype.addChild = function(name) {     var elem = this.element.ownerDocument.createElement(name);     return new XmlWrapper(this.element.appendChild(elem)); } 

    Now your page code can do:-

    var dom = Server.CreateObject('MSXML2.DOMDocument.3.0'); dom.loadXML('<html />'); var html = XmlWapper(dom.documentElement);  var head = html.addChild('head'); var body = html.addChild('body');  var tHead = body.addChild('table').addChild('tHead'); 

    As you create code that manipulates the DOM ‘in the raw’ you will see patterns you can re-factor as methods of the XmlWrapper class.

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

Sidebar

Ask A Question

Stats

  • Questions 119k
  • Answers 119k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer What do you mean when you say "appears to"? A… May 11, 2026 at 11:49 pm
  • Editorial Team
    Editorial Team added an answer If you go to the Properties of the CheckEdit and… May 11, 2026 at 11:49 pm
  • Editorial Team
    Editorial Team added an answer It looks like the only way to make the events… May 11, 2026 at 11:49 pm

Related Questions

I am fairly new to ASP.NET and I discovered repeaters recently. Some people use
There are quite a number of modules on CPAN relating to the creation and
I am writing a hex editor program and I was thinking about when a
I would be certain that this question addresses something that would have been brought

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.