call javascript function from django -
can javascript function called django httpresponseredirect or other django function
if you're talking in-browser js, no, django cannot call javascript function. you've got django running on server, , js running in user's browser, , ne'er 2 shall mingle. imagine if ol' django site out there reach browser @ , start doing things didn't ask for!
what can setup sort of communication between two, ala ajax. have javascript side periodically poll django server information, @ point django can tell javascript (do this function, run that process). or figure out how comet.
otoh, if you're talking server-side js, sure, why not? it'd same calling perl function, or ruby function (feed interpreter correct instructions import/define/call function).
Comments
Post a Comment