Advertisement
| 04.29.2008 at 11:34PM PDT, ID: 23364540 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: 113: 114: 115: 116: 117: 118: 119: 120: 121: 122: 123: 124: 125: 126: 127: 128: 129: 130: 131: 132: 133: 134: 135: 136: 137: 138: 139: 140: 141: 142: 143: 144: 145: 146: 147: 148: 149: 150: 151: 152: 153: 154: 155: 156: 157: 158: 159: 160: 161: 162: 163: |
index.php - Main container Page
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-2" />
<link rel="stylesheet" href="scripts/style.css" type="text/css" />
<link rel="stylesheet" href="scripts/jqModal.css" type="text/css" />
<SCRIPT type="text/javaScript" src="scripts/jquery-1.2.3.min.js"></SCRIPT>
<SCRIPT type="text/javaScript" src="scripts/jqModal.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
<!--
$().ready(function() {
// select + reference "triggering element" -- will pass to $.jqm()
var triggers = $('a.ex3bTrigger')[0];
$('#ex3b').jqm({
trigger: triggers,
ajax: 'login.html',
target: 'div.jqmAlertContent',
overlay: 0,
modal:true
});
// Close Button Highlighting. IE doesn't support :hover. Surprise?
if($.browser.msie) {
$('div.jqmAlert .jqmClose')
.hover(
function(){ $(this).addClass('jqmCloseHover'); },
function(){ $(this).removeClass('jqmCloseHover'); });
}
});
//-->
</SCRIPT>
<title>Test</title>
</head>
<body>
<?php
session_start();
?>
<?php
if (!isset($_SESSION['name'])) {
echo "<p id='top_info'><a href='#' class='ex3bTrigger'>LOGIN</a> or REGISTER</p>";
}
else if (isset($_SESSION['name'])){
echo "<p id='top_info'>Welcome " . $_SESSION['name'] ."!, <a href='logout.php'>LOGOUT</a></p>";
}
?>
<div class="jqmAlert" id="ex3b">
<div id="ex3b" class="jqmAlertWindow">
<div class="jqmAlertTitle clearfix">
<h1>LOGIN</h1><a href="#" class="jqmClose"><em>Close</em></a>
</div>
<div class="jqmAlertContent">
<p>Please wait... <img src="images/busy.gif" alt="loading" /></p>
</div>
</div>
</div>
</body>
</html>
--------------------------------
login.html - the html page which is being called inside modal box via ajax
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<SCRIPT type="text/javaScript" src="scripts/jquery-1.2.3.min.js"></SCRIPT>
<script type="text/javascript" src="scripts/jquery.form.js"></script>
<script type="text/javascript">
$("#frm1").submit(function() {
// $("#res").hide();
$("#loading").bind("ajaxSend", function(){
$(this).show();
}).bind("ajaxComplete", function(){
$(this).hide();});
$(this).ajaxSubmit({
target: '#res',
success: function() {
$('#res').fadeIn('slow');
// $("#res").show();
}
});
return false;
// $('#frm1').ajaxForm({
// target: '#res',
// success: function() {
// $('#res').fadeIn('slow');
// }
// });
});
</script>
<style type="text/css">
#login{
font: bold 1.5em Arial, Sans-Serif; margin: 0; padding: 0;
color: #000;
text-align:center;
}
.submit-btn {
width: 54px;
height: 20px;
background: #743 url(images/submit.gif) no-repeat;
outline: none;
}
.submit-btn:hover {
background: #069 url(images/submit.gif) no-repeat 0 -20px;
}
</style>
</HEAD>
<BODY>
<div id="login">
<br>
<form id=frm1 name=frm1 action="login.php" method="POST">
<div id=r1>
<span style="width:50%; float:left; text-align:right;">E-mail Address: </span>
<span style="width:50%; float:right"><input type=text id=uname name=uname value=nkrgupta@gmail.com></span>
<br>
<span style="width:50%; float:left; text-align:right;">Password:</span>
<span style="width:50%; float:right"><input type=password id=pwd name=pwd value=naveen></span>
<br>
<span style="width:100%;"><input type="image" id="fetch" name="fetch" class="submit-btn" src="images/btn.gif" /></span>
<!-- <span style="width:100%;"><input type="submit" value="LOGIN"></span> -->
</div>
</form>
<div id="loading" style="display:none">
<img src="images/8-0.gif"><br>Signing In
</div>
<div id=res>
</div>
</div>
</BODY>
</HTML>
|
Advertisement