Search found 6 matches

by UncleNinja
Mon Jul 19, 2010 10:26 pm
Forum: Javascript
Topic: Having trouble moving list items up and down
Replies: 2
Views: 770

Re: Having trouble moving list items up and down

Thanks! :D I forgot about text nodes, naughty boogers. That code is slick! Your website probably moves at like 5643 miles an hour! :D That code works as long as you change the while to a do..while because the code inside the while must be run initially. :) Thanks a grazillion kaszu! :D function prev...
by UncleNinja
Mon Jul 19, 2010 9:03 am
Forum: Javascript
Topic: Having trouble moving list items up and down
Replies: 2
Views: 770

Having trouble moving list items up and down

Hi DevNetwork people! :D I try to google my fingers off before I post here, but I think I'm doing this wrong. My goal is to simply move list items up and down. I have a simple solution - use insertBefore() . However, this does not seem to be working in Webkit browsers (Android, Safari, Chrome, etc) ...
by UncleNinja
Tue Jul 06, 2010 3:54 pm
Forum: PHP - Code
Topic: fwrite() running htmlentities() on 'string' parameter?
Replies: 7
Views: 496

Re: fwrite() running htmlentities() on 'string' parameter?

I just realized that if I really wanted to have an HTML entity in there it would be converted to the actual character. This isn't a bad thing unless the contents of that XML file is actually going into an HTML page later on. Well it is going into an HTML page, so that workaround works, but it breaks...
by UncleNinja
Tue Jul 06, 2010 2:53 pm
Forum: PHP - Code
Topic: fwrite() running htmlentities() on 'string' parameter?
Replies: 7
Views: 496

Re: fwrite() running htmlentities() on 'string' parameter?

Thanks! That worked! :D
I wouldn't have expected to have to do that. Thank you! :)
by UncleNinja
Tue Jul 06, 2010 2:19 pm
Forum: PHP - Code
Topic: fwrite() running htmlentities() on 'string' parameter?
Replies: 7
Views: 496

fwrite() running htmlentities() on 'string' parameter?

Simple question and hopefully a simple problem. :) I'm trying to replace the information inside of an XML node (in an XML file, duh) with PHP5's filesystem functions and SimpleXML. However, PHP has decided to convert all the reserved HTML characters ( < , > , & , etc) to their &whatever; equ...