Recent Posts

Pages: [1] 2 3 ... 10
1
General Chat / Re: Can i still eat this?
« Last post by gamerz300 on Today at 02:42:13 PM »
... not the reason why... besides compared to my 6100 posts on 110 this is rather sad for the time frame of posting... 1.85 vs 4.1 (stopped posting over 1 year before last visit so it is higher then 4.1 per day)

however being #2 in every section under all 3 stats with names with my name would rock tho :P currently i hold 2/3 :D

Edit: Just me or is the SMF being slow?
2
General Chat / Re: Can i still eat this?
« Last post by cms07 on Yesterday at 10:23:05 PM »
You're really desperate to up your post count, aren't you?
He's only 39 from Brad!
3
Show Off Your Site / Re: EpicCyndaquil's Blog
« Last post by EpicCyndaquil on Yesterday at 07:49:42 PM »
Still down over here.
I'll call that one a DNS issue, I know at least 3 people can confirm it's working.
4
General Chat / Re: Can i still eat this?
« Last post by Mop on Yesterday at 10:42:30 AM »
You're really desperate to up your post count, aren't you?
5
Show Off Your Site / Re: EpicCyndaquil's Blog
« Last post by daz on Yesterday at 10:01:26 AM »
Still down over here.
6
Show Off Your Site / Re: EpicCyndaquil's Blog
« Last post by EpicCyndaquil on February 20, 2012, 02:43:26 PM »
Double posting only to inform anyone interested that the site is back up. Not entirely satisfied with the workaround, but hopefully it'll be stable from now to forever.
7
General Chat / Re: Can i still eat this?
« Last post by gamerz300 on February 19, 2012, 01:59:33 PM »
Is it really worth it?

i have 6 or 8 of them... and it actually costs 2 bucks here on sale =.= plus its only 227g if the internet is right 1ml=1g i have 500ml containers....
8
General Chat / Re: Can i still eat this?
« Last post by Joey on February 19, 2012, 10:56:56 AM »
I myself wouldn't, but on the other hand it is dried food on which boiling water will be poured, and it's a "best before" date and not a "use by" date.
9
Technical Help & Server Administration / Really odd javascript behaviour.
« Last post by Joey on February 19, 2012, 10:54:52 AM »
Code: [Select]
var hidden = 'yes';

var content = document.getElementById("post_two").innerHTML;
document.getElementById("post_two").innerHTML = "";

var postcontrols = document.getElementById("post_controls").innerHTML;
document.getElementById("post_controls").innerHTML = postcontrols + "<input type=\"button\" name=\"captionless_reblog\" class=\"generic\" id=\"captionless_reblog_button\" value=\"Recover Caption\" style=\"margin:0px 0px 0px 15px; \">";

function recover_remove()
{
if (hidden == 'yes')
{
document.getElementById("post_two").innerHTML = content;
hidden = 'no';
document.getElementById("captionless_reblog_button").value = "Remove Caption";
}
else if (hidden == 'no')
{
content = document.getElementById("post_two").innerHTML;
document.getElementById("post_two").innerHTML = "";
hidden = 'yes';
document.getElementById("captionless_reblog_button").value = "Recover Caption";
}
}

document.getElementById("captionless_reblog_button").addEventListener("click", recover_remove, false);

In the above code (which is a chrome extension) I want to automatically delete all the content of a 'caption' field (for Tumblr). First I store all its data into the variable content and then the field is emptied. Then, I also add a button to the Tumblr buttons to recover content into the input field. Variable hidden determines what the function recover_remove() does: If the text is already hidden (hidden == yes), it will recover the content into the field, alter the text of the extra button to "Remove Caption." if hidden == no that means the text is still in the field, and then recover_remove() will store input in content and empty the field.

Everything works perfectly, on pageload the field data is stored in content and the field emptied. The button is added. When clicking the button, the function is executed and in itself the function works great as well; it correctly alternates between recovering or removing (hidden == yes or hidden == no) and is even able to alter the the text of the button (Remove Caption or Recover Caption)

HOWEVER, it doesn't actually do anything with the fields anymore. Where document.getElementById("post_two").innerHTML works in the start, it does not in the function. I can not understand how this is possible; it can't be that I am referring to the wrong element since there is only one element with id="post_two" plus it works before the function. Chrome is not throwing any errors at me. I thought that maybe I was working on the wrong DOM level (document) but document.getElementById("captionless_reblog_button").value works just fine in the function.

Does anyone know what's going on here?  :o
10
General Chat / Re: Can i still eat this?
« Last post by cms07 on February 19, 2012, 09:59:40 AM »
Pages: [1] 2 3 ... 10