Read the statement by Michael Teeuw here.
read csv-data and put it in an array
-
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.
-
@Perlchamp ok, inner HTML is when u are inserting html… my code inserts text…
did u have a position: in config definition for module?
{ module: "SampleModule", disabled: false, position: 'middle', config: { days_forward:4, } } -
yes, top, but i will post it, moment:
{ module: 'perlchamp', position: 'top', header: "Geburtstage", config: { language: "de" } -
@Perlchamp i changed mine to top and all ok, did u walk thru the code in getdom? (hit next over and over)
put a stop on return wrapper and look at that object…
i have multiple names on the same date in my csv file
and also allowed look ahead a few days… so had entries for today and tuesday 5/5 -
i clicked on the linenumber and the blue sign went to the last line, though i couldn’t hit line for line …
-
@Perlchamp next to the blue arrow (to the right) is a half circle with arrow at the end and dot under… that is the “Next” instruction button
-
return wrapper. all entries undefined, aha.
-
@Perlchamp on entry, check that the this.active_birthdays is still good
-
i cannot place the blue sign on line 118 (cklicking on that number => run to last line …)
-
see the circle net to the blue arrow
i don’t know where your 118 line is…
but go down or up -
it loops from first entry to last. if the last entry is displayed, it loops once and than going to self.updateDom … for me the correct way …
-
@Perlchamp in the getDom()
does it do the innerText statement? then the addChild()
to get any text on the screen, it has to do every statement at least once
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
