« first day (3451 days earlier)      last day (1504 days later) » 

12:00 AM
Cool - you can create two separate fiddles (jsfiddle.net), add the code there and then send me the URL for each if you want. Or send it through here (not sure how though).
 
user12960916
alright, i'll try the fiddles again
 
user12960916
 
user12960916
this is the first page, working on getting the second one
 
perfect
 
user12960916
 
user12960916
12:10 AM
sorry my computer started lagging
 
user12960916
thats the second page
 
I adjusted what you have for the first page: jsfiddle.net/n6frg50t/3
This is doing what I 'think' you're wanting, but on one page rather than two. If you add values to the input and click edit, they display. If you update, they both get updated.
 
user12960916
i have to have 2 pages otherwise id do this on one as well
 
gotcha. give me a sec, almost dinner time but I think I can use the 2nd fiddle real quick
not seeing editProfiles being actually called, that may be part of it - almost done
Yep - here ya go. jsfiddle.net/nxmgLapo/4
 
user12960916
so the only thing i needed this whole time was just document.getElementById("name").value = people[0]["name"];
document.getElementById("age").value = people[0]["age"];?
 
12:20 AM
The key here is that:

1) You were calling ValidateForm on edit click (at least in the fiddle) but that function didn't exist on the 2nd page. I changed this to instead call editProfiles.

2) The two lines added in previewprofiles() are the ones that "Pre-populate" the input fields. You can see that on page refresh, the input fields have the values in them now.
Yep - on page load basically. There are a lot of other ways you can do this (actual form submit and then grab the GET values, etc) - but for what you have now, this should work.
 
@MohammadrezaZiadzadeh Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
Good luck either way, heading to eat some spaghetti now. :)
 
user12960916
Ok thanks a lot, I'll try it out enjoy your dinner!
 
sure thing
 
12:23 AM
hey @MohammadrezaZiadzadeh
 
@JBis That looks familiar, might've been it
 
user12960916
Hey@MidnightlyCoder not sure if you'll see this but it worked! Thanks a ton.
 
12:50 AM
I need some insight, please....
class Cards {
  // final List<String> question;
  // final List<String> answer;
  // final String indexTitle; this.question,  this.answer,  this.indexTitle,
  final String uid;
  final List<Map<String, dynamic>> classes;

  Cards({ this.uid, this.classes });

}
I have this class, I am trying to create a small app where you can create index cards, first you create the title, then once you click on that card(title) it will take you to another screen where you can create the question and answer
I decided that a list was going to be needed, so i created a list of type map
'classes'
 listMap.add({
                                    "indexTitle": title,
                                    "question": question,
                                    "answer": answer
                                  });
the issue now is trying to add elements to the lists that were created, Now, this only ever runs once(when creating a title)
it's then saved to the db
ISSUE is that i don't know how to access the lists, classes > index > question or answer in order for the user to save them
Because when I save whats above ^
it looks like this
Future settingUserData(List<Map<String, dynamic>> listCard) async {
    return await _collref.document(uid).setData({
      "classes": listCard
      });
  }
How would i add and save elements when I have this list 'classes' ? Not sure how to even get to them....
 
1:18 AM
Glad to hear it @csscoder!
 
 
10 hours later…
11:02 AM
I have an issue with Promise.all; why does the Promise created in the last line never resolve? paste.ofcode.org/bD8WK64wFmgckAQC368iDP
 
11:30 AM
Disregard that
 
 
7 hours later…
6:20 PM
Which site have the World live data ? Like this image?
still not found this site with blck background
 
6:47 PM
Is it possible to know front/back camera was used to take an image from the image's exif data?
 
 
3 hours later…
9:29 PM
@marukobotto depending on device I think so
iOS does save that I think
 

« first day (3451 days earlier)      last day (1504 days later) »