Javascript Help Possibly...?

  • vegancoder
  • Graduate
  • Graduate
  • vegancoder
  • Posts: 176

Post 3+ Months Ago

Here is what i want to do:
I have a file upload form and when the user clicks submit i want the form 2 disappear and a small image or even just text to appear saying loading

I have been able to make the form disappear and still submit the file, but i cant get the text or the image to appear, for some reason the code i use for toggling the visibility of each element wont work if the visibility is set to none altho it should here is the code for the toggle thing.(i didn't code this by the way):

Code: [ Select ]

function toggle( targetId ){
if (document.getElementById){
target = document.getElementById( targetId );
if (target.style.display == "none"){
target.style.display = "";
} else {
target.style.display = "none";
}
}
}
  1. function toggle( targetId ){
  2. if (document.getElementById){
  3. target = document.getElementById( targetId );
  4. if (target.style.display == "none"){
  5. target.style.display = "";
  6. } else {
  7. target.style.display = "none";
  8. }
  9. }
  10. }
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Posts: 5149
  • Loc: SC-USA

Post 3+ Months Ago

//moved to scripting

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 89 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.