Not sure of best place for this question...
Are there any built in images within the browser that I can assume
(particularly IE and FF)?
More specifically, I am writing a one file webApp.php application which
needs one tiny little folder icon (e.g.
http://us.geo1.yimg.com/pic.geocitie...gr/folder.gif). Now
I could have a second file of the folder icon, but I would rather only
have one text file to distribute (namely, webApp.php). Of course, it
would be improper to reference a foreign website to get ahold of an
image each time. Therefore, if the browsers have some built in
standard images that I could access, it would be extremely helpful.
Somehow, I doubt it exists but I was bound to ask. So, here is an
alternate plan, failing that. I install the single webApp.php file.
When it is run, it checks for the existence of folder.gif in its own
directory and if it's not there, it creates the file itself (using data
embedded within webApp.php). The problem is that this doesn't cover
write protected directories (and I really want to avoid hitting a
remote server).
Now in Firefox it is possible to specify the actual bytes of an image.
In other words, I don't need to have
src="http://webAppDomain.com/image.jpg" but can do src="data:..."
(sorry if I've messed up on the details here). However, I don't think
IE supports this yet. That is why I've been casting about for an
alternate approach.
Ultimately, I can solve this problem by pointing the image's src to
"http://webAppDomain.com/webApp.php?getImage=folder" and have
webApp.php spit out the image in this case, but a simpler, more
straightforward solution would be preferred.
Thanks for any tips,
Csaba Gabor from Vienna