Search:
Type: Posts; User: robmarston
Search :
Search took 0.01 seconds.
Set an interval with a try/catch statement that clears itself and executes the init function when the div is made available.
Marking as resolved because the post is outdated. Most likely the div as positioned/displayed in a manor that wasn't allowing it's container to grow to accommodate. A clearfix would probably...
Marking as resolved because it's outdated. Can use the following code:
$input = file_get_contents("filename.txt");
// modify $input using regular expression, e.g. preg_replace...
Marking this as resolved because it's outdated. Simply put the div inside the a tag, position it relative, and show/hide onclick.
Marking this resolved because it's outdated.
I need to match last occurrence of one of two characters with regular expression. In this instance it's either a semi-colon or the close of a comment.
Consider the string:
body {
/*...
Typo was causing the error, first sign I need to take a break ;)
Thanks.
I'm using a MediaTemple Gridserver (shared). The error I receive when i try to use the absolute path is:
Here's the code I'm using:
chdir("../clients");
mkdir("newfolder",0777);
I am unable to make a new directory in an existing directory that is one level up from where my script is located. Here's my folder structure:
html
> api
> script.php
>...
I'll give it a shot. I had something similar to begin with but I abandoned it in hopes of a more elegant solution.
Thanks!
Silly question, but it's late and I'm tired...
<form>
...form fields...
<input type="text" onclick="isValid(this);doSomethng()"/>
</form>
Can I get the second function to execute only if the...
Doing that still causes the page to refresh in FF3 OS X.
I was just unsure if someone could make some malicious attempt at script injection if I didn't clean it up before I "received" it on the PHP end.
I guess I'll just do some more research and make...
I'm using an onsubmit to change the values of some of my form fields before submitting to a PHP form handler.
The problem is, when the JS changes the values (to URL encoded values) it shows the...
I'm writing text to a div using innerHTML, this happens in a loop. Looks similar to this:
for(i=0;i<10;i++){
...does other stuff...
myDiv.innerHTML = getData();
...does other stuff...
}
...
I'm trying to delay the return of a function until certain information has been gathered, is this possible? Here's a basic rendition of what I'm trying to accomplish:
alert(getData());
...
Nevermind, decided not to be lazy and whipped this up - probably could use some revising, but it's good enough for now.
function formatDate(date)
{
var year = parseInt(date.slice(0,4));...
Curious if anyone has a JS that re-formats a W3CDTF date (from atom RSS) so it's a little easier to read?
I'm getting: 2009-04-22T12:46:00Z
I'd like: Wed April, 4 12:46 PM PMT (or something...
My window.onload function isn't executing until I (or a user) scrolls the page. Seems to only be a bug in FF for PC.
Is there a fix or some alternative method I can use? I'm using window.onload...
I assumed I would need to allow execute for others to even run the php script.
Hmmm...I guess I just don't properly understand the wording...
Thanks for your help!
I have a php file that writes a text file to a directory on my server. What are the ideal permissions for the php file itself, and the directory?
I currently have owner, group, and others set to...
Awesome, that worked -- curious why you can't just throw it in the href part of the link?
Thanks for your help!
I have a link that's nested as follows:
<div id="container"><a href="javascript:getParent(this)">CLICK HERE</a></div>
When I use the script to alert the object that's sent by the "this"...
I guess I still don't understand?
My variables ACTUALLY look more like this...
var origHeight = getHeight();
With the getHeight() function returning a value representing the objects...