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 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 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 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 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 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 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 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 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.