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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:20:35+00:00 2026-06-03T05:20:35+00:00

I will try to summarize the best I can what I need and what

  • 0

I will try to summarize the best I can what I need and what is blocking me to do it.

What I need

I need to append script tags to the head of an html file, BUT during my “build” process. I’m using ant as a automation build tool, and I would like to avoid placing tokens in my HTML file to then replace it with ant, or also I will like to avoid any midway solution using regular expression matching. Waht I would really like to use is plain javascript running through rhino javascript interpreter and exceute it easily from an ant task, and finally add the script tag dinamically.

What is blocking me?

I really don’t know anyway that I can load an html file without issuing a GET or a POST HTTP methods. Cause I’m building my code from source I don’t have it under an HTTP server, so I wish I could find someway to load the HTML DOM into a javascript variable and then write it with the new script tag that I need.

I need all the DOM manipulation features without having a browser that renders the HTML file.

Best!
Demian

  • 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-03T05:20:37+00:00Added an answer on June 3, 2026 at 5:20 am

    From what I understand you would like to have a valid DOM object from an HTML file, as if you were running in a browser, but do it “offline”? e.g. be able to do a jQuery selector on the DOM and edit it?

    • You can always start by looking into an embeded open source browser (http://www.chromium.org/)?
    • But I would look into node.js, see this question Can I use jQuery with Node.js?

    This will allow you to do DOM traversing and modifications without a browser as far as I understand

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

Sidebar

Related Questions

I will try to explain this the best way I can, but feel free
I will try and word this question the best I can, for it is
I will try to make this as clear as I can, but if you
I will try and set the scene as best i can. *lights candle What
I will try to explain as best as I can what I realy want
That might be broad question but I will try to explain best. I will
I will try to explain this the best I can. I created a CMS
I will try to be as clear as possible because I can't get anybody
I will try to be specific if I can - please be patient, first
I will try my best to explain this. I have an application that show

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.