Question about WordPress standard gallery: load media into specific post via AJAX?

Does anyone know how to load all of a post’s images into the post itself (single php), but via AJAX?

The idea is that no images are loaded, not even thumbnails - there would simply be a link saying “view media”, and when clicked, all the gallery content for that post would load via AJAX. If AJAX is disabled, clicking view media would simply take you to the fist image of the gallery (and behave like it normally does).

The problem I have is two fold: First: how can (or where do) I pull only the images from for that specific post? And second: is there a wp command that generates a link to the first image in the gallery to use as a fallback if there is no javascript?

Well… I found the code for the gallery attachments. Now to trigger it via Ajax…