609 Posted Topics
Re: You could do it with pure Javascript, but jQuery would probably make it easier (in my opinion that is). For example, here is a jQuery script someone wrote to pull the list of files using an ajax call http://jqfaq.com/how-to-load-all-files-from-directory-using-jquery/ The same thing could be done with pure javascript, but why … | |
Re: Additionally, your call to window.location won't work without the event handler. <button type='button' onClick=\"window.location = 'BookingnDisplay.php'\">DELETE BOOK</button> </td> </table>"; $i++; } And like JorgeM said, you need to escape the double qoutes | |
Re: Girls don't feel weird to me....... Sorry, I couldn't resist. Welcome to DaniWeb Chantelle! I had learned PHP through simple trial and error, and I speant countless hours on sites like DaniWeb seeing what others were doing with PHP and being a spectator most of the time. I would see … | |
![]() | Re: I have a hard time eating at Taco Bell, but I am on the west coast where we have some pretty amazing mexican food spots (not that I would ever consider taco bell mexican food). |
Re: something like this? http://jsfiddle.net/2TZWD/ | |
Re: Sure it's possible, but you will need to download the remote file first to your server before you can compress it. A simple way to download a file $url = 'http://fc09.deviantart.net/fs70/f/2010/158/d/c/Code_is_poetry_wallpaper_by_pixelsoul.png'; // url of file to download $file = "downloads/download.jpg"; // download location and file name $src = fopen($url, 'r'); … | |
Re: You have a large number of errors. I went through and indented it to make it lot easier to read. In short, your opening and closing tags are all screwed up, and you have to form actions, and two closing form tags. I'm not sure what that second form action … | |
Re: See if this blog post helps http://flowingmotion.jojordan.org/2012/04/26/how-to-set-up-email-with-wamp/ | |
Re: Sorry to hear that he left. What ever the reason, hope all is well with him. | |
Re: It's either a web server setting or you have a blank index file in the directory. If there is no index file in the directory then it is the web server configuration and it has been configured to not show the files in the directory. | |
Re: JavaScript would be a good choice for a countdown clock because you can actually see it counting down live. You could do it with a mix of JavaScript and PHP if you made ajax calls to a PHP script every 1-2 seconds. jQuery has many plugins and I am sure … | |
Re: If it is just a matter of access control, changing the IIS settings for the website will suffice, and you shouldn't need to make any changes to the actual site. If you want to be able to identify the actual user and do something with that information on the website … | |
Re: > **computers will run at 5.2 GHz speeds in the year 2020 becuase right now computers run at 3.4 GHz ** I only partially agree with this, because it will be sooner than the year 2020 that this will be happening. They already have and AMD processor that runs at … | |
Re: Are you seeing an error from PHP? If so, what is it? Also, you instantiate the class with `$mail` but then you are using `$Mail` on some of the class vars. They should all be using a lowercase "m" `$mail`. You might also want to echo out `$emp_email` somewhere in … | |
Sadly I have never really been many places, and one day I can't wait to travel and see other countries. In the mean time, I have been having fun (and wasting tons of time) playing around with this http://www.mapcrunch.com ![]() | |
![]() | Re: I thought of this meme immediately when I read this https://i.chzbgr.com/maxW500/6975183872/h9828472A/ All jokes aside, being in a great relationship can change someone's world, and being in a horrible relationship can destroy someone's world. Fortunately (and unfortunately), I have experienced both situations. Going through those experiences taught me when I should … ![]() |
Re: Here is a decent article on the subject from Smashing http://coding.smashingmagazine.com/2011/11/24/how-to-set-up-a-print-style-sheet/ | |
Re: I drive and take public transportation depending on different things. I actually enjoy driving and I spend too much time in front of a computer/smart phone as is, so driving is a nice break away from all of that for me. I own a Grand Prix GTP Supercharged, so this … | |
Re: You have an extra single quote in your query $sql = "UPDATE apple SET name=''$newName' WHERE id='$id'"; Should be $sql = "UPDATE apple SET name='$newName' WHERE id='$id'"; | |
Re: It sounds like the plugin or jQuery is not loading, or loading in the wrong order. If the plugin is loaded before jQuery that will be a problem. It is really hard to say for sure though without seeing the site. | |
Re: > Photoshop is one of those things where your graphic design portfolio should speak for itself. I agree with this, being certified in Photoshop is sort of a joke in my opinion. If you can produce amazing stuff in Photoshop, no one company will care if you are certified from … | |
Re: I decided to turn this into a jQuery plugin (mostly from out of boredom). While I was doing that I put in the option to exclude rows from the output. http://jsfiddle.net/pixelsoul/2MBDq/ Pretty easy to use the plugin: $('#exportButton1').tableToExcel({ table: '#testTable', exclude: '.exclude', name: 'testing-export' }); Typically I would use some … | |
Re: Check this to see if it helps http://www.camcloud.com/blog/how-to-solve-invalid-token-error-with-joomla | |
Re: You could just send it as a bcc $mail->AddBCC("foo@email.com", "test"); | |
Re: The problem is, you're trying to set $username to $_POST['Username'] when you first load the page, but $_POST['Username'] has not yet been set. You would want to set $username only if the form had been submitted. Try something like: <?php session_start(); include("includes/utilities.php"); include("includes/functions.php"); if (isset($_POST["Username"])) { $username = $_POST['Username']; var_dump($_POST); … | |
Re: change: return json_encode($urls); to: echo json_encode($urls); | |
Re: @lastmitch JSFiddle is usually pretty safe in my experience, and I use it a lot as well :) @trishfernan You have a couple of problems, but the main one is that you are using ID when you should be using a class. jQuery is picking up the first ID with … ![]() | |
Re: I have been messing around with Laravel and I really like it. Some very big PHP heads are backing it as well. http://laravel.com | |
Re: You could use JSTween to do it, but it is rather simple and could easily be done in jQuery without the use of a plugin. I would do something like this http://jsfiddle.net/pixelsoul/8XNe3/ If you're talking more about pre-loading the images, there are plugins to do that, or you could roll … | |
Re: You didn't post any error, or any PHP code. We can't do anything without knowing relevant information. | |
Re: I am a bit confused by what you're trying to do, even though you explained it here. I guess I don't get the purpose behind the table you are trying to generate. Here is an idea for the headers though. <?php $rows = 100; // define number of rows $cols … | |
Re: The problem is each line in your file is returned by fgets as a string. The strpos stops on the first line/string. If you were to use file_get_contents it returns the file as one string rather. | |
![]() | Re: Put the jQuery and Nivo slider scripts up into the head of the document and test to see if it does the same thing with it there. You might also try putting into a document.ready instead to see if that changes the behavior on how it loads. $(document).ready(function() { $('#slider').nivoSlider(); … |
Re: You should be using one "=" to set a variable. Using double "==" is for comparison, like using in an IF statement to check if x == this. var x = document.getElementById('input1').value; Not really sure what you're doing with `document.write(x);` either. | |
Re: Using mysqli_real_escape_string function requires the database connection as well, like: $formattedResponse = mysqli_real_escape_string($link, $configureEntities); See if using this instead works any better: $formattedResponse = $mysqli->real_escape_string($configureEntities); | |
Re: Try this instead (function( $ ) { $.fn.multiButtonClick = function (settings) { // defaults set var defaults = { area : 'p', speed : 'slow' }; var settings = $.extend({}, defaults, settings); return $(this).click(function() { $(this).parent().nextAll(settings.area).first().toggle(settings.speed); }); }; }( jQuery )); And then you would call it like this $('.sh').multiButtonClick({area:'#nav', … | |
Re: I might of been confused with your description here, but is this what you are talking about? http://jsfiddle.net/pixelsoul/T4E2L/ | |
Re: If you're using the ajaxForm plugin that I think you're using (http://malsup.com/jquery/form/) this has built in validation already. But if you want to use this other validation, you can do use the 'beforeSubmit' callback and then call the other validation plugin. That is if you are indeed using the mentioned … | |
Re: It's pretty simple to do with jQuery http://jsfiddle.net/pixelsoul/cK8RX/ | |
Re: I think it is like anything you do enough times, it becomes second nature after a while and the things that required a lot of thought before, don't as much after the 10,000 time doing it. | |
Re: There is a good article on using Meteor and Meteor Streams to build a real-time chat here http://net.tutsplus.com/tutorials/javascript-ajax/real-time-messaging-for-meteor-with-meteor-streams/ Using socket.io would be a viable option as well. | |
Re: Well, any (good) PHP framework that you would use that is current will most likely be all OOP. If you are trying to get up and started building an application, I would recommend getting started with a framework. If you are trying to learn and you are not concerned about … | |
Re: Joomla is a CMS not a framework, so I am not entirely sure what you're asking here. Joomla is open source software and it is free to download and use. Are you asking about recommendations for a Joomla template? | |
Re: It is a modal window, and my recommendation is [jQuery UI](http://www.jquerui.com) for this. It is the most widely used JavaScript framework, and calling a modal window is super simple. I setup an example once for someone else for calling a login form that uses a modal window here http://jsfiddle.net/pixelsoul/AsyCt/ and … | |
Re: I don't see a problem with it, but I don't usually use toggle though because it acts funky sometimes when I do. You could do something like this instead $('.tracking').on('click', function () { var id = $(this).data('orderid'); if($('#trackingBox' + id).is(':hidden')){ $('#trackingBox' + id).stop().slideDown(); }else{ $('#trackingBox' + id).stop().slideUp(); } return false; … | |
Re: What if someone has javascript disabled on their browser? If it is then no one will see that age check and they will just see the website. Yes, it would be possible to do it with jQuery as jQuery is just a javascript framework. If I was doing this and … | |
Re: I have done it with MSSQL, but it would not be really any different in terms of the PHP that you would need to use to create the CSV file. I would think about the problem in two parts, the first would be getting my query ready to return the … | |
Re: Without seeing the markup my only suggestion, if you're using jquery 1.7 or higher I would try using .on() like this: $(document).ready(function() { $("div.arrow").on('click', function(){ $('div.active_arrow').text('?').removeClass().addClass('arrow').parent().find('div.rss_news_link, div.rss_news_link_odd').height('auto'); $(this).removeClass().addClass('active_arrow'); $(this).parent().find('div.rss_news_link, div.rss_news_link_odd').height(+100); $(this).text("X"); }); $("div.active_arrow").on('click', function(){ $(this).removeClass().addClass('arrow').parent().find('div.rss_news_link, div.rss_news_link_odd').height('auto'); }); }); |
The End.