Hi,

Couldn't you make something like:

[code]
$.getJSON('http://www.mypubspace.com/dashtest/pubjson.php?county=";'.county.'"', 
function()...
[/code]

Where county would come from the <li> you pressed?

/Mogens

On 02-02-2011 11:32, [email protected] wrote:
hi,
the following function shows a list of Counties populates by a PHP
page:
[code]
$.getJSON('http://www.mypubspace.com/dashtest/countyjson.php',
function(data){
     var myhtml = '<ul>';
    for(i=0; i<data.length; i++) {
       myhtml += '<li>' + data[i].County +'</li>';
    }
    myhtml += '</ul>';
    $("#countyshow").html(myhtml);

});
[/code]
  I would like to now, when a user clicks on a County, they are shown a
list of pubs based on that County (so, I'll create a new PHP page
WHERE County = 'County' or something?!)

at the moment, when a user clicks on a County this function is passed:
[code]
function gopublist(event)
{
var stackLayout = document.getElementById('stackLayout').object; //
Replace with id of StackLayout
stackLayout.setCurrentView('view4');
}
[/code]

So, passing a value through so I can modify the SQL in the PHP page to
filter the counties?!

Please help?



--
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/iphonewebdev?hl=en.

Reply via email to