Jump to content

gagan22

Members
  • Posts

    15
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

gagan22's Achievements

Member

Member (2/5)

0

Reputation

  1. Hi all, I am in confusion i am using calender in one of my application but calender is working in all other browser but it is not working in IE . In this i am using two calender in form one calender for date from and other calender for date to . What problem can be there . Please help me . It is very urgent for me. I am sending code of calender which i am using <tr> <td> </td> <td align="left"><input name="datefrom" id="datefrom" style="WIDTH: 75px" value="" maxlength="12" readonly="" /> <img src="Images/Calendar.gif" width="22" height="24" onClick="dp_cal.toggle();"></td> <td> </td> <td><input name="dateto" id="dateto" style="WIDTH: 75px" value="" maxlength="12" readonly="" /> <img src="Images/Calendar.gif" width="22" height="24" onClick="dp_cal1.toggle();"></td> </tr> and this is code of function: <script type="text/javascript"> /*You can also place this code in a separate file and link to it like epoch_classes.js*/ var bas_cal,dp_cal,ms_cal,dp_cal1; window.onload = function () { dp_cal = new Epoch('epoch_popup','popup',document.getElementById('datefrom')); dp_cal1 = new Epoch('epoch_popup','popup',document.getElementById('dateto')); }; </script> If you have any other code for calender in which calender application can work. Please suggest me for that. Thanks, Gagan
  2. Hi all, I am in confusion i am using calender in one of my application but calender is working in all other browser but it is not working in IE . In this i am using two calender in form one calender for date from and other calender for date to . What problem can be there . Please help me . It is very urgent for me. I am sending code of calender which i am using <tr> <td> </td> <td align="left"><input name="datefrom" id="datefrom" style="WIDTH: 75px" value="" maxlength="12" readonly="" /> <img src="Images/Calendar.gif" width="22" height="24" onClick="dp_cal.toggle();"></td> <td> </td> <td><input name="dateto" id="dateto" style="WIDTH: 75px" value="" maxlength="12" readonly="" /> <img src="Images/Calendar.gif" width="22" height="24" onClick="dp_cal1.toggle();"></td> </tr> and this is code of function: <script type="text/javascript"> /*You can also place this code in a separate file and link to it like epoch_classes.js*/ var bas_cal,dp_cal,ms_cal,dp_cal1; window.onload = function () { dp_cal = new Epoch('epoch_popup','popup',document.getElementById('datefrom')); dp_cal1 = new Epoch('epoch_popup','popup',document.getElementById('dateto')); }; </script> If you have any other code for calender in which calender application can work. Please suggest me for that. Thanks, Gagan
  3. HI all, I am working on one application using ajax.When i m clicking on a link . I want that page should not be refresh . How i can do this in ajax. I know onclick event i will have to use for this. But how in correct way i should use this. I do not know . So please help me to solve this problem. Like i have two pages contact page and index page. when i am in index page when i click on contact page ,then page will not be refresh and when i will be in contact page and when i will click on index page link then again page will not be refresh . Both of page will fetch some data from database. Please help me to do this work. I am doing such type of work first time. Please help me to provide ajax code for this. If it is not possible then please suggest me. Thanks, gagan
  4. Hi all, I want to upload a notepad text file or ms-word file from my system to a server using php code. Means I want to upload a text file that can be in .txt, .xls or .doc format. That i want to upload from my system and after uploading that file and i want to show that file on that page from which page i am uploading that file. All of this i want to do using PHP code . I know just i should use move_upload function for image uploading . But i do not know in correct function of uploading text files how i should use this function. So Please help me to solve this problem. I will be thankful of that person who will he help me on this topic because i am doing such type of work first time. So please help me. Thanks, Gagan
  5. Hi, thanks for giving so much help,I have used which code is given by you. But that is also not running well. Actually i am getting some problem that my code is not calling our ajax function. What reason can be behind this. Please suggest me. Thanks
  6. thanks for help, ok sir i am sending code of forms which in which i am using this ajax code. Please try to understand my problem. So that i can solve it . But i am not getting value from 2nd select box when i am selecting first select box. Here is the code for index.php file----------- <html> <head> <title>Roshan's Triple Ajax dropdown code</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script language="javascript" type="text/javascript"> function getXMLHTTP() { //fuction to return the xml http object var xmlhttp=false; try{ xmlhttp=new XMLHttpRequest(); } catch(e) { try{ xmlhttp= new ActiveXObject("Microsoft.XMLHTTP"); } catch(e){ try{ xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch(e1){ xmlhttp=false; } } } return xmlhttp; } function getState(countryId) { var strURL="findState.php?country="+countryId; var req = getXMLHTTP(); if (req) { req.onreadystatechange = function() { if (req.readyState == 4) { // only if "OK" if (req.status == 200) { document.getElementById('statediv').innerHTML=req.responseText; } else { alert("There was a problem while using XMLHTTP:\n" + req.statusText); } } } req.open("GET", strURL, true); req.send(null); } } function getCity(countryId,stateId) { var strURL="findCity.php?country="+countryId+"&state="+stateId; var req = getXMLHTTP(); if (req) { req.onreadystatechange = function() { if (req.readyState == 4) { // only if "OK" if (req.status == 200) { document.getElementById('citydiv').innerHTML=req.responseText; } else { alert("There was a problem while using XMLHTTP:\n" + req.statusText); } } } req.open("GET", strURL, true); req.send(null); } } </script> </head> <body> <form method="post" action="" name="form1"> <table width="60%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="150">Country</td> <td width="150"><select name="country" onChange="getState(this.value)"> <option value="">Select Country</option> <option value="1">USA</option> <option value="2">Canada</option> </select></td> </tr> <tr style=""> <td>State<? echo $country=intval($_GET['country']);?></td> <td ><div id="statediv"><select name="state"> <option>Select Country First</option> </select></div></td> </tr> <tr style=""> <td>City</td> <td ><div id="citydiv"><select name="city"> <option>Select State First</option> </select></div></td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> </tr> </table> </form> </body> </html> and this is code for findState.php page........... <?php echo $country=intval($_GET['country']); echo $name=$country; $link = mysql_connect('localhost', 'root', ''); //changet the configuration in required if (!$link) { die('Could not connect: ' . mysql_error()); } else echo "Successfully connected with database."; mysql_select_db('db_ajax'); echo $query="SELECT id,statename FROM state WHERE countryid='$country'"; echo "<br>"; echo $result = mysql_query($query,$link) or die('Query failed. ' . mysql_error()); echo "<select name=state onchange=getCity($country,this.value)>"; echo "<option>Select State </option>"; while($row=mysql_fetch_array($result,MYSQL_BOTH)) { echo "<option value=$row[id]>$row[statename]</option>";} echo "</select>"; ?> here when i am trying to slect country from first select box after selecting first box which country come under the selected country . It is not showing value of state. when i am trying to print the $_GET['country'] it gives 0 why ??? so please help me to solve this . i will be very thankful to you. Thanks
  7. hi all, I am using this ajax code which i am sending here. For making a application for multiple selects. But when i am selecting first drop down box value then it is showing blank value regarding that it should show some value which come under first select box. please help me where is i am wrong . But when i am using this code this is not working very well. Please help me to solve this problem. I will be very thankful to that person. Because last some days i am facing this problem .But i am unable to solve this. Thanks
  8. Hi all, I have made 2 drop down box naming client, project . All values in this drop down box are coming from database. I am fetching all value through sql query. First drop down box is showing all client which are in database. Second drop down box is also showing all project which are in database. For example, I have three client whose name are sam,due,joy. Each of have these have different project . Like sam have project like pro2, pro3 and due have DTL,Pro1 and joy have pro5,CMM,PPC like this. Now problem is that when i select First client from drop down then it should only show that project in second drop down box which project come under first client .But this is showing all projects which exists in database. I do not know what event i will have to use for this . As i think like onchange or onselect event and what type of code i will have to use for these events. So how i can do this in javascript code. Please help me. Thanks, Gagan
  9. Hi all, I have made 2 drop down box naming client, project . All values in this drop down box are coming from database. I am fetching all value through sql query. First drop down box is showing all client which are in database. Second drop down box is also showing all project which are in database. For example, I have three client whose name are sam,due,joy. Each of have these have different project . Like sam have project like pro2, pro3 and due have DTL,Pro1 and joy have pro5,CMM,PPC like this. Now problem is that when i select First client from drop down then it should only show that project in second drop down box which project come under first client .But this is showing all projects which exists in database. I do not know what event i will have to use for this . As i think like onchange or onselect event and what type of code i will have to use for these events. So how i can do this . Please help me. Thanks, Gagan
  10. This is the code for login1.php in which i am using session variable it is working well in IE and mozilla <?php session_start(); include("application.php"); // Include the database connection details require('dbConnection.php'); // Include common functions require('commonFunc.php'); // Include the table handler class require('dbHandler.class.php'); // Init and connect to database $dbObject = new dbHandler(); $dbObject->connect(); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title> Login - Ward, Damon and Posner, P.A.</title> <meta name="keywords" content=""> <meta name="description" content=""> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="/stylie.css" rel="stylesheet" type="text/css"> <LINK href="" type=text/css rel=stylesheet> <LINK href="images/prov.css" type=text/css rel=stylesheet> <style type="text/css"> <!-- .inputbox {border:1px solid #dfdfe3} .inputbox1 {border:1px solid #dfdfe3; height:22px;} .text{font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#333333; text-decoration:none;} .text:hover{font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#000033; text-decoration:underline;} --> </style> <link href="../greybox/gb_styles.css" rel="stylesheet" type="text/css" /> </head> <body> <?php $loginId=$_POST[user]; $password=$_POST[password]; $query = mysql_query("SELECT * FROM user where userid='$loginId' and password='$password'"); if ($row1 = mysql_fetch_array($query, MYSQL_ASSOC)) { $username = $row1['user']; $password = $row1['password']; if ($row1['isAdmin']=="Yes") { $_SESSION["login"]="T"; $_SESSION["admin"]="T"; $_SESSION["userId"]=$loginId; ?> <script type="text/javascript"> <!-- browserName=navigator.appName; browserVer=parseInt(navigator.appVersion); if ((browserName=="Netscape" && browserVer>=7.2) || (browserName=="Microsoft Internet Explorer" && browserVer>=5.5) || (browserName=="Opera" && browserVer>=7.1) || (browserName=="Mozilla Firefox" && browserVer>=1)) version="vernew"; else version="other"; /* Newer browser URL */ if (version=="vernew") window.location="admin.php?login=T"; /* Other browsers URL */ else window.location="admin.php?login=T"; //--> </script> <?php } else { $_SESSION["login"]="T"; $_SESSION["admin"]="F"; $_SESSION["userId"]=$loginId; $_SESSION['user'] = $row1['user']; $_SESSION['recNo'] = $row1['recNo']; $row1['recNo'] =$recNo; $_SESSION['parentCatNo '] = $row1['parentCatNo']; ?> <script type="text/javascript"> <!-- browserName=navigator.appName; browserVer=parseInt(navigator.appVersion); if ((browserName=="Netscape" && browserVer>=7.2) || (browserName=="Microsoft Internet Explorer" && browserVer>=5.5) || (browserName=="Opera" && browserVer>=7.1) || (browserName=="Mozilla Firefox" && browserVer>=1)) version="vernew"; else version="other"; /* Newer browser URL */ if (version=="vernew") window.location="hoa.php?login=T"; /* Other browsers URL */ else window.location="hoa.php?login=T"; //--> </script> <?php } } else { $_SESSION["login"]="F"; ?> <script type="text/javascript"> <!-- browserName=navigator.appName; browserVer=parseInt(navigator.appVersion); if ((browserName=="Netscape" && browserVer>=7.2) || (browserName=="Microsoft Internet Explorer" && browserVer>=5.5) || (browserName=="Opera" && browserVer>=7.1) || (browserName=="Mozilla Firefox" && browserVer>=1)) version="vernew"; else version="other"; /* Newer browser URL */ if (version=="vernew") window.location="myindex.php?login=F"; /* Other browsers URL */ else window.location="myindex.php?login=F"; //--> </script> <?php } ?> </body> </html> and this is code for hoa.php in which when i am login it is showing records in IE very well but not in Firefox <?php session_start(); $a = session_name(); $b = $_SESSION["userId"]; //echo $_SESSION["login"]; //echo $_SESSION["userId"]; if ($_SESSION["login"]!="T") { header('Location: http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']).'/myindex.php'); } header("Cache-control: private"); // Include the database connection details require('dbConnection.php'); // Include common functions require('commonFunc.php'); // Include the table handler class require('dbHandler.class.php'); ########################################################### // Init and connect to database $dbObject = new dbHandler(); $dbObject->connect(); $user = new dbHandler(); $user->connect(); $userId=$_SESSION["userId"]; $recNo=$_SESSION['recNo']; $parentCatNo =$_REQUEST["parentCatNo "]; $query = $user->SelectAndNext("SELECT * FROM user where userid='$userId'"); ?> <link href="/stylie.css" rel="stylesheet" type="text/css"> <link href="../stylie.css" rel="stylesheet" type="text/css"> <LINK href="" type=text/css rel=stylesheet> <LINK href="images/prov.css" type=text/css rel=stylesheet> <!--<SCRIPT language=JavaScript1.2 src="images/stmenu.js" type=text/javascript></SCRIPT>--> <script language="javascript1.2" src="images/stmenu.js" type=text/javascript></script> </head> <body> <? include ("../includes/header.php"); ?> <table width="725" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td colspan="3"><img src="../img/topbeam.gif" width="725" height="21"></td> </tr> <tr> <td width="23" style="background-image:url(../img/lefty.gif)"><img src="../img/lefty.gif" width="23" height="10"></td> <td width="679" bgcolor="#FFFFFF"> <table width="679" border="0" cellspacing="0" cellpadding="0"> <tr><td width="189" valign="top" style="background-image:url(/img/side_nav.jpg)"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><? include ("../includes/leftnav2.php"); ?></td> </tr> </table> </td> <td width="490" align="center" bgcolor="#F2F3E2"><table width="490" border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="Client-Login.jpg" width="490" height="60"></td> </tr> <tr> <td style="background-image:url(../img/content_back.jpg)"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> <td align="center"><br><? $userId=$_SESSION["userId"]; $sqlQuery="SELECT * FROM user where userid='$userId'"; $query1 = mysql_query($sqlQuery); if ($row = mysql_fetch_array($query1, MYSQL_ASSOC)) { echo "<b><FONT COLOR='#40692C'>Welcome : </b> <font color='red'><b>".$row[firstName]."</b></font></FONT>"; ?> <?php }?></td> <td> </td></tr> <tr> <td> <br></td> <td> <fieldset> <legend><FONT SIZE="2" COLOR="#6F7542" face="verdana"><B><I>HomeOwner Details<? echo $a,$b; ?></I></B></FONT></legend><BR> <?php $sqlQuery = "SELECT * FROM user where parentCatNo='".$recNo."' order by firstName ASC"; $selectedRecords = $dbObject->Select($sqlQuery); // If no records selected, print message if (!$selectedRecords) { echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td >There are no selected records</td></tr></table>"; } while($row1=$dbObject->SelectNext()) { // Find total products and subcategories in this category //$other=substr($row1['other'],40); echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>"; echo " <tr><td width='3%'> </td>"; echo "<td width='38%' class='pophead'><strong>HomeOwner Name </strong></td>"; echo "<td width='30%' class='pophead'><strong>Unit # </strong></td>"; echo "<td width='29%'> </td></tr>"; echo "<tr><td class='blurb'> </td>"; echo "<td class='blurb'>".$row1[firstName]."</td>"; echo "<td class='blurb'>$row1[unit_no]</td>"; echo "<td class='blurb'> </td></tr>"; echo "<tr><td height='12' colspan='4'></td></tr>"; echo "<tr><td> </td><td class='pophead'><strong>First Notice </strong></td>"; /* echo "<td class='pophead'><strong>Foreclosure Notice </strong></td>"; */ echo "<td class='pophead'><strong>Claim Lien </strong></td></tr>"; echo "<tr><td> </td>"; echo "<td class='blurb'>$row1[first_notice]</td>"; /* echo "<td class='blurb'>$row1[lien_notice]</td>"; */ echo "<td class='blurb'>$row1[claim_lien]</td>"; echo "</tr><tr><td> </td>"; echo "<td class='pophead' colspan='3'><strong>Foreclosure Notice </strong></td>"; echo "</tr><tr><td> </td>"; echo "<td class='blurb' colspan='3'>$row1[lien_notice]</td>"; echo "</tr><tr>"; echo "<td height='12' colspan='4'></td>"; echo "</tr><tr><td> </td>"; echo "<td class='pophead' colspan='3'><strong>Notes</strong></td>"; /* echo "<td class='pophead'><strong>Other</strong></td>"; */ echo "</tr>"; echo "<tr><td> </td>"; /* echo "<td class='blurb'>$row1[foreclose]</td>"; */ echo "<td class='blurb' colspan='3'>$row1[other] </td></tr>"; echo "<tr><td> </td>"; echo "<td class='blurb'></td>"; echo "<td class='blurb'></td>"; echo "</tr>"; echo "<tr><td height='1' colspan='4' bgcolor='#999999'></td></tr>"; echo "<tr><td height='16' colspan='3' align='right'></td>"; echo "</table>"; } echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td class='blurb' align='right'><a href='logout.php'><font color='red'><b>LOGOUT</b></font></a></td></tr>"; echo "</table>"; ?> </fieldset> </td> </tr> </table></td> </tr> <tr> <td><a href="http://www.warddamon.com/"><img src="content_footer_terms.jpg" alt="return to the homepage of warddamon.com" width="490" height="25" border="0"></a></td> </tr> </table></td> </tr> </table> </td> <td width="23" style="background-image:url(../img/righty.gif)"><img src="../img/righty.gif" width="23" height="10"></td> </tr> <tr> <td colspan="3"><img src="../img/btmbeam.gif" width="725" height="21"></td> </tr> </table> <?php include ("../includes/footer.php"); session_unset(); session_destroy(); $_SESSION = array(); ?> <p> </p> <p> </p> Please help me . How i can show this in Firefox also. It is very urgent . Thanks
  11. Hi All, When I was testing my site in mozilla I got the following issue I am setting session variable in my login1.php file and accessing it in hoa.php file. this process is working properly in IE but in MOZILLA I am not able to get the value of session. and also not able to read the value set in the child window. Please help me out for this issue. Thanks. Regards, Gagan
  12. Hi everyone, I am facing such type of warning is coming in php file.How it can be resolved . I have also used session_start() function in php file as a first line in php code. I have used it just prior to sending output to browser.But still warning is coming. I am so confused about this . Please help me . I am sending what type of warning is coming. But i am unable to solve this warning. Please help me. Such type of warning is coming----------- Warning: session_start() [function.session-start]: open(/tmp/php-ses/sess_7dbaf8a556cd076ed8409da8908ea802, O_RDWR) failed: No such file or directory (2) in /home/vg002web01/12/46/1014612/web/login/user.main.php on line 2 Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/vg002web01/12/46/1014612/web/login/user.main.php:2) in /home/vg002web01/12/46/1014612/web/login/user.main.php on line 2 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/vg002web01/12/46/1014612/web/login/user.main.php:2) in /home/vg002web01/12/46/1014612/web/login/user.main.php on line 2 Warning: Cannot modify header information - headers already sent by (output started at /home/vg002web01/12/46/1014612/web/login/user.main.php:2) in /home/vg002web01/12/46/1014612/web/login/user.main.php on line 9 Thanks, Gagan
  13. Hi everyone, I am facing such type of warning is coming in php file.How it can be resolved . I have also used session_start() function in php file as a first line in php code. I have also used it (session_start() function as a first line in php code ) just prior to sending output to browser.But still warning is coming. I am so confused about this . Please help me . I am sending what type of warning is coming. But i am unable to solve this warning. Please help me. Such type of warning is coming----------- Warning: session_start() [function.session-start]: open(/tmp/php-ses/sess_7dbaf8a556cd076ed8409da8908ea802, O_RDWR) failed: No such file or directory (2) in /home/vg002web01/12/46/1014612/web/login/user.main.php on line 2 Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/vg002web01/12/46/1014612/web/login/user.main.php:2) in /home/vg002web01/12/46/1014612/web/login/user.main.php on line 2 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/vg002web01/12/46/1014612/web/login/user.main.php:2) in /home/vg002web01/12/46/1014612/web/login/user.main.php on line 2 Warning: Cannot modify header information - headers already sent by (output started at /home/vg002web01/12/46/1014612/web/login/user.main.php:2) in /home/vg002web01/12/46/1014612/web/login/user.main.php on line 9 Thanks, Gagan
  14. hi everyone, I have found one warning in my php code. How it can be removed. pls help me . It is very urgent. warning is like this on a php page......... Warning: session_start() [function.session-start]: open(/tmp/php-ses/sess_7dbaf8a556cd076ed8409da8908ea802, O_RDWR) failed: No such file or directory (2) in /home/vg002web01/12/46/1014612/web/login/user.main.php on line 2 Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/vg002web01/12/46/1014612/web/login/user.main.php:2) in /home/vg002web01/12/46/1014612/web/login/user.main.php on line 2 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/vg002web01/12/46/1014612/web/login/user.main.php:2) in /home/vg002web01/12/46/1014612/web/login/user.main.php on line 2 Warning: Cannot modify header information - headers already sent by (output started at /home/vg002web01/12/46/1014612/web/login/user.main.php:2) in /home/vg002web01/12/46/1014612/web/login/user.main.php on line 9 Pls help me. Thanks gagan
  15. HI everyone, I have got one warning in my php file.Please help me i want to remove this warning .How it can be removed ,warning is : Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /home/fhlinux146/r/rydergifts.co.uk/user/htdocs/admin/includes/OrderRender.class.php on line 88 gagan
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.