CODING - viewing source of webpage loaded through AJAX

Airtel

Senior Villager
#1
Hii Ktalk mzima, hakuna mtu anajua vilenitaona HTML ya hizi website zenye content inakuwa loaded kama website imeshafunguka.
For example, kwa zile website ziko na infinite scroll, nikitaka kuona source code vile iko sas hiyo saa hiyo nitafinya wapi? sijui kama nimeeleweka
 

Okwonkwo

Village Chief
#4
Hii Ktalk mzima, hakuna mtu anajua vilenitaona HTML ya hizi website zenye content inakuwa loaded kama website imeshafunguka.
For example, kwa zile website ziko na infinite scroll, nikitaka kuona source code vile iko sas hiyo saa hiyo nitafinya wapi? sijui kama nimeeleweka
if the site uses a virtual dom rendered in JavaScript you are unlikely to see. But kama ni normal Ajax, hapo kwa dev tools click on Network then filter XHR... you can then see the response of the Ajax call as well as the request headers.
 

denis young

Village Elder
#8
Lakini hiyo ya infinite scroll si new html elements are built on request so hakuna venye unaweza ziona zote kwa html. Ama ni mimi sishikanishi swali.
 

Airtel

Senior Villager
#10
if the site uses a virtual dom rendered in JavaScript you are unlikely to see. But kama ni normal Ajax, hapo kwa dev tools click on Network then filter XHR... you can then see the response of the Ajax call as well as the request headers.
Nielezee polepole sijui vitu mingi. Uko na hii iwriter mpya?
 

panktcha

Village Elder
#12
Firebug.

https://getfirebug.com/

Use it as an extension in Chrome.

Or Firefox (Firefox tends to use too much memory when I use it, so I avoid it).

Click on the icon to open a panel at the bottom, then run your page or script.

Sample screens...

Headers.
1.JPG
Post parameters.
2.JPG
Response.
3.JPG
JSON response.
4.JPG

If there is an error in the code after making the request, and you are doing error-handling on the server side and returning error responses via Ajax, the error will show in the panel.
 

Airtel

Senior Villager
#15
Firebug.

https://getfirebug.com/

Use it as an extension in Chrome.

Or Firefox (Firefox tends to use too much memory when I use it, so I avoid it).

Click on the icon to open a panel at the bottom, then run your page or script.

Sample screens...

Headers.
View attachment 129308
Post parameters.
View attachment 129307
Response.
View attachment 129306
JSON response.
View attachment 129305

If there is an error in the code after making the request, and you are doing error-handling on the server side and returning error responses via Ajax, the error will show in the panel.
Asante sana. Wacha niichokore.sengiu
 
T

TerribleWaste

Guest
#20
If you've used FF before then you know if you opened about 20 JavaScript intensive sites FF just choked. I have 8GB and FF often consumed +5GB of RAM taking my RAM to 90% usage slowing everything down. Right now I have 150+ tabs of very same sites I visit. I haven't closed the browser for the last three days and my RAM is at 90%. That's about +100 more tabs and it si still RESPONSIVE!
ff.png

tm.png
 

Top