Saturday, 15 January 2011

php - Detect ajax code in javascript content -



php - Detect ajax code in javascript content -

how can detect, in content of javascript code returned web server, portion of code allows client web create ajax calls? in other words, want know if there existing libraries can homecoming url contained in javascript code returned web server web client. url returned web server web client allow web client create ajax calls web server.

here illustration in javascript code returned web server web client, there next lines:

$.ajax({ type: "post", url: '/index.php?option=com_rechercheperso&view=recupesecteur&format=raw', data: 'style='+value_style+'&type='+value_type, success: function(response){ $('#secteur').html(response);} }); }

the question, there library allows homecoming url ('/ index.php? com_rechercheperso alternative = & view = & format = raw recupesecteur') in analyzing content of javascript code.

thank answers

toufik

from description assume, server handing page, in there scripts using ajax calls predefined urls, , want urls.

if right, utilize language phone call page loads scripts (php, perl or js ajax), , search regexp urls in responsetext, , seek matching ones forther ajax calls against server.

looks brute-force solution, should work.

php javascript html ajax json

No comments:

Post a Comment