RichardRotterdam
Members-
Posts
1,509 -
Joined
-
Last visited
Everything posted by RichardRotterdam
-
json is a js object not an array What does your json.php file look like?
-
This might help http://jqueryui.com/demos/droppable/
-
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
-
function to insert data into my db not working... :(
RichardRotterdam replied to adredz's topic in PHP Coding Help
is this function part of a class? And what error do you receive? -
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%%
-
these functions might help you array_unique explode implode preg_match
-
AJAX (maybe?) Question regarding Facebook
RichardRotterdam replied to DragonFire-N[R]'s topic in Javascript Help
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. -
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 });
-
If you mean using: <input name="somefield[]" /> <input name="somefield[]" /> instead of <input name="somefield1" /> <input name="somefield2" /> Then no it doesn't matter
-
How long has a user viewed a video?
RichardRotterdam replied to mikkelbrabrand's topic in PHP Coding Help
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. -
Try a search for the word "tooltip" you can either use css only or use javascript.
-
What does the code look like? And whats on 4618 that line?
-
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?
-
Populate an Array via Anchors/HyperLinks
RichardRotterdam replied to FishSword's topic in Javascript Help
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? -
Populate an Array via Anchors/HyperLinks
RichardRotterdam replied to FishSword's topic in Javascript Help
Since it has been moved to javascript have you considered javascript for this at all? -
jQuery :selected is returning an array????
RichardRotterdam replied to 2levelsabove's topic in Javascript Help
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> -
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
-
Finding a Char from string and make that Link
RichardRotterdam replied to binumathew's topic in PHP Coding Help
There are examples on how to use these functions in the manual try those -
Finding a Char from string and make that Link
RichardRotterdam replied to binumathew's topic in PHP Coding Help
What have you tried? Can you show the code? -
on that webserver where you store the images, can't you use a script that will output the image names?
-
Finding a Char from string and make that Link
RichardRotterdam replied to binumathew's topic in PHP Coding Help
maybe these functions are what you are looking for: preg_replace str_replace -
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?
-
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?