Read the statement by Michael Teeuw here.
read csv-data and put it in an array
-
@Perlchamp open the developers window, ctrl-shift-i on the mirror screen,
select console tab,
put perl in the filter fieldselect the sources tab, navigate the left nav tree,. to modules/perlchamp/perlcmap.js
find the socketnotificationreceived
click the number in the left column, hit f5 (refresh) on keyboard
code should stop at the line you clicked
in the right pane, top there is a blue arrow (resume executing) and a top half of a globe, stop on next )instruction)
-
before looking in dev: i saw the following:
var birth_date_moment = moment(birth_date + now.getYear(),"DD.MMYYYY");
change to DD.MM.YYYY (point between MM and YYYY) ?
-
@Perlchamp no, cause we extract dd.mm from the info provided in file…
oh, the substring should be 0,5, not 0,4
var birth_date = birthday.birth.substring(0,5);
-
error => now.getYear() is not a function
-
@Perlchamp yeh, sorry, rememeber just off the top of my head…
date uses that …
moment its just year()var birth_date_moment = moment(birth_date + now.year(),“DD.MMYYYY”);
-
nothing changed. but now i see the HAVEDATA notification again. could it be, that the Dom-update (from notification) not really goes ?
i mean i saw in the dev, that the birthday-data are right. it was the first entry of this data-string (or jsonObj) …
only the header i can see … -
@Perlchamp put a stop on the statement self.updateDom()
hit refresh, the code should stop there, then mouse over the this.active_birthdays a few lines up,
the debugger will surface the values -
displays the last row of the data-string, though the data from first to last are looped. for me it seems correct there …
-
@Perlchamp ok, put a stop on the 1st line of getDom()
it will be called before you get data, then your notification will be called
and then getdom() again… and u can watch it go thru the code -
yes it does … i changed innerText to innerHTML but nothing.