JCSama / CodeIgniter-develbar

CodeIgniter Developer Toolbar is a third party library based on Profiler Library with additional functionality for debugging and optimisation, Database, Models, Helpers, Libraries, Views, Ajax...
MIT License
176 stars 57 forks source link

Reg : Issue in ajax Request. #14

Closed varunsridharan closed 7 years ago

varunsridharan commented 7 years ago

Hi,

I am using this DevelBar In my CodeIgniter project. but i am having issues in ajax request.

I have no idea on how to setup an ajax request in codeigniter but i created an controller named ajax in my project and using that i do all the actions i need to do via ajax

but i am getting html printed out in each and every ajax request. for most of the ajax request i get json as response which makes it break :(

varunsridharan commented 7 years ago

also no ajax request is getting logged. :(

http://prntscr.com/fruhsz

JCSama commented 7 years ago

Hello @technofreaky To display ajax requests, you need to copy the controllers/evelbarprofiler.php into your controllers forlder

varunsridharan commented 7 years ago

hi yes i have it but still not working

JCSama commented 7 years ago

Do you have any errors within your console.

On Jul 8, 2017 02:18, "Varun Sridharan" notifications@github.com wrote:

hi yes i have it but still not working

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/JCSama/CodeIgniter-develbar/issues/14#issuecomment-313820561, or mute the thread https://github.com/notifications/unsubscribe-auth/ACpU_bcXETwQU_47Alujm-szDVIoKwRxks5sLsrhgaJpZM4OODl7 .

varunsridharan commented 7 years ago

@JCSama no i dont have any errors in console. i am using AdminLTE for Admin panel (HTML template)

JCSama commented 7 years ago

I need something to work with, errors screenshot....

On Jul 8, 2017 14:49, "Varun Sridharan" notifications@github.com wrote:

@JCSama https://github.com/jcsama no i dont have any errors in console. i am using AdminLTE for Admin panel (HTML template)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/JCSama/CodeIgniter-develbar/issues/14#issuecomment-313854035, or mute the thread https://github.com/notifications/unsubscribe-auth/ACpU_bdJROPnAj3wx2aiY1txSLC0sj9Rks5sL3q6gaJpZM4OODl7 .

varunsridharan commented 7 years ago

i wanted to provide u see here is the thing.

i have a button in a page which i have linked in js to make ajax request.

lets say i have a button which returns me the current user info.

if i click this button and if its sent using jQuery.get() function then in response header i am able to get the debug profile id. but its not getting logged in the current page ajax table.

i think the script which you used to monitor ajax request in current page is not working .

On Sat, Jul 8, 2017 at 11:22 PM, JC Sama notifications@github.com wrote:

I need something to work with, errors screenshot....

On Jul 8, 2017 14:49, "Varun Sridharan" notifications@github.com wrote:

@JCSama https://github.com/jcsama no i dont have any errors in console. i am using AdminLTE for Admin panel (HTML template)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/JCSama/CodeIgniter-develbar/issues/ 14#issuecomment-313854035, or mute the thread https://github.com/notifications/unsubscribe-auth/ACpU_ bdJROPnAj3wx2aiY1txSLC0sj9Rks5sL3q6gaJpZM4OODl7

.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/JCSama/CodeIgniter-develbar/issues/14#issuecomment-313871005, or mute the thread https://github.com/notifications/unsubscribe-auth/ABzAf57PGtqLKX5L3kKnrfjeEHSR7_npks5sL8HigaJpZM4OODl7 .

--

Varun Sridharan Cell : +91 904 224 8903 Email : varunsridharan23@gmail.com Website : http://www.varunsridharan.in/

varunsridharan commented 7 years ago

Hi,

i just found out that if i use http://github.hubspot.com/pace/docs/welcome/ this js script the ajax log is not working

JCSama commented 7 years ago

Can you show me your page source code ?

varunsridharan commented 7 years ago

sure

here is the source https://pastebin.com/DsfFXUaK

varunsridharan commented 7 years ago

@JCSama this issue is not solved with that pull request. Please read my prev replies

JCSama commented 7 years ago

Actually, it was pace.js the problem coz it override the XMLHttpRequest. Fixed with latest commit

varunsridharan commented 7 years ago

Hi.

Thanks for your awesome support. will test it and let u know.

JCSama commented 7 years ago

You're welcome.

Please make sure you have the tag within your html page.

varunsridharan commented 7 years ago

Hi,

today i was able to check the latest source. and i can see that i am getting null value @ hooks/Develbar.php :203:null

i think its still not fixed

JCSama commented 7 years ago

Last source from the repo not release ! Let me check that out, if so.

JCSama commented 7 years ago

Hello again, As I said, you need to have a tag where the Ajax debug script can be printed out. If not it will be printed before the first Githubissues.

  • Githubissues is a development platform for aggregating issues.