Jump to content


  • Posts

  • Joined

  • Last visited

Contact Methods

  • Website URL
  • ICQ

nackgr's Achievements


Newbie (1/7)



  1. Hello I use this script http://www.queness.com/post/5368/quick-and-easy-jquery-read-more-script-tutorial but when i click the read more and i want to click a link inside text the read more close .. like i was hit the hide what can i do i want to close only when click the hide button?
  2. Hallo I have an xml gateway that when i need a report i ask it with specific xml commands at browser How can i import and compine those commands automatically to a sql database There is any tool ? that will automatic download the xml commands results and import them to sql
  3. A friend helped me to create a call rate calculator like..Call from (choose country from select box )Call to (choose again )Calculate (button)Your call will cost 213€/minnow i want when click the calculate to take info from the sql db and show it how can i do thisform.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-7"><meta http-equiv="Content-Style-Type" content="text/css"><title></title><style>body {background-image:url('bg1.png');background-repeat:no-repeat;font-family:"Verdana", Arial, serif;font-weight: bold; }p {font-family:"Verdana", Arial, serif;} .loading { background:url(ajax-loader.gif) no-repeat 1px; height:28px; width:28px; display:none; position: absolute;left:10px;top:117px;} label.error { width: 250px; display: inline; color: black;position: absolute;left:46px;top:113px;}#pricefrom { filter:alpha(opacity=90);opacity: 0.9;-moz-opacity:0.9;position:absolute;left:97px;}#priceto { filter:alpha(opacity=90);opacity: 0.9;-moz-opacity:0.9;position:absolute;left:97px;} #submit { color: #fff; font-size: 0; width: 45px; height: 19px; border: none; margin: 0; padding: 0; background: url(b1.png) 0 0 no-repeat;position:absolute;left:97px;top:91px;}#results{position: absolute;left:53px;top:113px;} </style></head><body><script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"></script><script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery.validate/1.7/jquery.validate.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#myform").validate({ debug: false, rules: { pricefrom: "required", priceto: "required" }, messages: { pricefrom: "Choose country.", priceto: "Choose country" }, submitHandler: function(form) { $('.results').hide(); $('.loading').show(); // do other stuff for a valid form $.post('process.php', $("#myform").serialize(), function(data) { $('#results').html(data); }); $('.loading').fadeOut('slow'); } }); }); </script><?$dbhost = "localhost";$dbuser = "root";$dbpass = "test";$dbname = "test";$conn = mysql_connect($dbhost,$dbuser,$dbpass) or die('wrong');$db = mysql_select_db($dbname,$conn);?><form name="myform" id="myform" action="" method="POST"> <!-- The Name form field --> <label for="pricefrom" id="pricefrom">Call from: </label> <Br> <select size="1" id="pricefrom" name="pricefrom"> <?$onm = "SELECT country FROM prices ORDER BY country ASC";$onm1 = mysql_query($onm) or die(mysql_error()); echo '<option value="" >Choose</option>'; while($onfix = mysql_fetch_array($onm1)) {echo '<option value="'.$onfix[country].'" >'.$onfix[country].'</option>';}?> </select> <br><!-- The Email form field --> <label for="priceto" id="priceto">Call to: </label> <br><select size="1" id="priceto" name="priceto"> <?$onmb = "SELECT country FROM prices ORDER BY country ASC";$onm1b = mysql_query($onm) or die(mysql_error());while($onfixb = mysql_fetch_array($onm1b)) {if($onfixb[country] == "Greece") { $ch = 'selected';} else { $ch = '';}echo '<option value="'.$onfixb[country].'" '.$ch.'>'.$onfixb[country].'</option>';}?> </select> <br><!-- The Submit button --> <input type="submit" name="submit" value="Go" id="submit"> </form><!-- We will output the results from process.php here --><div class="loading"></div> <div id="results"><div></body></html> process.php <?php$dbhost = "localhost";$dbuser = "root";$dbpass = "test";$dbname = "test";$conn = mysql_connect($dbhost,$dbuser,$dbpass) or die('wrong');$db = mysql_select_db($dbname,$conn);$pricefrom = mysql_real_escape_string($_POST['pricefrom']);$priceto = mysql_real_escape_string($_POST['priceto']); $query = "SELECT out_price,inco FROM prices WHERE country='$pricefrom'"; $result = mysql_db_query($dbname, $query, $conn); $data = mysql_fetch_array($result); $queryb = "SELECT in_price FROM prices WHERE country='$priceto'"; $resultb = mysql_db_query($dbname, $queryb, $conn); $datab = mysql_fetch_array($resultb); $result = $data[out_price] + $datab[in_price]; if($data[inco]) { $inco = '<br>'.$data[inco];} else { $inco = '';}echo 'Make a call: <b>'.$result.'</b>€';echo 'Incoming call for: <b>'.$inco.'</b>€'; ?>
  4. insert another menu simple buttons so dont need any help lock it
  5. Hallo i have too 2 files of a menu that i want to add to an html page .. how can i add them ?menu.xmlfile.swf at my index.html
  6. i make one more bg 800-500 the same ... it streaches :S yes maybe is the jsdo we have anything else way to make background auto strech?
  7. HalloI have a problem why at this webpage the image need to be scroll to the right to see all picture , how can i vanish this bar?thanks.http://jm.pron.gr/
  8. Hallo who can help me solve the validation errors to a webpage that i try to createpage: jp.pron.grValidationhttp://validator.w3.org/check?uri=http%3A%2F%2Fjm.pron.gr%2FThanks very much
  • Create New...