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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:10:10+00:00 2026-05-26T20:10:10+00:00

This may be obvious to someone. I am trying to place a textbox on

  • 0

This may be obvious to someone. I am trying to place a textbox on the screen under a specific circumstance and I am using the following code:

document.getElementById('tbDetails').innerHTML = '<textarea name="taComments" style="height:40px;width:333px" class="f1 greytext" onblur="sb_textarea_onblur(this, \'Check Out Rhapsody Tours\'s Video:\')" onfocus="sb_textarea_onfocus(this, \'Check Out Rhapsody Tours\'s Video:\')">Check Out Rhapsody Tours's Video:</textarea>';

as you can see the text has a apostrophe “Check Out Rhapsody Tours’s Video:” which is causing an error. The text is created dynamically in classic asp so there is no way to tell which information will be displayed.

Other code that may help:

function sb_textarea_onfocus(txt,defaultText)
{
     if(txt&&txt.value == defaultText)
     {
         txt.value = '';
         txt.className = 'f1';
     }
}

function sb_textarea_onblur(txt,defaultText)
{
     if(txt&&txt.value == '')
     {
          txt.value = defaultText;
          txt.className = 'f1 greytext';
     }
}

I just need a way to correct the javascript to allow apostrophes… Any idea..

Many thanks in advance,
Paul

  • 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-26T20:10:11+00:00Added an answer on May 26, 2026 at 8:10 pm
    1. You missed one apostrophe in

      Check Out Rhapsody Tours’s Video:

    2. Inside a string you want to escape-escape -> \\\' three backslashes and then apostrophe.

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

Sidebar

Related Questions

I may be missing something obvious here, but how could I rewrite this code
This may seem obvious to most people, but I'm just trying to confirm that
This may be very obvious question, pardon me if so. I have below code
I gave up on this one. May be someone can see something obvious. I
I am a newbie to C++, and this question may seem obvious to a
This may be a repeat of the following unanswered question: Help with bitmap lock
This may be obvious but I can't see to find my way to the
This may be obvious but I can't figure out how to bind a static
I'm using someone else's code to generate an RSA signature used for verification in
This may be obvious... How do I reference XAML elements later in that same

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.