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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T19:25:01+00:00 2026-05-17T19:25:01+00:00

<body> <!– some html code –> <script src=’some.js’></script> <!– some html code –> </body>

  • 0
<body>
<!-- some html code -->

<script src='some.js'></script>

<!-- some html code -->

</body>

The script some.js loads a form.
when i press update in that form i do not submit the form instead i form a query string and want to send it as
some.js?key=value

Now i need to change the src of the script tag.

If we change the src will it work by again requesting a new content?
Can we use ID for script tag and if so will it be supported by all browsers?

when the new content is received i will clear the old content displayed by this script.
i think it is better to have a div and put all the contents inside that div.
i am rewriting script.js to script.php in my htaccess just show the users that it is just a javascript access or no problem for me if i give a .php.

The above is the basic requirement.

What we need is just to use a script tag which will fetch content from another site and should update here.

you can give suggestions to use this in a standard way which will included updating the content from the x site.

so this is what people tell as cross site scripting, on demand javascript and please add more terminologies if any so that i will update myself.

any kind of response will do good.

  • 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-17T19:25:02+00:00Added an answer on May 17, 2026 at 7:25 pm

    According to W3C (http://www.w3.org/TR/REC-html40/interact/scripts.html#h-18.2.1) ‘script’ tag doesn’t support any standard attributes (which includes ‘id’), however it will work in most browsers. Instead of replacing ‘script’ tag ‘src’ attribute I would suggest removing the tag and adding new one – that’s more reliable. I would strongly suggest reading about JSONP and Cross-Origin Resource Sharing (http://www.w3.org/TR/cors/) – those are standards which should help you achieve what you want.

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

Sidebar

Related Questions

/html/body/form/select/option[@val = '1' and @val = '3'] so that means select the first and
I've inherited a body of Visual C++ source that consists of about a dozen
I have a body of text that I have to scan and each line
My code: body { font-family:Verdana,Arial,Helvetica,sans-serif; } .myfont { font-family:Verdana,Arial,Helvetica,sans-serif; } <body> Hello <select> <option>
In a stylesheet i have: * HTML BODY { padding-right: 0px; padding-left: 0px; padding-bottom:
body = <HTML> & _ <HEAD></HEAD> & _ <BODY> & _ <Font Face=Arial Size=5><B>
/html/body/input[@id='query' and @name='query' and @value='Search Text']
Some body tried Spark View Engine with asp.net mvc 2 preview 2? I have
What is the functional body of a program? I thought it was its functions'
For example: This is main body of my content. I have a footnote link

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.