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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:41:26+00:00 2026-05-26T03:41:26+00:00

I am doing a VBScript loop and I am attempting to concatenate a string

  • 0

I am doing a VBScript loop and I am attempting to concatenate a string which then would be loaded into the value of a hidden input field.

response.write("<input type='hidden' name='strWPL' value='" & strTest & "'/>")

I have verified that strTest does have data in it and I have verified that strWPL exists after the server is done processing.

However, when I add this code in:

<script language="javascript" type="text/javascript">
    $(window).load(function () {
        alert(document.getElementById('strWPL').value);
    });        
</script>

I get an error stating that strWPL is NULL. However, when I search for the element in Firebug it is there.

The other nugget of info you might need to know is that this screen is in an iFrame. I’m not sure if that makes a difference or not.

What am I doing incorrectly?

  • 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-26T03:41:27+00:00Added an answer on May 26, 2026 at 3:41 am

    You’re looking for Element by ID, but your are only setting the name of the hidden input field, which is not the same. You need to set the id attribute as well. Modify your code to write the input as so, and it should work assuming nothing else is going on.

    response.write("<input type='hidden' name='strWPL' id='strWPL' value='" & strTest & "'/>")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my asp.net page I have a VBScript method which is doing some tasks
I'm doing some revision on an old app that is written in classic ASP/VbScript.
Doing my first SL4 MVVM RIA based application and i ran into the following
When doing an INSERT with a lot of data, ie: INSERT INTO table (mediumtext_field)
When doing case-insensitive comparisons, is it more efficient to convert the string to upper
I have a function in VBScript, what is it doing? how can I simplify
There's probably some nice way of doing it (in Windows XP) in VBScript (or
I need information on JavaScript/VBScript with SQL database. I'm currently doing scripting. My problem
I'm converting something from VBScript to javascript which runs RegExp() on a textbox to
Doing this: s = hello s[0] outputs the character code value 104 . What

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.