Jump to content

playaz

Members
  • Posts

    55
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

playaz's Achievements

Member

Member (2/5)

0

Reputation

  1. I've done the following - it all works too! I just want to perform a simple alert() if the ajax returns succesfully - here is my code Note - post.php just does a select statement limited to 1 row (this works fine and returns an array to the #responsecontainer) Can anyone explain how i'd change the code to do this:- 1) if ajax returns succesfully pop up an alert box 2) the returned content in the responsecontainer is always string but the post.php returns an array (i'm guessing some json maybe required?) How can I get this returned content as an array and not a string (as i'll need for another function for creating a jquery dialog box. <script> $(document).ready(function() { var refreshId = setInterval(function(){ $.ajax({ type: "POST", url: "post.php", data: "", success: function(html){ $("#responsecontainer").html(html); } }); }, 1000 ); }); </script>
  2. Hi guys, I've not done too much AJAX in the past so feel free to correct me if I am wrong on any occasion.. I want to poll an events database table every 60 seconds, and run an mysql query to grab all upcoming events, an upcoming event should pop up to screen ideally in a modal window. Can anyone suggest how I could do this or point me in the right direction - thanks in advance.
  3. Cheers guys! I've not fixed it but opening this in another editor does show some strange results! So hopefully I can go through each php file and fix this without too much fuss.. Thanks again :-)
  4. I think your right it does sound like the file format, i've tried Unix/Windows & Mac still no avail - i'll try it in another editor and see if i get any joy.. i hate taking on other people's project.. :-(
  5. Hi Guys, I'm using phpDesigner and the file looks like this.. <?php require('./conf.php'); // all the other code in the script... ?> As you can see the file itself looks fine, but for some reason it is reading the php & require as one like this 'phprequire' - so for some reason it doesnt see the line break when outputted in the php.. Can you suggest why this is happening & way to remedy this problem (never come across this issue before) Thanks
  6. Hi guys, Having to take over an ex-employees project and have moved it onto one of your PHP5 servers - I instantly get the following error :- Fatal error: Call to undefined function phpdefine() in /home/cclients/public_html/chart/conf.php on line 1 For some reason the opening php tag and the define() tag in the conf.php file are 'merging' to look like on tag - however upon viewing the code their is definately spacing between these - it would seem that PHP isn't recognising the line break between but have no idea why this has happened? Can anyone suggest how to get PHP to see it as two words rather than phpdefine() Thanks in advance.. pulling my hair out at the minute lol
  7. Cheers rlelek.. will have another look at that 2mrw when I get some free time - much appreciated P.S I always learn from you forum guys hence the reason I'm here lol :-) Thanks again P.P.S isedeasy, your input also is appreciated too :-)
  8. Hi guys, I know how to use sessions ok, I just wondered what is the best/simplest way to automatically destroy a session after a set time if there is no user activity on a page (eg like how banking sites log you out etc..) Thanks in advance.
  9. Hi guys, Im trying to help out a friend with one of his sites that uses Google Translator to translate text from English to other languages. It works fine in the most recent browsers, however has some strange issues with Internet Explorer 6. When I visit the page it loads the Google Translation box as expected, however if I try to click one of the links at the top of the page it then doesn't show the Google Translator box until I manually refresh the page (or press F5 on the keyboard) - can anyone suggest why this would be happening and if so of a potential fix? This is the site - http://www.broadlandsands.co.uk Thanks in advance,
  10. cheers watsmyname - i scan read it without reading it properly must be my selective memory! thanks!
  11. Hi Guys, I am trying to replicate the following image attached into a CSS menu, so as the image suggest the button will have a red highlighted background when the mouse goes over the link.. Can anyone suggest to me how I go about doing this? Or have a similar tutorial that will do this similar rounded CSS type menu? Thanks in advance [attachment deleted by admin]
  12. Thanks for the quick reply 'whatsmyname' I will give your code a whirl :-)
  13. Hi guys, This is probably really simple but I am not sure how it is done. Basically, I have a page (page 1) that has a standard text link that when the user clicks the link opens this in a new pop-up window (page 2) - in the new window when the user clicks a link it should close the pop-up and load this new URL in initial page (page 1). So in simple terms, page 1 is always there, while page 2 closes itself when a link from within page 2 is clicked.. Any ideas or code on how I can achieve this? Thanks in advance
  14. Ok I must have not had enough sleep.. Just in case someone has this problem simply use the PHP function urlencode($_GET['param']) Works fine now! :-)
  15. Hi guys, This is probably really simple and just thought i'd ask one of the experts on here.. I have a value from a querystring like this.. site.com?year=9%2F2005%2B When I echo this it formats it like this.. 9/2005 How can I stop it formatting the string so it looks exactly as it does in the querystring URL? Thanks in advance
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.