- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 13
- Posts with Upvotes
- 13
- Upvoting Members
- 8
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
50 Posted Topics
![]() | |
Re: Hi. If you use object for source, this object have to have properties **value** and **label** jq('.project').each(function(i, el) { jq(el).data('ui-autocomplete')._renderItem = function(ul, item) { return jq( "<li>" ) .append( "<div class='emp-name'><a style='font-size:18px'>" + item.resources['emp_name'] + "</a><a style='font-size:13px'>" + item.resources['department_name'] + "</a></div><div id='clear'/>" ) .appendTo( ul ); }; this code is … | |
Re: You can to use German or RabbitMQ for send SMS to multi streams. | |
Re: Hi. You can to convert array to JSON and then its will save in databases. | |
Re: Did you analyze your html in a browser after worked script? There are elements "option" with attribute "selected="selected"" Maybe condition "if($loc_con1[$j] == $loc_con[$i])" never don't cause. | |
| |
Re: This variable "$testuser" have to be inside quotes. $sql = "SELECT * FROM accounts WHERE username = '$testuser'"; | |
Re: I use Yii Framework and very happy. Recommend | |
Re: I use NetBeans it is better crossplatform and free solution. NotPad++, gedit and etc. it is text editor. For writting quality code you must use proffesional IDE. | |
Re: Do you want handle mouseover click along a elements to browser? ![]() | |
Re: Why do you for the variable $planbook to assign the variable $i(the row 10)? The variable $i it is integer, and you access the variable $planbook as an array. | |
Re: This query select all numbers avaible from $date1 to date2 SELECT distinct r.roomID FROM Rooms as r INNER JOIN Bookings as b ON r.roomID = b.roomID WHERE ('2013-03-20' NOT BETWEEN dateFrom AND dateTo) AND ('2013-03-21' NOT BETWEEN dateFrom AND dateTo) | |
Re: You will be able to use function pathinfo(), If want get filename without it extension. For example: echo pathinfo("test.jpeg", PATHINFO_FILENAME);// show test | |
Re: If you have to add row in database, you can use following code $dsn = 'mysql:dbname=testdb;host=127.0.0.1'; $user = 'dbuser'; $password = 'dbpass'; try { $dbh = new PDO($dsn, $user, $password); /* Add new row in table FRUIT */ $count = $dbh->exec("INSERT INTO fruit (id,name) VALUES(1,'banana')"); /* Show count add rows … | |
Re: You must will implement php script, which be get data and send on mail. For send mail you may use function mail http://www.php.net/manual/en/function.mail.php or PHPMailer http://phpmailer.worxware.com/index.php?pg=tutorial. | |
Re: There are many tools testing web sites. For example you can use w3af for testing xss attack, sqlmap for testing sql injection. | |
Re: Hi. If you try send data with some domain on to another domain, then this can't do in JavaScript. You must to use JSONP or iframe, for crossdomain requests. | |
Re: try this http://support.google.com/a/bin/answer.py?hl=en&answer=175187&topic=2683886&ctx=topic | |
Re: Maybe you don't have module mod_rewrite, in the apache web server. | |
Re: In 15 line your code, you assigned attribute "on" the function by name "cal_electic_permit"? What is this attribute? Maybe, you keep in mind event "onload". | |
Re: I think what this must not does use only javaScript. It seems to me, here you must use AJAX and PHP. | |
Re: If on your site enabled smtp port, this method send will be work. if no you must use other method of send email. | |
Re: In 3 line you have error. You wrong get current element. now var button = $($(this)).text(); replace on var button = $(this).text(); | |
Re: Hi. You can use jQuery plagin http://jqueryui.com/autocomplete/ it supports work with AJAX. | |
Re: For download files not necessarily to use AJAX. You can this does without use AJAX. <a href="download.php?file_id=123456" target="_blank">Download File</a> download.php //execute any actions //get $file_name by file_id if(file_exists($file_name)) { $ext = pathinfo($file_name, PATHINFO_EXTENSION); switch($ext) { case "pdf": $ctype="application/pdf"; break; case "zip": $ctype="application/zip"; break; case "doc": $ctype="application/msword"; break; case "xls": $ctype="application/vnd.ms-excel"; … | |
Re: In the file login.php to the top file you must will cause function session_start() ![]() | |
Re: For cancel the default event in our a functions use "return false;" in end your the functions. | |
Re: What exactly don't work? Don't execute first condition or a another condition | |
Re: For change a image hover use following code $(document).ready(function(){ $("dsd").hover( function() { $(this).attr("src","on.jpeg"); }, function() { $(this).attr("src","off.jpeg"); } ); }) | |
Re: Try execute this code. You wrong wrote a bracket for function ready() and click() $(document).ready(function() { $('#toggle').click(function() { var value = $('#toggle').attr('value'); $('#paragraph').toggle('fast'); if (value == 'hide'){ $('#toggle').attr('value', 'show'); } else if (value == 'show') { $('#toggle').attr('value', 'hide'); } }); }); | |
Re: What do you undestand the word "find"? If you must to get a element which have class "s2" $(".s2") | |
Re: $(".boxes").attr("checked","checked"); | |
Re: Hi. Good start))). In 5 line you must not show data and must write their in array. $lines[] = array($part[0], $part[1], $part[2]); Then you must in a loop to go through the array and will show all elements. if(!empty($lines)) { echo "<select name=\"$parts\">\n"; foreach($lines as $line) { echo "<option id=\"$id\">$value</option>"; … ![]() | |
Re: I not understand in than your problem. what do you try do? ![]() | |
Re: You have error on first line. Method popover() as a parameter to takes object. You forget to added braces. $("#test").popover({selector:$("#test")}); I hope this help. | |
Re: For get data you can use following script: <head> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> </head> <body> <script> $(document).ready(function() { $("#state").change(function() { var state = $(thia).val();//get select value $.ajax( { url:"get_city.php", data:{s:state}, success:function(responce) { $("#city").html(responce); } }); }); }); </script> <select id="state"> <option id="423">Alabama</option> <option id="424">Alaska</option> <option id="425">Arizona</option> </select> <select id="city"></select> <select id="zip"></select> </body> … | |
Re: you would like add new fields in out your the form or create new form with fields described above? | |
Re: You will can execute sort on the server, during the selection a data of data base | |
![]() | Re: function fetch_all() return array. Try this $(".edit").click(function(event) { var id = $(this).parents("tr").attr("id"); alert(id); //Shows the correct id that matches the DB entry $.ajax({ type: 'POST', url: 'editevent.php', data: "eventID=" + id, dataType: 'json', success: function(data) { if(data.length > 0) { for(key in data) { var tmp = data[key]; console.log(tmp.title); } … |
![]() | Re: You can to use functions uasort(), uksort or usort(). ![]() |
Re: Please show your a code which you used. | |
Re: For mailer, you can use [ PHPMailer](http://phpmailer.worxware.com/index.php?pg=phpmailer) | |
Re: Firstly will check availability rows in the table for which you execute search. | |
Re: What do you want as a result "hello world" or "<?php echo "hello world!"?>"? | |
Re: I think what variable $_GET['id'] empty. Before will execute query, add check if(!empty($_GET[id])) { //execute MySQL query } and to bring this variable to an "int" ((int)$_GET['id']) | |
Re: When you uplode files PHP display any error? | |
Re: You should in your table "book" will add new field type "timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP". And when you will update value this field was to change | |
Re: You could use jqueri plugin [Autocomplete](http://jqueryui.com/autocomplete/). Only you will have to generate values for the avtocomplate manually. |
The End.