Jump to content

zohab

Members
  • Posts

    223
  • Joined

  • Last visited

Profile Information

  • Gender
    Male

zohab's Achievements

Advanced Member

Advanced Member (4/5)

0

Reputation

  1. Hi, I am looking for any third party php user registration and login functionality using class Any useful link will be appreciate. Thanks
  2. Hi, My client want to update existing CMS and add new features in CMS. Currently I do not have source code with me. I find out using file extension it is PHP CMS. All urls on website are showing .html instead .php for SEO friendly feature. My question is how to find which CMS is used using view source in browser or URLS or any other way. - Thanks Zohaib.
  3. hi, sorry I got to update in last post code. the problem still exists <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <script language="javascript" type="text/javascript"> function focusMe(id) { document.getElementById(id).focus(); } </script> </head> <body> <ul> <li><a href="#" id="1" onclick="javascript:focusMe('1');">menu1</a></li> <li><a href="#" id="2" onclick="javascript:focusMe('2');">menu2</a></li> <li><a href="#" id="3" onclick="javascript:focusMe('3');">memnu3</a></li> <li><a href="#" id="4" onclick="javascript:focusMe('4');">menu4</a></li> <li><a href="#" id="5" onclick="javascript:focusMe('5');">menu5</a></li> <li><a href="#" id="6" onclick="javascript:focusMe('6');">menu6</a></li> <li><a href="#" id="7" onclick="javascript:focusMe('7');">menu7</a></li> <li><a href="#" id="8" onclick="javascript:focusMe('8');">menu8</a></li> <li><a href="#" id="9" onclick="javascript:focusMe('9');">menu9</a></li> <li><a href="#" id="10" onclick="javascript:focusMe('10');">menu10</a></li> <li><a href="#" id="11" onclick="javascript:focusMe('11');">menu11</a></li> <li><a href="#" id="12" onclick="javascript:focusMe('12');">menu12</a></li> <li><a href="#" id="13" onclick="javascript:focusMe('13');">menu13</a></li> <li><a href="#" id="14" onclick="javascript:focusMe('14');">menu14</a></li> <li><a href="#" id="15" onclick="javascript:focusMe('15');">menu15</a></li> </ul> </body> </html> - Thanks Zohaib
  4. Hi, In my project I am calling ul and li data in Iframe and when I click on link then it move fucus on top instead of selected item. Following is the example of the problem. testFrame.htm <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Tree Frame</title> </head> <body> <table width="50%" border="0"> <tr id="frameRow"> <td> <iframe id="treeFrame" src="treeFrame2.htm" width="50%" height="100%" scrolling="yes" frameborder="0"> </iframe> <td> </tr> </table> </body> </html> testFrame2.htm <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Test Frame2</title> <script language="javascript" type="text/javascript"> function focusMe(id) { documentBygetelementsbyid(id).focus(); } </script> </head> <body> <ul> <li><a href="#" id="1" onclick="javascript:focusMe('1');">menu1</a></li> <li><a href="#" id="2" onclick="javascript:focusMe('2');">menu2</a></li> <li><a href="#" id="3" onclick="javascript:focusMe('3');">memnu3</a></li> <li><a href="#" id="4" onclick="javascript:focusMe('4');">menu4</a></li> <li><a href="#" id="5" onclick="javascript:focusMe('5');">menu5</a></li> <li><a href="#" id="6" onclick="javascript:focusMe('6');">menu6</a></li> <li><a href="#" id="7" onclick="javascript:focusMe('7');">menu7</a></li> <li><a href="#" id="8" onclick="javascript:focusMe('8');">menu8</a></li> <li><a href="#" id="9" onclick="javascript:focusMe('9');">menu9</a></li> <li><a href="#" id="10" onclick="javascript:focusMe('10');">menu10</a></li> <li><a href="#" id="11" onclick="javascript:focusMe('11');">menu11</a></li> <li><a href="#" id="12" onclick="javascript:focusMe('12');">menu12</a></li> <li><a href="#" id="13" onclick="javascript:focusMe('13');">menu13</a></li> <li><a href="#" id="14" onclick="javascript:focusMe('14');">menu14</a></li> <li><a href="#" id="15" onclick="javascript:focusMe('15');">menu15</a></li> </ul> </body> </html> Any solution? - Thanks Zohaib.
  5. Hi, I am developing pagination in JSP. I want to get number of records return by query. In PHP we have function mysql_num_rows which give count of rows return by query. Any idea how to get number of rows in JSP. PreparedStatement stat= conn.prepareStatement("SELECT AC_ID, AC_NAME, AC_PHOTO , AC_DESCRIPTION FROM AC_IMAGE_GALLERY "); rs = stat.executeQuery(); nume = 11; //$nume=mysql_num_rows($sqlResAll); PreparedStatement stat2= conn.prepareStatement("SELECT AC_ID, AC_NAME, AC_PHOTO , AC_DESCRIPTION FROM AC_IMAGE_GALLERY WHERE ROWNUM >"+eu+" AND ROWNUM <"+limit+""); rs2 = stat2.executeQuery(); num_rows = 10; //$num_rows = mysql_num_rows($result); - Thanks Zohaib.
  6. Hi, I have added background image blueGradient.png to tr. It is not showing as expected. attached image. I want to show background image properly and need help in this. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>background Image</title> </head> <body> <table width="100%" border="1"> <tr style=" background-color:#00FFFF; background-image:url(blueGradient.png); background-repeat:repeat;"> <td colspan="2" align="center">Title</td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> </tr> </table> </body> </html> -Thanks Zohaib.
  7. Hi, I got it working but I want to use 1 SQL statement instead of 2. <?php error_reporting(0); mysql_connect("localhost", "username", "password"); mysql_select_db("headermenu"); $sql="SELECT ID,PARENTID,TITLE,HAS_CHILD FROM headermenu ORDER BY ID"; $result = mysql_query($sql); $str = ""; while ($row = mysql_fetch_assoc($result)) { $id = $row["ID"]; $parentid = $row["PARENTID"]; $title = $row["TITLE"]; $has_child = $row["HAS_CHILD"]; $parentid; if($parentid == -1) { if($has_child==0) { $str .= "<li><a href='#'>$title</a></li>"; } if($has_child==1) { $str .= "<li><a href='#'>$title</a>"; $str .= "<ul>"; $sql2="SELECT TITLE FROM headermenu WHERE PARENTID=$id ORDER BY ID "; $result2 = mysql_query($sql2); while ($row2 = mysql_fetch_assoc($result2)) { $title2 = $row2["TITLE"]; $str .= "<li><a href='#'>$title2</a></li>"; } $str .= "</ul>"; $str .= "</li>"; } } } ?> <!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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="robots" content="all" /> <title>jQuery Mega Drop Down Menu Plugin Sample Styling</title> <link href="custom_mega_menu_styles/css/dcmegamenu.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script type='text/javascript' src='custom_mega_menu_styles/js/jquery.hoverIntent.minified.js'></script> <script type='text/javascript' src='custom_mega_menu_styles/js/jquery.dcmegamenu.1.2.js'></script> <script type="text/javascript"> $(document).ready(function($){ $('#mega-menu-tut').dcMegaMenu({ rowItems: '3', speed: 'fast' }); }); </script> <link href="custom_mega_menu_styles/menu.css" rel="stylesheet" type="text/css" /> <style> /* Demo Styles */ .wrap {width: 960px; margin: 0 auto;} </style> </head> <body> <div class="wrap"> <div class="dcjq-mega-menu"> <ul id="mega-menu-tut" class="menu"> <!-- <li><a href="#">Home</a></li> <li><a href="#">About Us</a> <ul> <li><a href="#">Menu Item 1</a></li> <li><a href="#">Menu Item 2</a></li> </ul> </li> <li><a href="#">Services</a></li> <li><a href="#">Contact us</a></li> --> <?php echo $str; ?> </ul> </div> <div style="height: 350px;"></div> </body> </html> /*Table structure for table `headermenu` */ DROP TABLE IF EXISTS `headermenu`; CREATE TABLE `headermenu` ( `id` int(11) NOT NULL AUTO_INCREMENT, `PARENTID` int(11) DEFAULT NULL, `title` varchar(255) DEFAULT NULL, `HAS_CHILD` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1; /*Data for the table `headermenu` */ insert into `headermenu`(`id`,`PARENTID`,`title`,`HAS_CHILD`) values (1,-1,'Home',0),(2,-1,'Menu2',1),(3,2,'Menu2 Child1',0),(4,2,'Menu2 Child2',0),(5,2,'Menu2 Child3',0),(6,2,'Menu2 Child4',0); Any way to get same result using 1 sql statement. - Thanks Zohaib. headermenu.zip
  8. Hi, I am using Oracle database and I have stored images and videos in database. I want to show gallery of images/videos from database. I check following website and working on it.If you guys have any good website with similar example or script. http://www.no-margin...ge-gallery-demo http://html5box.com/...llery/index.php Thanks in advance for time and solution. - Thanks Zohaib.
  9. Hi, I am creating menu using jquery-mega-drop-down-menu-plugin. I am stroing menu items in database and want to create html sturcture dynamically by looping over resultset I have attached working example. Following html need to create dynamically. <li><a href="#">Home</a></li> <li><a href="#">About Us</a> <ul> <li><a href="#">Menu Item 1</a></li> <li><a href="#">Menu Item 2</a></li> </ul> </li> <li><a href="#">Services</a></li> <li><a href="#">Contact us</a></li> Database Table for menu items as follow CREATE TABLE `headermenu` ( `id` int(11) NOT NULL AUTO_INCREMENT, `text` varchar(300) DEFAULT NULL, `parentid` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 Any solution? Thanks for time and efforts in advance. - Thanks Zohaib. menu.zip
  10. Hi, I have created tree using JSON data and JQWidgets. JQWidgets do not provide support for Right to left direction therefore I have develop tree from right to left using css change (jsontree.css) I am problem related moving root node when Expand All and Collapse All. Root node move position when tree collapse or expand. I have attached source code zip file. I want to tree to be fixed when expand or collapse any node of the tree. Any help will be appriciated. - Thanks Zohaib. demo.zip
  11. I am able to make ajax request and perform operations using following code. I want to do same with JQuery and I need example to do make Ajax Call and perform operations using JQuery. index.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[url="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd[/url]"> <html xmlns="[url="http://www.w3.org/1999/xhtml"]http://www.w3.org/1999/xhtml[/url]"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Multiple Response in Ajax</title> <script> var xmlhttp; function getDetails() { xmlhttp=GetXmlHttpObject(); if (xmlhttp==null) { alert ("Your browser does not support Ajax HTTP"); return; } var url="getDetails.php"; xmlhttp.onreadystatechange=getOutput; xmlhttp.open("GET",url,true); //xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); //xmlhttp.setRequestHeader("Content-Type", "text/html;charset=UTF-8"); xmlhttp.send(null); } function getOutput() { if (xmlhttp.readyState==4) { alert(xmlhttp.responseText); //document.frmMultipleResponse.txtNo.value = xmlhttp.responseText; //document.frmMultipleResponse.txtName.value = xmlhttp.responseText; return; } } function GetXmlHttpObject() { if (window.XMLHttpRequest) { return new XMLHttpRequest(); } if (window.ActiveXObject) { return new ActiveXObject("Microsoft.XMLHTTP"); } return null; } </script> </head> <body> <form action="" method="post" name="frmMultipleResponse"> <table width="100%" border="1"> <tr> <td> </td> <td><input type="text" name="txtName" id="txtName" value="" /></td> </tr> <tr> <td> </td> <td><input type="text" name="txtNo" id="txtNo" value="" /></td> </tr> <tr> <td> </td> <td><a href="#" onclick="getDetails();">Get Details</a></td> </tr> </table> </form> getDetails.php <?php echo "Name"; ?> - Thanks Zohaib
  12. Thanks Kicken for reply. I got it working and I am using Oracle Database. - Thanks Zohaib.
  13. Hi, I want to write stored procedure with one select query and 3 update queries. I want to fetch 2 columns from first select query and use them in next 3 update queries. Following is the procedure body. PROCEDURE CHANGEORDER_TABLENAME( P_ID NUMBER, P_OLD_PARENT NUMBER, P_DEST_PARENT NUMBER, P_DEST_POSITION NUMBER , RC1 OUT RCT) AS BEGIN OPEN RC1 FOR SELECT TABLENAME_POSITION,TABLENAME_PARENT FROM AC_TABLENAME; /* SELECT TABLENAME_PARENT, TABLENAME_POSITION FROM AC_TABLENAME WHERE TABLENAME_ID = P_ID UPDATE AC_TABLENAME SET TABLENAME_POSITION = TABLENAME_POSITION - 1 WHERE TABLENAME_POSITION > TABLENAME_POSITION AND TABLENAME_PARENT = TABLENAME_PARENT UPDATE AC_TABLENAME SET TABLENAME_POSITION = TABLENAME_POSITION + 1 WHERE TABLENAME_POSITION => P_DESTPOSITION AND TABLENAME_PARENT = P_DESTPARENT UPDATE AC_TABLENAME SET TABLENAME_POSITION = P_DESTPOSITION WHERE TABLENAME_PARENT => P_DESTPARENT AND ID = P_ID */ END; - Thanks Zohaib.
  14. Problem is solved using information on google search articles regarding frameset
×
×
  • 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.