Forum Moderators: coopster

Message Too Old, No Replies

php file as javascript src

it works, but not quite

         

dmmh

4:34 pm on Apr 29, 2005 (gmt 0)

10+ Year Member



im using a few javascript functions which are generated by mysql queries via php, this works fine

in the php file used as source for the javascript, ive defined javascript functions which add textfield's dynamically to the form if a user clicks a button. this works fine as said.
however, the menu's wont show.
The php generated javascript functions for the menu's are inside a include, which is included in every file on the site and returns the output (it doesnt echo)
I echo it by calling the it like 'echo $dyn_form_menu', which works fine if I use it as part of html output, but it doesnt output anything in the javascript include

any ideas? must be something simple....

dmmh

7:53 am on May 1, 2005 (gmt 0)

10+ Year Member



any takers? :)

Stormfx

6:17 pm on May 1, 2005 (gmt 0)

10+ Year Member



I'd have to see the code :p

dmmh

7:38 am on May 2, 2005 (gmt 0)

10+ Year Member



ill get back with that this eve :)