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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:07:02+00:00 2026-06-14T08:07:02+00:00

I have an issue I need to fix on an existing app that I

  • 0

I have an issue I need to fix on an existing app that I didn’t initially write. Here is a snippet of code that doesn’t do what it is intended to do. What it is supposed to do is take the value of the field and upon clicking “Search”, append that to the redirection to pass in the querystring to the destination page:

<form name="frm_someform">
    <input type="text" name="f_date" id="f_date"/>
    <input type="button" value="Search" onclick="parent.location='runreport.asp?date=' + document.frm_someform.elements['f_date'].value); + '"/>
</form>

Now, as you javascript folks can plainly see, the concatenation doesn’t work. I’ve searched high and low for how to properly concatenate, but something isn’t translating correctly (in my head). Note that if I take out the concatenation, the redirection works fine, so there is something with that causing the issue. Yes, of course in the example above, I could simply make the form submit the proper value with a real ‘submit’ button, but I have whittled the code down here for simplicity – it is much more complex than the example I have above.

(*Note, I successfully tested concatenation through other javascript functions, but the possibility exists that the purely inline code must be different)

Thanks in advance,
Beems

  • 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-14T08:07:03+00:00Added an answer on June 14, 2026 at 8:07 am

    Please, try this:

    <form name="frm_someform">
        <input type="text" name="f_date" id="f_date"/>
        <input type="button" value="Search" onclick="parent.location='runreport.asp?date='+ document.getElementById('f_date').value"/>
    </form>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So here's my issue. I have an image that I need to shrink. The
We have an issue where we need to modify keys for users that are
I have issue that is reproduced on g++. VC++ doesn't meet any problems. So
I'm trying to fix an issue, in my application I have this code try
i have an issue i need to fix sooner than later. if i had
I rarely use SQL and have a unique issue I need to solve. I
I have an issue with a my SQL query. I need to execute a
I have searched for this but nobody have the same issue.. Now I need
I have been having an issue with Visual Studio 2010 that is driving me
Ok, I have an issue that is driving me nuts. In certain xaml files

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.