hello i'm new javascript, , i'm try write out code test site , i'm having problems, dow below code , keep getting error , can't figure out why. typeerror: null not object (evaluating 'document.getelementbyid("h3").innerhtml = "<h3>you date!</h3>"') this second method tried using. i'm trying have have version list first 1 had pull .js file , build table, didn't work thought try this, guess happened? not working my code i'm using below. if can amazing. thanks, dakmessier var current = "1.0"; function get_latest(){ document.getelementbyid("bob").innerhtml = current; } if (local != current){ document.getelementbyid("get").innerhtml = "<button><a href=\"bla\">get latest update!</a></button>"; } else if (local == current){ document.getelementbyid("h3").innerhtml = "<h3>you date!</h3>"; } else { document.g...
i have table albums, each album has multiple songs, artworks, , can belong number of series. each of songs can have lyrics table. so far have : routes.php route::get('get_albums', function() { return album::with('songs', 'artworks', 'series')->get(); }); album.php model <?php class album extends eloquent { protected $table = 'albums'; public function songs() { return $this->hasmany('song'); } public function artworks() { return $this->hasmany('artwork'); } public function series() { return $this->hasmany('serie'); } } song.php model <?php class song extends eloquent { public function album() { return $this->belongsto('album'); } public function lyric() { return $this->hasone('lyric'); } } artwork.php model <?php class artwork e...