HTML5: load image does not allow query tag

Monkey Forums/Monkey Bug Reports/HTML5: load image does not allow query tag

AdamRedwoods(Posted 2013) [#1]
On HTML5 monkey, the image loading filepath does not allow query tags
  timestamp = "?r=201306070"
  image = LoadImage("myimage.png"+timestamp)

it nulls out during the GetMetaData in mojo.

someone had a problem with this and cached images not being correct. i think it would be ok to allow it in HTML5.


marksibly(Posted 2013) [#2]
Not sure what you mean - is this a browser issue, mserver, webhost?


AdamRedwoods(Posted 2013) [#3]
sorry, from here:
http://monkeycoder.co.nz/Community/posts.php?topic=5336

images being cached is a browser problem, which can be resolved by adding the "?r=randomnumber" to the end of the image filename string in the calling code.
http://stackoverflow.com/questions/12665294/reloaded-images-not-added-to-local-cache

in monkey, GetMetaData() does not handle the "?" so it results in null and not loading the image.

i was thinking this is not unusual to encounter this problem, i don't know if just adding the "?r=some_timestamp" to the end of the javascript file will fix the problem, or if it must be the image files. I know Flash has this problem and is solved the the same way, but nothing is needed from the monkey side.