Getting PHP Content into Javascript Variable

Miscellaneous Forums/General Discussion/Getting PHP Content into Javascript Variable

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi all,

Well another day another problem. This time, I am trying to get the content of a PHP page (one that counts the total number of records in a table for a paging function) into a javascript variable.

So basically I want to go something like


var totalPages = GetContent("/recordCount.php?tablename=whatever");


Ive got jQuery and Prototype libraries installed in this project. There is also something called TinyMCE but i think thats an editing control.

Anyone done this?

A