Contents contained within <ul></ul> tags are not displayed by the browser - html-lists

i have tried other tags the browser still renders normally but for the . tag pair
then its content is not read by the browser including tags within it
I hope to find a way to fix it and thank you very much <3

Related

How to use IMPORTXML to extract a list of images with/without ALT and title tags?

I have just started using Google sheet's "IMPORTXML" formular to extract webpage meta data for a SEO project.
I am stuck with the following questions:
How to use this formular and XPATH to extract a list of images (on a
page), which don't have an alt tag?
Similar as the question above, how to extract a list of images (on a page), which have an alt tag?
How to extract a list of images (on a page), which do or don't have a
title tag?
Thank you for your help in advance!
Note:
See an example of my question here:
I also referenced the formular on this post http://slesinsky.org/brian/code/xpath_checker.html, which is very old and seemd no longer working.
For the images that have an alt tag, use
=IMPORTXML(A2, "//img/#alt")
For those that don't, use
=IMPORTXML(A2, "//img[not(./#alt)]")
Note that in your example, there is only one img with no alt, so the cell will appear empty, but the selection is made.

Long polling in Django - can't get page to update

I'm new to Django so apologies if this is a really stupid question but I'm trying to get a table to reload database values and when I open the page in a browser it loads ok initially but when it tries to reload nothing appears to happen. When I look in the network section of inspect element I can see repeated 404 page not found errors. I've been searching stack exchange etc. for a few days and I've tried various types of quotes etc. round the url tag but no joy. I'd really appreciate any help anyone can give me on this. I'm using python 3 and django2.
Project level urls.py
project level urls
App Level urls.py
App level urls
App views
App views
HTML
html
Directory Structure
directory structure
Terminal
enter image description here
Thanks in advance
The problem is a simple typo: you have a space between the { and the % in your url tag. This is causing Django to not recognise it as a tag, so the Ajax is using the literal string "{ % url ... }" as the URL which explains the mess you see in the terminal. Remove the space.
(Note, you still might not get the result you expect, since your Ajax function returns a complete HTML page but you are inserting that result inside a div in an existing page; you probably either want to replace the whole page or return a template fragment from your view.)

ABCpdf AddImageHtml two html in one page

Is it possible to add two html string in one page ?
When the pdf is rendered, I can only see the second html. It seems that the first one is overwritten
The only way I have found that you can do this is to add each HTML to its own document then merge both documents together
theDoc.AddImageUrl(Url1);
theDoc2.AddImageUrl(Url2);
theDoc.Append(theDoc2);

loading elements with <object> tag in HtmlUnit

I am loading a webpage which has lots of flash/gif elements embedded within object tags. I can see those elements in my browser, but I cannot reach them in HtmlUnit.
page.getByXPath("//object"); //gives empty result
waitForBackgroundJavaScript() doesn't help either.
Anyone had the same problem before? Thanks!!

Markup tags in product descriptions

I'm trying to use markup tags to link to info pages within the "description" attribute of a product. However, it's not giving me a clean URL path when the description is printed to the page.
Trying:
Contact Us
does not give the expected url. I've confirmed i'm doing this outside of WYSIWYG mode too.
When the text is rendered is returned to the browser as this html:
Contact Us
A resulting click on the link then ends up as:
http://example.com/prod-category/my-product/%7B%7Bstore%20url=
From what I can tell the markup tags aren't designed to be used in this way. Is it possible to extend it so it could work? Otherwise I guess I need to include the actual URL in the description?
Thanks for suggestions.
You can´t use the double-curly syntax because the attributes value is not being processed by magento´s template filter, which does the magic. You can use them e.g. in CMS or email Templates out of the box.

Resources