IPB

Welcome Guest ( Log In | Register )


> Javascript help, i'm an idiot somewhere
woody
post Jul 27 2006, 11:39 PM
Post #1





Group: Moderators
Posts: 2,499
Joined: 23-February 06
From: El Paso Texas
Member No.: 32



i got this toggle JS code that works in IE but not Firefox

java script:
QUOTE
<script language="javascript">
<!--
function toggle(targetId)
{
    target = document.all(targetId);
    if (target.style.display == "none")
      {
        target.style.display="";
      }
    else
      {
        target.style.display="none";
      }
}
//-->
</script>


And when i call it:
QUOTE
<a href="java script:toggle('Name')">Click Here Thingie</a> <br />
  <div id="Name" style="display:none">
    <div alighn="justify">
        <font color="#000000" size="1"><? include('name.php');?></font>
    </div>
  </div>


any ideas?


--------------------
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
Hartmann
post Jul 30 2006, 09:44 PM
Post #2





Group: Admin
Posts: 3,403
Joined: 23-February 06
From: PDX/TXL
Member No.: 35



QUOTE (woody @ Jul 30 2006, 04:13 PM)
javascript is int he head

the php file is just a paragraph of text

Is it being echo'd in the PHP file?

Do a view source in Firefox when you first load the page, and then after you click the button. See if they are the same or different.


--------------------

"There is a level of cowardice lower than that of the conformist: that of the fashionable non-conformist."
Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 11th June 2026 - 01:09 AM
Skin made by: skeedio.com