I've been searching, but apparently not phrasing my search right, so I'm
going to float a question out here in the meantime...
I'm wondering how to go about refreshing the content of a control (say, a
selector) without refreshing the page. For example, if I have these selects:
Company: <pick a company>
Contact: <pick a contact>
When they pick the company, I'd like to refill the contact selector based on
who works for that company, but I don't want to refresh the form since the
record hasn't been saved yet.
I know I could use a hidden form or some embedded component to do an HTTP
pull, but we have a live support app that we use and it seems like it might
be keeping the connection to the server open until it's unloaded from the
browser, so I was curious if that's doable, and how big a resource hog it
is. We'll only have occasional instances where we'd need to do this sort of
thing, but in those cases it would probably be worth it. I've been poking
around in the live support code to find out how they do their refreshes, but
I'm kind of new to PHP and I haven't spotted the answer yet.
Thanks in advance...
going to float a question out here in the meantime...
I'm wondering how to go about refreshing the content of a control (say, a
selector) without refreshing the page. For example, if I have these selects:
Company: <pick a company>
Contact: <pick a contact>
When they pick the company, I'd like to refill the contact selector based on
who works for that company, but I don't want to refresh the form since the
record hasn't been saved yet.
I know I could use a hidden form or some embedded component to do an HTTP
pull, but we have a live support app that we use and it seems like it might
be keeping the connection to the server open until it's unloaded from the
browser, so I was curious if that's doable, and how big a resource hog it
is. We'll only have occasional instances where we'd need to do this sort of
thing, but in those cases it would probably be worth it. I've been poking
around in the live support code to find out how they do their refreshes, but
I'm kind of new to PHP and I haven't spotted the answer yet.
Thanks in advance...
Comment