Return-Path: X-Original-To: apmail-ofbiz-user-archive@www.apache.org Delivered-To: apmail-ofbiz-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A032979B1 for ; Tue, 27 Dec 2011 03:55:47 +0000 (UTC) Received: (qmail 59171 invoked by uid 500); 27 Dec 2011 03:55:47 -0000 Delivered-To: apmail-ofbiz-user-archive@ofbiz.apache.org Received: (qmail 58985 invoked by uid 500); 27 Dec 2011 03:55:40 -0000 Mailing-List: contact user-help@ofbiz.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ofbiz.apache.org Delivered-To: mailing list user@ofbiz.apache.org Received: (qmail 58976 invoked by uid 99); 27 Dec 2011 03:55:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Dec 2011 03:55:36 +0000 X-ASF-Spam-Status: No, hits=3.0 required=5.0 tests=FORGED_YAHOO_RCVD,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Dec 2011 03:55:31 +0000 Received: from joe.nabble.com ([192.168.236.139]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RfO85-00025K-Op for user@ofbiz.apache.org; Mon, 26 Dec 2011 19:55:09 -0800 Date: Mon, 26 Dec 2011 19:55:09 -0800 (PST) From: rohit To: user@ofbiz.apache.org Message-ID: <1324958109732-4236275.post@n4.nabble.com> Subject: Unable to display images in ajax product jump form. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, I am trying to display product images in the product jump form in the keyword search box of the catalog application. Currently, it displays only the product name, brand name and the product Id. I was trying to display the product image as well. While I could get the image from the database and construct the image URL, the html returned by the jQuery escapes the image tags and displays the URL instead of displaying the image. For eg. after getting the image filepath i added the below code in the jQurey to append the image tag to form the image URL, item.label = ""; The code in the browser instead of showing the image, shows the URL as: http://ofbiz.apache.org/images/ofbiz_logo.gif And when i check the code in google chrome developer tools, the html generated is displayed as below: <img src="http://ofbiz.apache.org/images/ofbiz_logo.gif"> The tags "<" and ">" are being replaced by &alt; and > which causes the image URL to be displayed instead of the image itself. If i replace the &alt; and > tags in the debugger with "<" and ">" respectively, the image gets in the ajax request properly. I will really appreciate if someone can help me prevent the tags "<" and ">" being replaced. Thanks, Rohit ----- saanjhi.com -- View this message in context: http://ofbiz.135035.n4.nabble.com/Unable-to-display-images-in-ajax-product-jump-form-tp4236275p4236275.html Sent from the OFBiz - User mailing list archive at Nabble.com.