+paleolith Posted June 2, 2015 Share Posted June 2, 2015 Is there any way to include HTML text from a separate file into the Long Description when the cache page is served? The reason I'd like to do this is that I have two challenge caches (including Spinal Tap) with leaderboards that I update weekly. I'd like to update this as much as I can, in part so that it happens on time if I'm busy, and in part because I might take some trips in the next couple of years where I would not be available to update the cache pages every Tuesday. I already generate the HTML table for the leaderboard with a GSAK macro. (There are a couple of steps in this part not fully automated yet, but I know how to close those gaps.) But then there's no way to update the Long Description via the API, so I have to actually paste the modified table. If the cache page were on a server I control, I could put the leaderboard in an <iframe src=>, with the src pointing to the file I generate. (Which could perhaps be a public Dropbox file.) Probably there are other ways to get this effect with unrestricted HTML. If I did that, I would not have to modify the description to get the new leaderboard. But GC does not allow <iframe> (for good reasons), nor do I see any other tags in the allowed list which I could use for this purpose. I searched the attributes for allowed tags, and the only one that mentions "src" is <img>. Hence my question: is there any way I can include an external file using only the allowed HTML? Or am I stuck modifying the description if I want to change anything other than an image? Of course I could link to the board as a separate page (on my own web site), but I'd rather keep it in the description. I could make an image of the board and insert that, but that's ugly in several ways. Possibly I could post a new log (a note) with the new board, deleting the previous week's log, but along with other problems, the table is too large for a log. Those are the only alternatives to modifying the cache description that I've come up with. Edward Quote Link to comment
+niraD Posted June 2, 2015 Share Posted June 2, 2015 You could create an image of the leaderboard and display that image inline on the page. You could link to the leaderboard. Other than that, I don't think there are any ways to include or link to the leaderboard. Quote Link to comment
+Lil Devil Posted June 2, 2015 Share Posted June 2, 2015 But GC does not allow <iframe> (for good reasons), nor do I see any other tags in the allowed list which I could use for this purpose. You acknowledge that there are good reasons not to allow iframes and tags like it. But you are special and those reasons don't apply to you. Right. Quote Link to comment
+paleolith Posted June 18, 2015 Author Share Posted June 18, 2015 Sorry it took me so long to come back and read the responses ... I forget that these forums don't always notify me. Thanks to niraD for confirming what I thought. Thanks to Lil Devil for being snarky without understanding the request. We really need more of that here. Edward Quote Link to comment
+dprovan Posted June 18, 2015 Share Posted June 18, 2015 In my area, people tend to link to an external server with a list, both because it's easier to maintain and because they got sick of having to change the HTML every time the GC site was changed. I actually think it works out better, anyway, since it leaves the list out of the way when I'm looking at the page for some other reason. In particular, it's nice to not have to scroll through the entire list just to look at the logs. Quote Link to comment
+paleolith Posted June 25, 2015 Author Share Posted June 25, 2015 In my area, people tend to link to an external server with a list [...] it's nice to not have to scroll through the entire list just to look at the logs. Good points, thanks. But ... my description is so long, there's a lot to scroll past anyway. Oh, but that means maybe I should put some of the obscure rules in a separate place ... I have actually thought of doing that. I already post "initial contents of the cache" in a log and link to it from the description, to avoid the silliness where that stuff remains in the description for years. Hmm, I could put the leaderboard in a public Dropbox folder, so that all I'd have to do is save the file and presto, it's available. Thanks ... I think I'm moving toward an improvement, whatever it is ... I'm sleepy and will see better when I wake up. Edward Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.