Jump to content

Recommended Posts

Hey

I have used the document.all function as part of an image gallery i am developing. Althought it works fine in IE and Mozilla, i have discovered it is not supported by Safar. What is the best method to correct this problem. Here is my code, I'm a javascript newbie...so i basically don't have a clue what to do.

As you can see it is combined with PHP so ignore all the extra slashes, i pretty much just want to fix it for Safari

"<a href ='#' onClick=";
"\"document.the_image.src=";
"'$large_dir$photos_large[$i]' ; document.all.ref.innerHTML='Ref: $photos_large[$i]'";
"\">";


<div id = \"ref\">Ref: $photos_large[1]</div>";
Link to comment
https://forums.phpfreaks.com/topic/10275-documentall-in-safari/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.