bobinindia Posted June 9, 2008 Share Posted June 9, 2008 I have some images that need to be resized soon after uploading. Sooner than a minute so I think this rules out cron jobs. Is there a way to get the upload script to trigger the resizing process without the user having to wait for it to complete before the next page is fully opened? Hopeful? Quote Link to comment https://forums.phpfreaks.com/topic/109383-solved-user-triggered-script/ Share on other sites More sharing options...
MadTechie Posted June 9, 2008 Share Posted June 9, 2008 Maybe use frames or AJAX, resizing shouldn't take long, the upload seams to be the longest part Quote Link to comment https://forums.phpfreaks.com/topic/109383-solved-user-triggered-script/#findComment-561032 Share on other sites More sharing options...
hansford Posted June 9, 2008 Share Posted June 9, 2008 yeah just add the resize code. all of the images will be resized in a blink, but not before they're uploaded, but before the next page is fully rendered. Quote Link to comment https://forums.phpfreaks.com/topic/109383-solved-user-triggered-script/#findComment-561059 Share on other sites More sharing options...
bobinindia Posted June 9, 2008 Author Share Posted June 9, 2008 Resolved. Thanks for the ajax tip Madtechie. I put <body onload="ayaximageresizer()"> with no return to the page. The php script that it called did its job. Great. Been on my mind for a while that one!! Quote Link to comment https://forums.phpfreaks.com/topic/109383-solved-user-triggered-script/#findComment-561120 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.