473,406 Members | 2,378 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

<div> problem

hello friend,i m using this code
Expand|Select|Wrap|Line Numbers
  1. <div id="get" style="visibility:hidden"><? include "time_title.php" ?></div>
in a php page,i want when page load the inclued page time_tiltle.php should not shown,when i click a button,it should appear.but i don't no wat.s the prob. when i open the page it showing the content of timr_title.php,the <div> visibility is hidden.i call a function in a button in which i m setting the visibilty of <div> 'visible'.but it' not working.second problem is that
if i remove the <div> and call it in a table,the page is shown,but the content of page is not shown,if i run this page (time_title.php) alone its working fine.but if include it on another page,it not shown,if u thinking about address prob.,there is no prob. of address,because both page r in same folder.also its not displaying over all element of form,means over textbox,combo box etc,the combo box is showing over it.i think u all r getting what i m trying to say.pls help me
Jul 12 '07 #1
2 2489
henryrhenryr
103 100+
i m using this code<div id="get" style="visibility:hidden"><? include "time_title.php" ?></div>
I think you're better off with style="display:none" to hide the div completely.

in a php page,i want when page load the inclued page time_tiltle.php should not shown,when i click a button,it should appear.but i don't no wat.s the prob. when i open the page it showing the content of timr_title.php,the <div> visibility is hidden.i call a function in a button in which i m setting the visibilty of <div> 'visible'.but it' not working.
Are you trying to use AJAX here? Perhaps Javascript would be a much easier solution. Have your button like this:
Expand|Select|Wrap|Line Numbers
  1. <input type="button" onclick="getElementById("get").style.display='block'" />
  2.  
Then your button will change the display of your div from 'none' to 'block'. If you're trying to use AJAX it's pretty complicated - and this is the PHP forum!

second problem is that
if i remove the <div> and call it in a table,the page is shown,but the content of page is not shown,if i run this page (time_title.php) alone its working fine.but if include it on another page,it not shown,
This must be a typing error. Check your HTML for unclosed tags - I get this all the time. Also if you install the web developer toolbar in firefox you can get a better idea about these errors. Or check the DOM reader in firefox.
also its not displaying over all element of form,means over textbox,combo box etc,the combo box is showing over it
Not sure what this means?

Hope that helps ;) You could post some code and it would be easier to understand the problem!
Jul 12 '07 #2
ak1dnar
1,584 Expert 1GB
hello friend,i m using this code<div id="get" style="visibility:hidden"> in a php page,i want when page load the inclued page time_tiltle.php should not shown,when i click a button,it should appear.but i don't no wat.s the prob. when i open the page it showing the content of timr_title.php,the visibility is hidden.i call a function in a button in which i m setting the visibilty of 'visible'.but it' not working.second problem is that
if i remove the <div> and call it in a table,the page is shown,but the content of page is not shown,if i run this page (time_title.php) alone its working fine.but if include it on another page,it not shown,if u thinking about address prob.,there is no prob. of address,because both page r in same folder.also its not displaying over all element of form,means over textbox,combo box etc,the combo box is showing over it.i think u all r getting what i m trying to say.pls help me

Please Use Clear English to write your question in if possible, try to avoid using abbreviations.
Try Like this.
Thanks.

[PHP]<html>
<head>
<script language="JavaScript" type="text/javascript">
function showhide(show){
var obj = document.getElementById(show).style;
if(!obj.display)
obj.display = 'none';
else
obj.display = '';
}
</script>

</head>
<body>
<input name="btn_show_hide" type="button" value="show/hide" onclick="javascript:showhide('mydiv');" />
<div id="mydiv" style="display:none;">

</body>
</html>[/PHP]

inc.php
[PHP]<?php
echo 'This Line is there at inc.php'
?>[/PHP]
Jul 12 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

13
by: Mikko Ohtamaa | last post by:
From XML specification: The representation of an empty element is either a start-tag immediately followed by an end-tag, or an empty-element tag. (This means that <foo></foo> is equal to...
3
by: Paul Thompson | last post by:
When I put a <div ...> inside a <table> specification, functionality is not there. When I put the <table> inside the <div> everything works. Why is that?
8
by: Daniel Hansen | last post by:
I know this must seem totally basic and stupid, but I cannot find any reference that describes how to control the spacing between <p>...</p> and <div>...</div> blocks. When I implement these on a...
61
by: Toby Austin | last post by:
I'm trying to replace <table>s with <div>s as much as possible. However, I can't figure out how to do the following… <table> <tr> <td valign="top" width="100%">some data that will...
8
by: slim | last post by:
hi again all, i am still working on the website as mentioned in earlier threads and have hit another snag... http://awash.demon.co.uk/index.php http://awash.demon.co.uk/vd.css the php is...
7
by: Dario de Judicibus | last post by:
System: Windows XP SP1 + all latest patches (no SP2) Browser: IE 6.0.2800.1106.xpsp2.040919-1003 Problem: browser does not show, or partially shows, borders and background color of <DIV> as...
3
by: Josef K. | last post by:
Asp.net generates the following html when producing RadioButton lists: <td><input id="RadioButtonList_3" type="radio" name="MyRadioButtonList" value="644"...
28
by: Kent Feiler | last post by:
1. Here's some html from a W3C recommendations page. <P>aaaaaaaaa<DIV>bbbbbbbbb</DIV><DIV>cccccccc<P>dddddddd</DIV> 2.Although I didn't think it would make any difference, I tried it with the...
2
by: Richard Maher | last post by:
Hi, I'm trying to use the Visibility Style attribute for a Div to effectively PopUp a lightweight window with some additional context-sensitive information, when a user mouses over a given...
8
prino
by: prino | last post by:
Hi all, I've written code (in REXX) that takes files in legacy languages (PL/I, COBOL, z/OS assembler, etc) and converts them into HTML in a format similar to what's displayed in the z/OS ISPF...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.