willdotjpg
3 weeks ago
to be clear, i'm trying to optimize my pic-a-day calendar pages so that the individual months can be opened in a div on the main page rather than having to click through multiple pages.
chiisana-wasurenagusa
3 weeks ago
Sometimes I just do in html to keep js file short and simple. Just assign name attribute to your iframe and point the target to anchor. Or in js just update the src att inside of iframe. Works the same.
chiisana-wasurenagusa
3 weeks ago
But for your case, using fetch is the most effective. Make separate htmls for months and load them in separate divs, onclick.
arlita
3 weeks ago
your links to the iframe pages need to have target="div-name" and the div the pages will end up inside needs to have name="div-name"
arlita
3 weeks ago
also you can put this in ur head tag if u want all the links to go to the same div^_^
arlita
3 weeks ago
it ate my example lolll. it's the html tag base with the attribute target="div-name" in it. srry for all the comments gl heh
arlita
3 weeks ago
ok atp im spamming but i cant not say that that is a genius use of iframes i love it.......
heathersaturnia
3 weeks ago
you'll need a main page 'picaday.html', a div container for your calendar(where the iframe will go) and the sidebar menu with your links that will have "target="calendariframe" to the iframe name. exmpl: < iframe name="calendariframe " src="(leave this blank or whatever month when the page loads) " class=" iframe "> < /iframe >
heathersaturnia
3 weeks ago
in your CSS make .iframe and add some a basic width: 100%; height: 100%; border: none; position: absolute; so it fits nicely in the .calender container i hope this explanation is easy enough to understand. :V
willdotjpg
1 month ago
- created the pic-a-day page for august - added new cliques to the collections page - updated the about page
updated pic-a-day calendar pages with the new navigation. thanks to @arlita, @chiisana-wasurenagusa, and @heathersaturnia for the code help!