Change text with an image in a code - image

Can somebody help me please, I have this code :
$('childcat').setHTML('Loading...');
I would like to put a image/icon instead of just "Loading..." text...
Can somebody please help ?
Thank you
Cheers
Alex

Just put a snippet of HTML there (it's set*HTML* after all):
$('childcat').setHTML('<img src="/images/loading.png" alt="Loading..."/>');

Related

How to extract text using xpath?

I am very new to Xpath and html. Could anyone please tell me how to use xpath to extract the text ('Nicht verfugbar') shown in the attached pic?
Thanks a lot!
The web page I am talking about here is
https://de.louisvuitton.com/deu-de/produkte/nano-speedy-monogram-010575
You can try with
//span[#class='lv-stock-indicator lv-product-stock-indicator lv-product__stock list-label-m -not-available']/text()
The class of the span is unique, so it can be used for location.
More info:
https://www.guru99.com/xpath-selenium.html

Why I'm not able to see an Image imported using 'importXML' in my spreadsheet?

I have this URL
https://en.wikipedia.org/wiki/Golden_Gate_Bridge
I have this formula
=IMPORTXML(A1,"//*[#id='mw-content-text']/div1/table1/tbody/tr[2]/td/a/img")
I get nothing, not even an error
Could you help to know why is this?
Thanks in advance
To actually import the image into your sheet, you'll need to refer to the src and indicate you want the image imported. So something like:
=image(IMPORTXML(A1,"//td//a[#class='image']/img[contains(#alt,'Bridge')]/#src"))

How to put text on image with summernote

How to put text on image using summernote? or any way to achieve thing like that.
I will appreciate any suggestion.
,
check summernote-image-attribute plugin https://github.com/DiemenDesign/summernote-image-attributes

DataTables HTML Example are the same

can someone give me some help...
all example code on http://www.datatables.net/examples/styling/index.html are the same... I have hard time understanding this... please can someone really need help...
can anyone help me cause I'm new to these... but it gaves me always..
$(document).ready(function() {
$('#example').dataTable();
} );
all link sample on style I see are like these...
You need seriously read information about of Javascript, html, css and everything about of web page structure. The code that always you see refers to the overall structure of the datatable. If you want see the changes between examples simply select the tab css or html next to Javascript.
Sorry for my bad english.
regards.

Flex FormItem label

I need to create a formitem with tis label "heigt <=".
But when I try to do that an error appear.
Do you know how to solve that mistake.
Thanks for helping
just try below statement: refer this for usage of Canonical XML
<mx:FormItem label="heigt <=">

Resources