Loading...
Copy code
Close
Permalink
Close
Please tell us why you want to mark the subject as inappropriate.
(Maximum 200 characters)
Report Inappropriate
Cancel
Private Message
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Cancel
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Update
Cancel
Feedback
Email ID
Subject :
Comments :
Send
Cancel
Private Message
Type the characters you see in the picture below.
Type the characters you see in the picture below.
Attach files
Desktop
Google Docs
Each Attachment size should not exceed 1.0 MB.
Max no of attachments : 3
Loading User Profile...
guest
Response title
This is preview!
Attachments
Publish
Back to edit
Cancel
(
)
Sign In
New to this Portal? Click here to
Sign up
You can also use the below options to login
Login with Facebook
Login with Google
Login with Yahoo
jQuery
Plugins
UI
Meetups
Forum
Blog
About
Donate
All Forums
Recent Posts
Log In
Search
jQuery
Search
jQuery Forum
Screen name:
kai.timofejew
kai.timofejew's Profile
1
Posts
1
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Ideas
Problems
Expanded view
List view
Private Message
Show/Hide a div in IE6/7
[2Replies]
23-Mar-2011 06:30 AM
Forum:
Using jQuery
Hi,
i searched the forum, but did not find a working solution for my problem.
IE6/7 are not hiding the divs in the $(document).ready function. Tried also:
$("#closed").css('display', 'none');
document.getElementById('closed').style.display = 'none';
It is working when i add the ID "closed" to the <li>-Element instead of the <div>-Container.
All other browsers are working fine.
Thanks in advance!
Kai
Code:
$.ajax({
type: "POST",
timeout: 7000,
data: {username: username, password: password},
url: "php/login.php",
success: function(result) {
//console.log("USERID: "); console.log(result);
if (result > 0) {
$("#closed").show();
$("#login").hide();
$("#logoutBtn").show();
} else {
//$("#login").effect("shake", {times:2}, 100);
}
}
});
});
$("#closed").hide();
$("#logoutBtn").hide();
$("#login").hide();
$.post("php/loggedIn.php", {sId: "<?php echo session_id(); ?>"} ,function(logged_in) {
if (logged_in > 0) {
$("#closed").show();
$("#login").hide();
$("#logoutBtn").show();
} else {
//alert("not logged in");
$("#login").show();
}
});
$.ajax({
type: "POST",
timeout: 7000,
url: "php/getNews.php",
success: function(result) {
//console.log("NEWS: ");
var obj = jQuery.parseJSON(result);
//console.log(obj[0]['timestamp']);
for (var i=0; i < obj.length; i++) {
var date = new Date(obj[0]['timestamp']*1000);
$('#content-bgbtm').append('<div class="post"><p class="meta"><span class="date">'+date+'</span> erstellt von <a href="#">'+obj[i]['author']+'</a></p><h2 class="title"><a href="#">'+obj[i]['title']+'</a></h2><div class="entry"><p>'+obj[i]['text']+'</p></div></div>');
}
$('#news').append(obj[0]['text']);
}
});
});
</script>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>BBO-Liga 2011</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="css/style.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<div id="header">
<div id="menu">
<ul>
<li><a href="index.php" class="first">Start</a></li>
<li><a href="../ersteliga">1. Liga</a></li>
<li><a href="../zweiteligaA">2. Liga A</a></li>
<li><a href="../zweiteligaB">2. Liga B</a></li>
<li class="current_page_item"><a href="../zweiteligaC">2. Liga C</a></li>
<div id="logoutBtn"><li><a href="php/logout.php">Logout</a></li></div>
</ul>
</div>
<!-- end #menu -->
<div id="login">
<form method="get" action="">
<fieldset>
<input type="text" name="username" id="username" size="15" placeholder="Benutzer" />
<input type="password" name="password" id="password" size="15" placeholder="Passwort"/>
<input type="submit" value="Login"/>
</fieldset>
</form>
</div>
<!-- end #login -->
</div>
<!-- end #header -->
<!-- end #header-wrapper -->
<div id="logo">
<h1><a href="#">BBO-Liga 2011 </a></h1>
<p><em>eine Veranstaltung von BBO Germany und dem <a href="#"> DBV</a></em></p>
</div>
<hr />
<!-- end #logo -->
<div id="page">
<div id="content">
<div id="content-bgtop">
<div id="content-bgbtm">
</div>
</div>
</div>
<!-- end #content -->
<div id="sidebar">
<ul>
<li>
<h2>Aktuell</h2>
<p id="news"></p>
</li>
<li>
<h2>Öffentlicher Bereich </h2>
<ul>
<li><a href="ranking.php">Tabelle</a></li>
<li><a href="#">Kampfergebnisse</a></li>
<li><a href="#">Anstehende Kämpfe</a></li>
<li><a href="#">Teams</a></li>
</ul>
</li>
<div id="closed">
<li>
<h2>Interner Bereich</h2>
<ul>
<li><a href="events.php">Terminübersicht</a></li>
<li><a href="#">Kampfergebnisse</a></li>
<li><a href="#">Teamdaten</a></li>
<li><a href="#">Spielerdaten</a></li>
<li><a href="#">Accounteinstellungen</a></li>
</ul>
</li>
</div>
</ul>
</div>
<!-- end #sidebar -->
<div style="clear: both;"> </div>
<!-- end #page -->
<div id="footer">
</div>
<!-- end #footer -->
</div>
</body>
</html>
«Prev
Next »
Moderate user : kai.timofejew
Forum