son.of.the.morning Posted December 6, 2011 Share Posted December 6, 2011 I need to find a simple solution to creating a post back event on a HREF. Does anyone know and php based solutions for this, if not javascript will be fine. Quote Link to comment https://forums.phpfreaks.com/topic/252561-post-back-problem/ Share on other sites More sharing options...
son.of.the.morning Posted December 6, 2011 Author Share Posted December 6, 2011 if i can apply the same event to a div then i would also be able to use that. Quote Link to comment https://forums.phpfreaks.com/topic/252561-post-back-problem/#findComment-1294846 Share on other sites More sharing options...
Maq Posted December 6, 2011 Share Posted December 6, 2011 Not sure exactly what you mean but it sounds like you want to use AJAX, google "JQuery Post". Quote Link to comment https://forums.phpfreaks.com/topic/252561-post-back-problem/#findComment-1294937 Share on other sites More sharing options...
son.of.the.morning Posted December 6, 2011 Author Share Posted December 6, 2011 yes! could you help? Quote Link to comment https://forums.phpfreaks.com/topic/252561-post-back-problem/#findComment-1294944 Share on other sites More sharing options...
Maq Posted December 6, 2011 Share Posted December 6, 2011 The JQuery manual provides many examples of how to use it. What part did you need help with? Quote Link to comment https://forums.phpfreaks.com/topic/252561-post-back-problem/#findComment-1294951 Share on other sites More sharing options...
son.of.the.morning Posted December 6, 2011 Author Share Posted December 6, 2011 All i want is a bit of code saying if the page loaded 4 seconds ago re-load this specific div. Quote Link to comment https://forums.phpfreaks.com/topic/252561-post-back-problem/#findComment-1294953 Share on other sites More sharing options...
JonnoTheDev Posted December 7, 2011 Share Posted December 7, 2011 This is the basic principle http://stackoverflow.com/questions/4818237/jquery-automatic-click-after-4-sec Quote Link to comment https://forums.phpfreaks.com/topic/252561-post-back-problem/#findComment-1295210 Share on other sites More sharing options...
PFMaBiSmAd Posted December 7, 2011 Share Posted December 7, 2011 I suspect this question is somehow related to your existing thread where you are deleting a record and the display of the data doesn't reflect the deletion until after you refresh the page? If so, throwing more code at the problem is not likely to solve it. You need to find and fix the actual cause of the problem. Ajax/jquery is used to add functionally to a working page (i.e. your page should work when javascript is disabled) not fix a problem on a page. Quote Link to comment https://forums.phpfreaks.com/topic/252561-post-back-problem/#findComment-1295228 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.