Welcome Guest, Not a member yet? Register   Sign In
Onclick does nothing
#9

Been googling jquery posting, xhr calls, ajax. Tried:

[download_page.php]
class download_page extends MY_Controller {
function add_row() {
alert("downloading");
}
}

[downloads.php]
<a href="http://www.downloaddocs/file.doc" onclick="<?=site_url('download_page/add_row')?>">

.. but the add_row function still not being called. If I put a syntax error in add_row() then the downloads.php page gives an error.

The developer who made the site that I'm trying to add the click records to no longer around, which is the problem as would've taken him 2 mins.
Reply


Messages In This Thread
Onclick does nothing - by Deborah - 05-13-2019, 09:17 AM
RE: Onclick does nothing - by ciadmin - 05-13-2019, 09:41 AM
RE: Onclick does nothing - by albertleao - 05-13-2019, 09:58 AM
RE: Onclick does nothing - by Deborah - 05-13-2019, 10:58 AM
RE: Onclick does nothing - by donpwinston - 05-13-2019, 03:25 PM
RE: Onclick does nothing - by albertleao - 05-13-2019, 03:33 PM
RE: Onclick does nothing - by Wouter60 - 05-13-2019, 11:10 PM
RE: Onclick does nothing - by albertleao - 05-14-2019, 10:52 AM
RE: Onclick does nothing - by Deborah - 05-16-2019, 10:31 AM
RE: Onclick does nothing - by albertleao - 05-16-2019, 12:02 PM
RE: Onclick does nothing - by Deborah - 05-16-2019, 01:28 PM
RE: Onclick does nothing - by albertleao - 05-17-2019, 07:01 AM
RE: Onclick does nothing - by Deborah - 05-17-2019, 07:20 AM
RE: Onclick does nothing - by shivambhatele - 06-23-2019, 09:43 PM
RE: Onclick does nothing - by MattZand - 09-17-2019, 02:44 PM
RE: Onclick does nothing - by InsiteFX - 07-04-2021, 02:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB