Jump to content

Onclick help


silenthunter

Recommended Posts

howdy everyone

 

      I'm not good with Javascript. but I know this can be done in javascript.

 

I have a php event calendar and the event days are links. I want the links to be Onclick and have a table under the calender to expand and show the events for that day. (it will need to pull the id from php into javascript and back to php)

 

can someone help me?

 

 

Link to comment
https://forums.phpfreaks.com/topic/209441-onclick-help/
Share on other sites

What you need to do since your using both php and javascript is preform a AJAX request through Javascript. If you are unfamiliar with Javascript and how to script in a style where you can impliment PHP and various other scripting techniques I would say look into "jQuery" its by far the oldest and most mature of frameworks for the WEB 2.0 era, and has a huge community of people who can help you build everything or anything you could possibly want.

Link to comment
https://forums.phpfreaks.com/topic/209441-onclick-help/#findComment-1093656
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.