#1 (permalink)  
Old 08-25-2008, 05:07 AM
Registered User
 
Join Date: Aug 2008
Posts: 5
help with this code

I have the followin code whose output is chopping out the topmost portion of the table with id=home (last table). I am not sure wat is wrong. Please help me thank you.

HTML Code:
<html>
<head>
<title>Admin Form</title>
<script language="javascript">
  function change_it(itemID){
      // Toggle visibility between none and inline
      if ((document.getElementById(itemID).style.display == 'none'))
      {
        document.getElementById(itemID).style.display = 'inline';
      } else {
        document.getElementById(itemID).style.display = 'none';
      }
  }
  
  function close_it(itemID){
    document.getElementById(itemID).style.display = 'none';
  }

</script>

</head>
<body>
<table>
  <h6 id="li">To make changes<a href="#" onClick="change_it('li1') & change_it('li2')"> Click here</a> :</h6>
  <table id="li1" name="login" style="display:none;">
           <tr>
            <td><h4>LOGIN</h4></td>
           </tr>
           <tr>
             <td align="right">Username:</td>
             <td><INPUT NAME='Text' TYPE='textbox'></td>
            </tr>
			<tr>
			  <td>Password:</td>
			  <td><input type="password"></td>
		 	  <td></td>
			</tr>
  </table>
</table>

<input type="Submit" id="li2" value="SUBMIT" onClick="change_it('menu_tbl') & close_it('li1') & close_it('li2') & close_it('li')" style="display:none;">
<!---------------->

		<table id="menu_tbl" cellpadding=5 style="display:none;" size=10>
		<tr>
		<td><a href="#h" onClick="change_it('home')">Home</a></td>
		</tr>
		</table>
<br><br>
	
<!------------>	
<table id="home" style="display:none;>
<tr><td>Make changes to Home page here</td></tr>
<tr><td>Title:<input type="text"></td></tr>
<tr><td>Content:<textarea rows="5" cols="30"></textarea></td>
<td><input type="submit" value="PUBLISH"></td>
<td><input type="button" value="DRAFT"></td></tr>
<tr><td>Insert Image(optional):</td>
<td><input type="file" name="upfile"></td></tr>
</table>
</body>
</head>
</html>
thanks, Evu..
Reply With Quote

  #2 (permalink)  
Old 08-25-2008, 10:06 AM
Deadeye's Avatar
Moderator
 
Join Date: Aug 2005
Location: San Diego, CA
Posts: 274
Send a message via MSN to Deadeye
Everything looks like it works fine to me, you need to click the "Click Here" link and it will show the rest of the Login info.

I'm guessing I'm not 100% sure on what you're trying to accomplish. If I can get a better explanation on what you want to do with this page I should be able to help you better.

Wesley
__________________
Don't forget to rate me A+++++++++++++++++!!!!!111one for the service you have received.
Reply With Quote
  #3 (permalink)  
Old 08-25-2008, 05:56 PM
curtiss's Avatar
Moderator
 
Join Date: May 2003
Posts: 1,438
You are missing a closing quote in your style definition in the following line:
Code:
<table id="home" style="display:none;>
That's probably what's causing your problem.
__________________
I hate Internet Explorer! Anyone with me?
Reply With Quote
  #4 (permalink)  
Old 08-25-2008, 06:29 PM
Deadeye's Avatar
Moderator
 
Join Date: Aug 2005
Location: San Diego, CA
Posts: 274
Send a message via MSN to Deadeye
I cant believe I missed that. I saved the code as html and it ran just fine in IE, didnt try FF... good catch

Wesley
__________________
Don't forget to rate me A+++++++++++++++++!!!!!111one for the service you have received.
Reply With Quote
  #5 (permalink)  
Old 08-26-2008, 06:54 AM
Registered User
 
Join Date: Aug 2008
Posts: 5
Thumbs up thank you

Hmm.. I wonder I spent 3 whole days trying different things.. hehe thanks a lot that surely solved my problem..
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Code, Efficiency and Benchmarking curtiss Programming and Scripting 2 06-02-2008 06:42 PM
How to make the response.write html code on a new line gilgalbiblewhee Programming and Scripting 1 08-05-2007 03:17 PM
Google archives my site in HTML Code - why? Jim Mansfield Programming and Scripting 2 05-03-2007 08:17 AM
HTML Code: Centering Page kobedog84 Programming and Scripting 4 08-11-2006 01:35 PM
Please help. Web code displaying instead of result of code daisywheel Programming and Scripting 3 03-10-2006 07:30 AM


All times are GMT -5. The time now is 04:13 AM.

 
Bitrix
Clicky Web Analytics
CloudContacts
Maxtango


Subscribe to our feed | add to myYahoo!

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
© 1997-2007 HTMLCenter