b3ta.com board
You are not logged in. Login or Signup
Home » Messageboard » XXX » Message 9580144 (Thread)

# :(


I just spent today trying to get some php to talk to some javascript. It has not gone well.
If all the variables are natively in JS the script works fine, but im trying to get data from
a database with php and then pass it to the JS by having php just echo a script tag.
JS doesnt like that and refuses to work if written by php.


THANKYOU GILGAMESH!
(, Tue 14 Jul 2009, 2:01, archived)
#
 .U.
(, Tue 14 Jul 2009, 2:05, archived)
# Hello.
Its quite late/early/time.
(, Tue 14 Jul 2009, 2:07, archived)
# It's exceptionally ______________, bro.
(, Tue 14 Jul 2009, 2:08, archived)
# have you tried turning the computer off
putting it in the middle of a field

filling it with explosives

and blowing that fucker straight to hell?

:D
(, Tue 14 Jul 2009, 2:07, archived)
# Only in my mind due to lack of explosives.
(, Tue 14 Jul 2009, 2:09, archived)
# just get lots of flour
and a fan

and then when you have lots of flour particles in the air

light it!

BOOOOOOOOOOOOEEEEM!
(, Tue 14 Jul 2009, 2:11, archived)
# Javascript shouldn't be able
to tell the difference between php and html. by the time it gets to the javascript it's html anyway...
(, Tue 14 Jul 2009, 2:08, archived)
# Thats what I was thinking.
The HTML + JS looks ok in view page source, but the JS still refuses to work.
(, Tue 14 Jul 2009, 2:14, archived)
# hmmmm
maybe save the source as an html file then edit that till you figure out what's broken, then take it back to the php?

Good luck! I'm going to be.
(, Tue 14 Jul 2009, 2:23, archived)
# It works if I do that.
Just seems like JS doesnt like taking orders from php.
(, Tue 14 Jul 2009, 2:33, archived)
# Any errors?
Trying to edit bits of the page that haven't finished loading yet?
(, Tue 14 Jul 2009, 2:38, archived)
# My wee smells of mint, lol.
(, Tue 14 Jul 2009, 2:51, archived)
# ITS OK GILGAMESH SORTED IT ALL BECAUSE HE IS ACE AND SUCHLIKE
(, Tue 14 Jul 2009, 3:07, archived)
# HE SMELLS OF MINT TOO, LOL
(, Tue 14 Jul 2009, 3:09, archived)
# WHY DOES PHP ALWAYS HAVE TO BE THE RESPONSIBLE ONE?
 
GROW THE FUCK UP, JAVASCRIPT
(, Tue 14 Jul 2009, 3:39, archived)
# It's been a while
but there's a difference between echo and print.

One retains the ability to run code and one just prints to screen.

I'm tired and have no idea if this is helpful.
(, Tue 14 Jul 2009, 9:32, archived)