Hi everybody. This is my first post on WebDeveloper, so please pardon any coloring outside of the lines.

I'm trying to perform a simple task that has become very complex. I have a php page inside of an iframe that's embedded inside a client side html page. The php page simply uses an jQuery autocomplete to retrieve a list of items from the server. I need to send the selected item from the autocomplete list back to the client side js.

I don't want to put the autocomplete in the client js because I would then have to use JSONP to return values on each keystroke and latency is horrible.

Has anyone done something like this? Please tell me so! I've worked on this for almost a week now (I know, pitiful huh?).

For reference, here's the php page that's included in the iframe inside the client-side html: