Retrieves the last element of a javascript array

I want to get the last element of a table that retrieves data from a query in mysql, I take the last element to pass it to a string, and then I pass this data (which only represent a few coordinates) to a map fragment of Google Maps. My question is this: know how to make the table and what they recommend for Google, I do not have much experience in this ajax and js, and I've tried several things for the fix, because i found that with an array.length i could work, but not, or maybe i'm doing it badly. Here I leave my code.

function Load () {
var xmlhttp = new XMLHttpRequest ();
var url = "query.php";
xmlhttp.onreadystatechange = function () {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
var array = JSON.parse (xmlhttp.responseText);
var i;
var out = "";

** THE NETWORK THAT I WANT TO GET -> ** var titulo = array[a]description
var a = array.lenght
document.write (title);

out + = "
"; document.getElementById ("result"). innerHTML = out; } } ("GET", url, true); xmlhttp.send (); }

Optical – What useful information can be drawn from a lens element diagram?

At many photographic camera examination sites, lens section diagrams illustrate the arrangement of the elements of each lens. Here's an example of what Ken Rockwell wrote about the Nikkor 800mm f / 5.6 lens:

Cross section of a Nikkor 800mm FL f / 5.6 lens with highlighted FL and ED elements

Originally hosted on Ken Rockwell's website

I am curious to know what information can be extracted from this type of diagram; right now, I see it as:

  • Practical but superficial indicator of the weight of the lens and the location of the center of gravity (although it also depends on the density of the glass)

  • A useful resource for understanding which elements can cause glare or internal reflection problems (especially when ED or similar elements are highlighted, as above)

  • A useful resource for understanding where light loss occurs between the front element and the sensor or film reel (although it does not help me, I do not see any benefit in treating lenses as anything other than a black box of light loss)

It also seems to be a source of no information sure:

  • Fringing color (because it depends a lot on the design, the process and the quality assurance when making the glass)

  • bokeh

  • Clarity

… to the extent that any wisely designed mass market goal would most likely only have attributes affected by factors that can not be easily represented in a sectional diagram like this.

Is there any additional information that can be reliably obtained by looking at this type of diagram? Are some of my assumptions about the non-information offered by this type of diagram wrong?

8 – Webform dynamic selection options based on the state of another element

Suppose that there are two elements selected with dynamic options (via an option hook, derived from an external resource): A and B. There is also a data source providing a relationship determining the B options to appear when a particular selection is displayed. A is chosen.

The source data for each element in addition to the relationship data source can not be predicted or controlled by Drupal.

For example:

A Options at a particular moment

| name | code |
| Group 1 | 1 |
| Group 2 | 2 |
| Group 3 | 3 |

Options B at a particular moment

| name | code |
| Thing 1 | 1 |
| Thing 2 | 2 |
| Thing 3 | 3 |

Relationships at some point.

| group | thing
| 1 | 1 |
| 1 | 2 |
| 1 | 3 |
| 2 | 1 |
| 2 | 2 |
| 3 | 3 |

So, if group 1 is selected for A, options 1, 2 and 3 should be options for B

If group 2 is selected for A, then things 1 and 2 should be options for B

If group 3 is selected, only thing 3 should be an option for 3.

We are currently implementing this requirement via the basic FAPI and ajax callbacks, but we would like to convert it to use Web forms.

What would be the recommended approach to solve this problem with Webforms? Do not forget that modifying source data is not an option, as it can not be predicted or controlled by our unit and adjustments must be reflected in real time.

The element decreases each of these

The element decreases each of these signs of ripening, to make you more wonderful and younger. When you apply this derma joyelle on your skin, the derma joyelle remains adaptable and smooth. It does not tear or break like the different items available on the market. Many ladies use this article and get convincing and surprising results for their younger, more visible skin. Nevertheless, the FDA did not approve this article because it does not evaluate this type of item. Nevertheless, it provides a joy derma a wide variety of benefits for a terrifying and dull skin. Points to remember Prescription from a doctor Not ideal for women under 30 Not confirmed by the FDA Are there any side effects? No, it does not cause any reaction on our skin. It is an opposite eye cream, prescribed and examined clinically. I recommend using it for a beautiful look and without age spots. This is the best option for plastic surgeries and Botox medications, which are destructive to the skin. Or buy? To buy derma joystick, just go on the internet and visit the official website of this derma joyelle where you can easily place your order in derma joyelle.

Joyelle Derma Cream : Get The Skin of Your Dreams! Younger Look

sharepoint online – Column validation only when the element has a value

I have a list in which I would like to apply that for one of my fields Single line of text, the user must enter a value with exactly 3 characters. However, the field is not mandatory and I only want the validation error to appear when the user has entered text. Here's what I have in the column settings under Column Validation.

= AND (LEN ([My Text Field]) = 3, (NOT (ISBLANK ([My Text Field]))))

And then I have a message in User Message: Please make sure the text field has 3 characters

The problem I encounter is that the error continues to appear when I try to add new items (especially with the help of the editing view of the data sheet) when the field is empty. Is there a problem with my formula?

How does googlebot index javascript mixed links (href & onclick on the same element)

It's been about 5 years since Google indexes javascript and I'm still confused about the details.

I've read here (does Google perform onClick actions?). And then I know that the links created in javascript are perfectly indexed, and that rel = "nofollow" added by javascript does not work because it is too late.

But a more complicated task:
What happens when I create something like this:


that Googlebot will only index the first link, the second link, or both?



will this index be second link?

8 – How to add a single class to each checkbox element

I display checkboxes using the form API in Drupal 8. For reasons of functionality and theming, I need to add a custom class unique to each check box element. Is it possible to add classes to each checkbox element at the wrapper / label / input level?

Please find the API form for the checkbox element. Any help on this will be much appreciated. Thanks in advance

        public function buildForm ($ form array, FormStateInterface $ form_state, $ elements = array ()) {
$ tids = [5,8,7,9,3,1,45];
$ terms = Term :: loadMultiple ($ tids);
foreach ($ terms like $ term) {
$ name = $ term-> getName ();
$ options[$term->id()] = $ term-> getName ();
$ default = [5];

$ form['category_type'] = [
        '#type' => 'checkboxes',
        '#options' => $options,
        '#default_value' => $default,
        '#ajax' => [
            'callback' => '::searchCallback',
            'method' => 'replace',
            'effect' => 'fade',

return $ form;

5th dnd – How can I most clearly write a homebrew element that affects the ground below its radius after the initial explosion that it has created?

In essence, this object releases a burning chemical that inflicts fire damage to living things and ignites them.

  1. in its initial sphere radius
  2. everything under the explosion of the bomb

It then ignites the ground under its explosion, in the same place as this one. It's basically an alchemical incendiary.

I do not know how to write it correctly depending on how I want it to work.

For example:
enter the description of the image here

The Pentagon Paladin is in the radius of the bomb blast. So is Druid Square in its wild form. Star ranger aaracokra and Hexgoblin are not within the radius of the initial explosion. Pentagon and Square are on because they are in the initial explosion. Then the objects fall into the bomb's radius to create a burning circle on the floor. Square is not in the ground circle, but it is still on fire as it was caught in the initial explosion. Hexgoblin was not involved in the initial explosion, but he is still being burned as he was below. The Pentagon Pally would be lit anyway. Star is not burned at all.

I really do not know how to define this area of ​​effect, or at least something similar. Until then I have considered:

  • a cone that must be oriented down to create the effect of expansion / explosion and the circle on the ground. Issue: Can spells and effects written as spells force the direction of a spell effect? I do not think they can.
  • a sphere and a cylinder directly down, both of which use the point of origin of the place where the bomb exploded. A creature can take damage only once per turn. I think it works, but my instinct says something about rotating columns along the axes that change the direction of "straight ahead" could be a problem.
  • an effect sphere, then assigns a circle of the same radius to the ground below.
  • Just finish it and make a cylinder. The problem is that if the cylinder is launched high enough, it will not hit the ground at all, and for something functionally napalm, it does not make much sense to me.

I do not like to ask Exchange Exchange to write my content, but I am a little lost here and I thought that people would appreciate a challenge.

Element Pack – Addon for Elementor Page Builder WordPress Plugin | NulledTeam UnderGround

Best addon for Elementor WordPress Plugin with 34 most essential items that require building your daily web page.
Element Pack has been developed with the most widespread standard of practice in the world and respects W3C validation with the latest versions of CSS3, HTML5 and PHP 7.x to bring you a professional addon for Elementor Plugin, compatible WordPress 4.9.x.
It contains the most commonly used items that help you easily manage your website …

statistics – probability of combination / permutation that an element appears in two groups

To do his exams, a teacher has a database with 2000 different questions and an algorithm to choose n different questions in the database. During the semester, the teacher did two exams, the first with 25 questions, the second with 50 questions. What is the probability that at least one of the questions will appear in both exams?