-
Posts
14,780 -
Joined
-
Last visited
-
Days Won
43
Everything posted by .josh
-
I was looking for something like this a couple years ago. Closest I could find was here though it is not as simple as some csv where each row is a list of words relating to each other. In my past researches I have determined that unfortunately, thesauruses are a lot more complex than that.
-
hmm i was under the impression it was the opposite...that reading light text on a dark background strained your eyes more...
-
I also want to point out a couple more things... 1) Even if your question(s) ARE "advanced", if nobody is answering them in the current forum, what makes you think placing them in a differently labeled forum is going to produce more advanced people to answer them? 2) Literally 99% of the time your question goes unanswered it is because you fail to properly present it, providing accurate context, etc...
-
well it depends... if you just use string then it is accessible to other methods within your object. What you are doing there is creating a copy that is local and accessible only to that specific function. IOW it is a question/matter of variable scope requirements.
-
I highly suggest you take a step back and properly format your html before you attempt to parse this...monstrosity...
-
at face value, it looks like you are only pushing it all into 1 element as a single ||| delimited string. Try mysplit = showage[0].split("|||");
-
you don't have any classes named "name" in that code.... no class="name"
-
help with resolving conflict between two JS libraries
.josh replied to webguync's topic in Javascript Help
you need to assign the .noConflict() to a variable like var $someVar = jQuery.noConflict(); $someVar(document).ready(function () { // etc...now use $someVar instead of $ everywhere that you use $ for jQuery -
basically your query would be something like : SELECT id, month, day, event FROM homecalendar WHERE month IN ('january','febuary') ORDER BY month, day As far as how to use dynamic values into that IN (...) it depends on what format your month is.
-
can a redirect to a local page from within a function?
.josh replied to spryce's topic in PHP Coding Help
$subject = check_input($_POST['subject']); You can have a header() call after that... $_POST is a global array of data the user submitted to the script. You can have a header() call anywhere in your script, as long as there is no output before it (and even then you can, though it's not recommended) -
If the OP was a serious question, I'd either be laughing at them or shunning them or both, depending on my mood.
-
def use strip_tags() but if for whatever reason you insist on using regex, you can use this: $content = preg_replace('~<[^>]*>~','',$content);
-
I don't have an iphone but i noticed on my own phone when I have my browser set to fit page to screen it does that. If I put it to normal (where it gives me a sidescroller) it shows it fine.
-
Did a client ask for it and you have absolutely no idea how to do it but you agreed to do it ASAP?
-
remove that setTimeout line of code, and then make your link and add the function call as an onclick in the link: <a href="..." onclick="openPopUp()">your link</a>
-
Well then stop asking stupid questions that you should already know as a programmer. I can't believe you, as a (I assume) programmer, don't know this...and I really I can't believe you actually asked this question before googling it.
-
Any reason you can't just modify an existing 3rd party shopping cart script (like zen cart)...just setting the prices to 0?
-
function storageAmmount() { system('stat /web/'.$user."/ | grep Size: > /web/".$user."/log/storage"); $storage = fopen('/web/'.$user.'/log/storage'); preg_match('~Size:\s*(\d+)~i',$storage,$match); return $match[1]; } dunno where you are getting that $user var though... if it's a global var you need to first do global $user; or else you need to pass it to the function function storageAmount($user) {...}
-
In general it shouldn't be a problem but...just so you know, it may or may not work on all mobile devices. There are a lot of mobile devices that do not support javascript, or else support a watered down version of javascript that may or may not be robust enough to handle the js code used for google maps. But they do offer a static version specifically geared for maximum mobile device compatibility...not as feature rich as the js or flash implementation but I guess it really depends on your needs. Google's documentation is usually pretty thorough about stuff, I wouldn't be surprised if somewhere in their google maps api doc it touches on this subject. But if by some chance it doesn't, you will probably find an answer faster by asking the question through their Q&A system on their documentation/dev forums.
-
okay I think you're saying you want me to get inside YOUR box...are you propositioning me for sex?
-
Whoo, first 2 lines do nothing. Amazing. ignoring massive syntax issues, of course.
-
wow man...this is like when my kid is trying to tell me a joke but he can't quite remember the punchline...
-
If I were still staff I'd have written it off as spam a long time ago and banned the account.
-
"4 sides squared"... no I do not... is that some kind of new emo boy band? I can never keep up with the new kiddie stuff these days...
-
I guess that's supposed to be some kind of insult? Okay, we can play this game. You're momma's sooo fat...