Php and JS call problems

Source: Internet
Author: User
Php and JS call problems I want to embed JS in PHP and then make it into a plug-in. some people say that jquery is used for js and php interaction... how can this be done? I have already done a good job of JS, and I want to make a brand new PHP and put it into JS! The JS still has FLASH. you have not explained the role of php in it. if you echo the js code on the generated page, php and JS won't be called.
I want to embed JS in PHP and make it a plug-in. some people say that jquery is used for interaction between js and php...
How can this be done? I have already done a good job of JS, and I want to make a brand new PHP and put it into JS! Please
This JS also has FLASH

------ Solution --------------------
You have not explained what role php plays in it.
------ Solution --------------------
Can I just echo the js code on the generated page?
------ Solution --------------------
Is PHP a server language? What role does PHP play in it?
------ Solution --------------------
JavaScript cannot be nested with PHP. only PHP can be nested with JS.
In addition, Jquery is written by JS. the essence is JS. it only simplifies JS tools.
------ Solution --------------------
Php runs on the server, while js runs on the client. if they are integrated, you need to understand this truth first. if you do not understand it, it will be more troublesome.
Secondly, jquery is a js Framework, similar to zend Framework, which is a PHP Framework.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.