I'm working on a project using jQuery, PHP, HTML/CSS. pretty standard. i have a separate file with my php class and the functions for it, and i have a separate .js file for the jQuery. I include these files in my HTML pages. When I want to use the jQuery with my PHP, whats the standard way to intertwine these? I want to some day convert all the ajax on the site to use jquery, but right now its done with the PHP functions in, say, functions.php. heres an example:
getComment() { gets a comment, but i want to use jQuery to add an effect in, say a fadeIn effect}
another question i have is when i do the .js file. im relatively new to jquery, how can i name a function in jquery. so if i wanted to call that fadeIn function for the getComment() function, how could i call the function to make that effect happen whenever that function is called?
Question
Des429
I'm working on a project using jQuery, PHP, HTML/CSS. pretty standard. i have a separate file with my php class and the functions for it, and i have a separate .js file for the jQuery. I include these files in my HTML pages. When I want to use the jQuery with my PHP, whats the standard way to intertwine these? I want to some day convert all the ajax on the site to use jquery, but right now its done with the PHP functions in, say, functions.php. heres an example:
getComment() { gets a comment, but i want to use jQuery to add an effect in, say a fadeIn effect}
another question i have is when i do the .js file. im relatively new to jquery, how can i name a function in jquery. so if i wanted to call that fadeIn function for the getComment() function, how could i call the function to make that effect happen whenever that function is called?
Link to comment
Share on other sites
0 answers to this question
Recommended Posts