Question about an AJAX link and the dev and prod enviroments
Posted
by user248959
on Stack Overflow
See other posts from Stack Overflow
or by user248959
Published on 2010-03-15T17:22:32Z
Indexed on
2010/03/15
17:29 UTC
Read the original article
Hit count: 334
Hi,
i have this line below that shows a link to go the next page of a list.
<a href="#" onclick="new Ajax.Updater('lista_miembros',
'/frontend_dev.php/miembros/filtrar?page=2')">Next page</a>
The problem: as expected, it only works in the development enviroment of the frontend (frontend_dev.php).
My question: what should i to get it work on both enviroments (production and development)? Using if's and getting the environment being used is the only way, or is there any cooler way?
Javi
© Stack Overflow or respective owner