Codeigniter-jQuery-Ajax | Ajax implementation for CI using jQuery 's .ajax method
kandi X-RAY | Codeigniter-jQuery-Ajax Summary
kandi X-RAY | Codeigniter-jQuery-Ajax Summary
Ajax implementation for CI using jQuery's .ajax method.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Output an AJAX request
- Disable non AJAX
Codeigniter-jQuery-Ajax Key Features
Codeigniter-jQuery-Ajax Examples and Code Snippets
Community Discussions
Trending Discussions on Codeigniter-jQuery-Ajax
QUESTION
I have a site made with codeigniter and now I want to integrate ajax within one of its views.
I've followed this tutorial FormgetAjaxCodeigniter. But since I use links and want to "get" info from the href instead of using forms, I can't fully use all information from the tutorial. with ajax I rely on preventDefault which isn't working for me at the moment.
The main page is a table of users with bits of important information (ids, names) and has links with images. I want to use ajax to get a user's id, get all info about that user and display it in a separate table on the same page through getting the id from the href without activating controller function
Here is the modified script:
...ANSWER
Answered 2018-Feb-21 at 15:46Dont put any url in the href or you can put javascrtipt:void(0); something like below
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Codeigniter-jQuery-Ajax
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page