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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:04:16+00:00 2026-06-09T14:04:16+00:00

This line jq(#description + tourId).html(‘<b>Opis: </b> ‘+ data); works fine in IE, Firefox and

  • 0

This line

jq("#description" + tourId).html('<b>Opis: </b>  '+ data);

works fine in IE, Firefox and Opera.

But this

jq("#images" + tourId).html('<img src=\"img\\gbflag.png\"/>');

works only in IE. Firefox and Opera do not show the image. Do you know why?

This is the rest of my code:

<script type="text/javascript">
var jq = jQuery.noConflict();
function showImages(tourId) {
    jq(function() {
        jq.post("/TourWebSpring/tourImages.html",
            {tourId: tourId},
        function(data) {
            ...
            ...
            jq("#images" + tourId).html('<img src=\"img\\gbflag.png\"/>');
        });
    });
}

function showDetails(tourId) {
    jq(function() {
        jq.post("/TourWebSpring/tourDetail.html",
            {tourId: tourId},
        function(data) {
            ... 
            jq("#description" + tourId).html('<b>Opis: </b>  '+ data);
        });
    });
}

  • 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-09T14:04:18+00:00Added an answer on June 9, 2026 at 2:04 pm

    I believe the problem may be that you are using the wrong slash after the img directory, and I don’t believe you need to escape the double quote since you are defining the string with single quotes. Try:

    jq("#images" + tourId).html('<img src="img/gbflag.png"/>');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This line of code ((Matches)Container.DataItem).MatchID works in C# but in VB.NET, when used in
Is it possible to make this line of code valid? description, content, state, city,
Got this line of code here but its not working. private void Button_Click(object sender,
Firebug is complaining about this line: $(#original-description).text(response['course']['original_description']).hide(); Do I have a syntax error? Looks
I'm starting to use XSLT, and I don't understand this line: <xsl:apply-templates select=file:file/file:description />
I have this line: <input class='submit_img' type=image onclick='ax_update_mood();' src=/images/rainbow/gobuttonbluesmall.png value=Submit alt=Submit></td> ...then I have
I have this line of Javascript jQuery code $.post('/blah', { comment_id: 1, description: ...
This is a simple one :) I have this line which works great: $listing['biz_description']
when I run my javascript in my index.html it works properly but I wanted
This line of code: DateTime dt = DateTime.ParseExact(time, hh:mm, CultureInfo.InvariantCulture); parses a time value

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.