Jump to content

RichardRotterdam

Members
  • Posts

    1,509
  • Joined

  • Last visited

Everything posted by RichardRotterdam

  1. json is a js object not an array What does your json.php file look like?
  2. This might help http://jqueryui.com/demos/droppable/
  3. There is prob more then one way to solve this but here is an idea. Why not put all the values in one array and use array_unique to remove the duplicate values. That way you have all possible values stored in 1 array. Then do a check for each possible value if it exists in all the arrays you want to check
  4. is this function part of a class? And what error do you receive?
  5. In the link you can see how the str_replace function actually works From reading how the str_replace function works you will see that the first arguement is the search param which means it will search for %%Title%% and will replace it with the replacement. $this->aws["Title"] This is actually your title and not %%title%%
  6. these functions might help you array_unique explode implode preg_match
  7. It's because facebook chat is using a push technique as opposite to pulling data periodically. Try and lookup "Comet" or "ajax push" to find more info.
  8. CV is right the ready function waits till the DOM is ready and not for the whole page to load $.ready() != window.onload Try something like the following : // wait for the while page to be loaded $(window).load(function(){ // your image script });
  9. If you mean using: <input name="somefield[]" /> <input name="somefield[]" /> instead of <input name="somefield1" /> <input name="somefield2" /> Then no it doesn't matter
  10. Why not customize or write your own flash video player to do this. To accomplish what you describe isn't possible with php alone you'll need some clientside scripting.
  11. Try a search for the word "tooltip" you can either use css only or use javascript.
  12. Does that mean the language folder is: /home/jeanie/public_html/design/language
  13. What does the code look like? And whats on 4618 that line?
  14. If the error occurs in: /home/jeanie/public_html/design/inc/prerequisites.php and you want to include: /home/jeanie/public_html/languages/english.lang.php Your include line should be: include "../../languages/english.lang.php"; It's actually stranger your original line works on your localhost.
  15. What exactly do you mean with a default country? A default to show on your page, a default value for you session? Or perhaps something else?
  16. Showing nothing at all in the url and using hyper links is not possible with PHP alone. Is it required to have these names in hyperlinks specific? Is there perhaps another purpose for this page with clickable names other then putting values in an array?
  17. Since it has been moved to javascript have you considered javascript for this at all?
  18. You're selecting the select element text instead of the option element. try this: <script type="text/javascript"> jQuery (document).ready (function (){ jQuery ('#selwebsiteid').change (function () { var selectedText = jQuery('#selwebsiteid option:selected').text(); console.log(selectedText); }); }); </script>
  19. Could be a number of things why your script didn't work. Are you running the same versions of PHP on your dev as production? And can you turn on errors? maybe this works: <?php date_default_timezone_set('Australia/Sydney'); echo date('H:i'); // 24 hour format echo "<br />"; echo date('h:i a'); // 12 hour format
  20. There are examples on how to use these functions in the manual try those
  21. What have you tried? Can you show the code?
  22. on that webserver where you store the images, can't you use a script that will output the image names?
  23. maybe these functions are what you are looking for: preg_replace str_replace
  24. Do you want want to display an image where you know the name of or do need to fetch the image names from a server folder? Or is your situation completely different? And what type of server are you storing the names on?
  25. var radios = document.getElementById(ctrf); the document.getElementById function only returns one element and not an array of elements. What does your html look like for the group of radio buttons?
×
×
  • 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.