I
I
Ilya2018-05-10 17:55:08
PHP
Ilya, 2018-05-10 17:55:08

How to parse a block that is not on the page initially?

I parsed the search results for the library directory . Now I need to extract from it

Main title:
5af456e6b13f3955011220.jpeg

As usual I look
code in console:
5af45730df398271083127.png

and make a request:
echo $xpathSKBM->query('//div[@class="tabdivs"]/div[@class="adddiv"][1]/p[1]/text()')[0]->nodeValue;

But nothing is output. I understand why.
When the book page is loaded for the first time
drop-out not open:
5af45951c7071032213256.jpeg

She is empty:
5af459cfbc0be223040977.png

It is filled with data after clicking on the pseudo-link "More". It turns out that at the moment of pressing, the seeAdd method is called .
Pseudo link code:
5af45a6645c63341235974.png

Method description in default11.js :
function seeAdd(o, ind, c, rdb)
{
  typework = "";
  addid = "add" + c;
  if (take(addid).n.style.display == 'none')
  {
    if (take(addid).n.innerHTML == '')
    {
      take(addid).n.innerHTML = '<div class="progress small"><div></div></div>';
      var gArr = new Array();
      var querylist = new Array();
      gArr.push(["_action", "execute"]);
      gArr.push(["_html", "stat"]);
      gArr.push(["_errorhtml", "error"]);
      querylist.push(["_service", "STORAGE:opacfindd:FindView"]);
      querylist.push(["_version", "2.3.0"]);
      querylist.push(["session", numsean]);
      var tmp = /\\{1,}/g;
      if (tmp.test(ind))
        ind = ind.replace(tmp, '\\');
      querylist.push(["iddbIds[0]/id", ind]);
      var db = numDB;
      if ((typeof rdb != "undefined") && (rdb != ""))
      {
        db = rdb;
      }
      querylist.push(["iddbIds[0]/iddb", db]);
      var dboutff = outformfull;
      if ((typeof dbs[db] != "undefined") && (typeof dbs[db].outformfull != "undefined"))
        dboutff = dbs[db].outformfull;
      querylist.push(["outform", dboutff]);
      querylist.push(["_history", "yes"]);
      querylist.push(["$iddb", db]);
      if (typeof _localiddb != "undefined")
        gArr.push(["querylist", prepareQueryString(querylist, _iddb)]);
      else
        gArr.push(["querylist", prepareQueryString(querylist, db)]);
      ajaxToRCP(gArr, displayAdd);
    }
  }
  showHide2(o, addid);
}

How to parse the "Title Title"?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question