Jump to content

Refreshing PHP script within a frame?


MxGucci

Recommended Posts

I am at work right now, don't have access to my code but I have a small 5 star rating script, which is php/mysql based, when I run the script on my page, and if the user clicks on a star and rates the script, it refreshes the whole page, although fast its pretty annoying, is there any way to run scripts within an iframe or something?

 

Sorry if my question doesnt make sense or if you all need the code before hand to answer. I will upload the code once I get home.

 

Thanks,

Gucci

Link to comment
https://forums.phpfreaks.com/topic/132633-refreshing-php-script-within-a-frame/
Share on other sites

You want to use AJAX. It allows you to send data in the background. Writing your own cross-browser transport script is kind of messy, so I recommend using one of the many JS libraries out there to help you. I would check out jQuery and it's AJAX functions.

You want to use AJAX. It allows you to send data in the background. Writing your own cross-browser transport script is kind of messy, so I recommend using one of the many JS libraries out there to help you. I would check out jQuery and it's AJAX functions.

 

Thank you sir, I'll test it out and I'll get back to you guys if I face any problems.

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.