19 Solved Topics

Remove Filter
Member Avatar for simplypixie

This is driving me insane - I have certain links that are re-written on a site that work perfectly fine (and I am not new to re-wring urls) but have just found that some others aren't and I cannot fathom out why. What works: // The link <a href="/shop/<?php echo …

Member Avatar for simplypixie
0
270
Member Avatar for simplypixie

As usual I am having a love hate relationship with jQuery and Ajax :) I have a PHP file that uploads and resizes and image and stores the data in the database, which on its own works fine. I am now trying to do this through a jquery modal/dialog box …

Member Avatar for simplypixie
0
333
Member Avatar for simplypixie

My brain won't work (in fact it doesn't often when it comes to comparing dates). I need to check whether a date returned from the database is 7 days or less from the current date (can't do it in database as it is used to highlight events where entries close …

Member Avatar for simplypixie
0
141
Member Avatar for simplypixie

I thought I had this sorted on another website but just can't resolve the problem now. I have a link that when clicked shows a form. The form is submitted through jquery ajax, runs the PHP and updates the html in a div on success. All fine. However, after the …

Member Avatar for simplypixie
0
979
Member Avatar for simplypixie

My brain is not functioning! I am trying to select a number of random images (lets say 3) from a selection of folders within one other folder and I am either over complicating the code or am missing something as I can't quite get it to work. What I have …

Member Avatar for simplypixie
0
707
Member Avatar for simplypixie

Rather than write a huge list of properties used by a class I want to know if I can dynamically generate them when needed. I have looked and __set and __get but I am not sure how (or if) I use them with what I am trying to do. The …

Member Avatar for simplypixie
0
5K
Member Avatar for simplypixie

I am not new to OOP I am tidying up a very large site of mine and trying to create a much better structure (more in keeping with the whole point of OOP). I have decided to use mysqli (please don't suggest PDO as I have decided againast it) which …

Member Avatar for simplypixie
0
2K
Member Avatar for simplypixie

I have the following script: $('#login-box .forgot-pwd').click(function (e) { e.preventDefault(); $('#login-box #main-login').hide("fast"); $('#login-box .login-error').hide(); $('#login-box #forgot-login').show("fast"); $('#forgot-username').focus(); $('#login-box .forgot-send').click(function (e) { e.preventDefault(); $.ajax({ url: '/login.php', data: $('#login-box form.get-password').serialize() + '&action=forgot', type: 'POST', success: function(html) { if (html == 'success') { $('#login-box #forgot-login').hide("fast"); $('#login-box').append('<p>Your password has been emailed to you</p>'); $('#mask …

Member Avatar for simplypixie
0
293
Member Avatar for simplypixie

Can anyone help with this please (I have read a lot and cannot see an issue with what I am doing and it is driving me mad). My css for the @font-face is: @font-face { font-family: 'NotethisRegular'; src: url("fonts/Note_this-webfont.eot"); src: url("fonts/Note_this-webfont.ttf") format('truetype'), url("fonts/Note_this-webfont.svg#NotethisRegular") format('svg'); font-weight: normal; font-style: normal; } The …

Member Avatar for simplypixie
0
200
Member Avatar for simplypixie

I am using jQuery and Ajax for some areas of a site and I cannot for the life of me work out how to only submit the Ajax if the form is valid. For normal jQuery validation I am using jquery.validate.min.js like this: $("#po-login-form").validate(); This works fine. I then have …

Member Avatar for simplypixie
0
211
Member Avatar for simplypixie

I hope the title means something, I don't really know how to explain what I am trying to do in a few words. I think better with an example. I have a click event to display an enquiry form on a contact page: [CODE]$("#enquiry-form").hide(); $('.enquiry-form').click(function() { $(this).hide(); $('#enquiry-form').fadeIn( 'slow', function() …

Member Avatar for simplypixie
0
918
Member Avatar for simplypixie

Can anyone see why my variable $unit_price isn't updating (in fact it isn't even being applied to the session variable) in this code (it must be something simple but I can't see it and is driving me mad). I have tested the posted data and it is being sent through …

Member Avatar for simplypixie
0
148
Member Avatar for simplypixie

I always develop sites using CSS but am aware that tables have their place when displaying tabular data, however I can't decide whether to use CSS or a table to display the products on the home page of a re-design I am doing and just want peoples opinions please (note …

Member Avatar for stultuske
0
145
Member Avatar for simplypixie

Sorry if the title of this thread doesn't make sense - I didn't know what to write :) I am using jQuery form validation and one of the rules is to check for a valid url. The field isn't required so am just validating formatting. This all works fine but …

Member Avatar for simplypixie
0
609
Member Avatar for simplypixie

I am not sure if this is a server issue as seemed to be working on my testing server but now live on the clients server this issue is arising. The email is generated from a form which includes a file upload in either word or pdf which is saved …

Member Avatar for simplypixie
0
4K
Member Avatar for simplypixie

I have finally got around to utilising jQuery form validation on a new site I am doing the coding for and even though everything is working exactly as it should I need to move one of the error messages to display below rather than to the right as the other …

Member Avatar for Airshow
0
221
Member Avatar for simplypixie

I have a CRON job set to run every hour (have to do it this often due to scheduling facilities on server) and one of the sections of the script is to check if a closing date for entries into an event is within 2 days and if so to …

Member Avatar for simplypixie
0
425
Member Avatar for simplypixie

Is there any way to respond to reputation comments as I feel it a little unfair that if someone writes a comment about a post I have made that I feel is unjustified that I can't respond to it (unless I am missing something)? Or even a way to dispute …

Member Avatar for Narue
0
200
Member Avatar for simplypixie

I have js on a form page for users to be able to select all check boxes for classes to enter in a dogs show but I want to be able to offer the facility to select just classes on specific days as well and I don't know how to …

Member Avatar for Taywin
0
147

The End.