Type: Posts; User: LukieB
check out daihuws link:
ah, was just about to post that ;)
good thing u figured it out urself.
You can use the jquery .get function to load stuff in ur cache.
this really is a HTML question...
in chrome and safari the image has to be cached before u can use this script to get it's height/width, so u should try to execute this function after the image is printed on the screen.
you are trying to use the variables you got of the ajax call outside your call, this is not possible. And indeed, it could be possible that the function is still busy when ur creating the variable...
it says 'there is' at my browser.. maybe u need to close and re-open ur browser? or reset cookies/buffer..? Nothing wrong with the script now.
EDIT: you should devine a Doctype in the head of ur...
ImageObject.scr = ImageObject.src
not sure about this, but u could try resetting ur browser history (buffer/cookies), i think this has worked for me in the past.
Instead of toggling the class, maybe you can try to set the background immediatly when clicking it, cuz i don't think IE7 checks the classes when changed without refresh..
"I need the photographs to grow/shrink according to the size of the browser window."
You could do something like this, if ur using PHP..
$PictureWidth = 100 / $numberOfPictures.'%';
Did you try without the self. in front of it?
opener.document.getElementsByName('publish').item = "unpublished";