![]() |
I tried to add
Quote:
|
Give this a try.
Code:
PHP Code:
You should also do an error check in your PHP script. Javascript runs on the client side and can't be trusted. |
Nico, once again thanks for the help. Everything but the ajax remove is fine, but I will live with that. I simply put a front end redirect in predictions.php that brings back to the previous page.
It's a pity I had to edit calendar.php as there was no hook at the desired location. My predictions is heavily customized. I am going to try to simplify it and release it, giving you 100% credits for the ajax code (not a line was from me). I only had to add the eventid to the <div> <div id="$customtitle$eventinfo[eventid]"> to make it unique, because sometimes there are multiple games in the same day. |
<a href="showthread.php?t=93249" title="vBulletin.org Forum - Thread 93249">Here's a nice tutorial.</a>
|
^^ Thank you for that. I'll have a look at it.
Lionel, I just downloaded your script. Thanks for the credit. :) I saw you modified it a bit... don't use getElementById, cause it's not cross browser safe. Use vB's fetch_object() function instead. Code:
fetch_object('button'+ form.eventid.value).innerHTML = '<a href="predictions.php?do=remove&eventid='+ form.eventid.value +'">Remove</a>'; EDIT: Give this a try. Code:
function submit_form(form) |
cool. Thanks Nico. Feel free to modify all you want.
|
I edited the post above. I didn't fully test it though.
|
All times are GMT. The time now is 08:43 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|