609 Posted Topics

Member Avatar for nouth

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 …

Member Avatar for pixelsoul
0
155
Member Avatar for Izzah_1

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

Member Avatar for JorgeM
0
690
Member Avatar for o Chantelle o

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 …

Member Avatar for booicu
0
281
Member Avatar for Warrens80

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).

Member Avatar for mike_2000_17
0
468
Member Avatar for ObSys
Member Avatar for fheppell

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'); …

Member Avatar for pixelsoul
0
1K
Member Avatar for GiddyupGilbert

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 …

Member Avatar for pixelsoul
0
112
Member Avatar for lillorme

See if this blog post helps http://flowingmotion.jojordan.org/2012/04/26/how-to-set-up-email-with-wamp/

Member Avatar for pixelsoul
0
55
Member Avatar for <M/>
Member Avatar for pixelsoul
0
186
Member Avatar for strongard63

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.

Member Avatar for strongard63
0
154
Member Avatar for KingGold171

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 …

Member Avatar for KingGold171
0
799
Member Avatar for mukulnimker7751

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 …

Member Avatar for JorgeM
0
269
Member Avatar for programmer76
Re: 2020

> **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 …

Member Avatar for ddanbe
0
383
Member Avatar for Rumaiya
Member Avatar for Nadera

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 …

Member Avatar for AARTI SHRIVAS
0
178
Member Avatar for pixelsoul

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

Member Avatar for Warrens80
0
191
Member Avatar for Warrens80

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 …

Member Avatar for Warrens80
0
156
Member Avatar for gahhon

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/

Member Avatar for gahhon
0
204
Member Avatar for noorullah06
Member Avatar for HiHe

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 …

Member Avatar for pixelsoul
2
181
Member Avatar for erminasrcutp

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'";

Member Avatar for erminasrcutp
0
463
Member Avatar for AARTI SHRIVAS

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.

Member Avatar for AARTI SHRIVAS
0
208
Member Avatar for pakidesigner

> 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 …

Member Avatar for pixelsoul
0
264
Member Avatar for mushahidh

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 …

Member Avatar for pixelsoul
0
4K
Member Avatar for AARTI SHRIVAS

Check this to see if it helps http://www.camcloud.com/blog/how-to-solve-invalid-token-error-with-joomla

Member Avatar for AARTI SHRIVAS
0
297
Member Avatar for turpentyne

You could just send it as a bcc $mail->AddBCC("foo@email.com", "test");

Member Avatar for turpentyne
0
342
Member Avatar for davidjennings

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); …

Member Avatar for davidjennings
0
375
Member Avatar for simplypixie
Member Avatar for trishfernan

@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 …

Member Avatar for LastMitch
0
114
Member Avatar for <M/>

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

Member Avatar for ashutosh08
0
211
Member Avatar for SaroGFX

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 …

Member Avatar for SaroGFX
0
157
Member Avatar for mathewmoozh

You didn't post any error, or any PHP code. We can't do anything without knowing relevant information.

Member Avatar for mathewmoozh
0
144
Member Avatar for <M/>

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 …

Member Avatar for <M/>
0
726
Member Avatar for lewashby

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.

Member Avatar for pixelsoul
0
176
Member Avatar for T4gal

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(); …

Member Avatar for pixelsoul
0
250
Member Avatar for alex.plouff

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.

Member Avatar for AndrisP
0
124
Member Avatar for mmcdonald

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);

Member Avatar for mmcdonald
0
3K
Member Avatar for piers

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', …

Member Avatar for piers
0
289
Member Avatar for Phaelax

I might of been confused with your description here, but is this what you are talking about? http://jsfiddle.net/pixelsoul/T4E2L/

Member Avatar for pixelsoul
0
124
Member Avatar for momonq1990

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 …

Member Avatar for pixelsoul
0
245
Member Avatar for ehpratah
Member Avatar for JorgeM
0
288
Member Avatar for london-G

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.

Member Avatar for <M/>
0
119
Member Avatar for inihan

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.

Member Avatar for inihan
0
198
Member Avatar for davy_yg

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 …

Member Avatar for Banderson
0
187
Member Avatar for irfan hassan

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?

Member Avatar for irfan hassan
0
224
Member Avatar for davy_yg

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 …

Member Avatar for Olagsfark
0
107
Member Avatar for cgull

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; …

Member Avatar for pixelsoul
0
505
Member Avatar for dbalas

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 …

Member Avatar for dowskee
0
4K
Member Avatar for showman13

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 …

Member Avatar for showman13
0
466
Member Avatar for paine_today

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'); }); });

Member Avatar for paine_today
0
285

The End.