Hey all, I’m just getting started in scriptcase and so far it’s been very cool! I have been getting alot of assistance from Scott Martin on getting started with a small app and how to do some field calculations, etc. However, In my next piece of the project I am running into difficulty trying to figure how to do the following. I’m sure it can be done but there are no examples/tutorials on how to accomplish this.
Within my form I have a callsign field I need validated via a web api url to the FCC. I can set the field to fire an ajax event an run a php method. But I’m not sure how to accomplish 2 things.
- When the field is deselected I want an ajax popup that will tell me if it was a valid callsign or not.
- Place a button next to the callsign field that will pull all the info from the api and display that in a ajax/popup box.
I’m not sure how/where to make the api call, or how to parse the data returned so it can be formatted and put into an info box.
This is the api I’m looking at using but have no idea how to deal with returned data and get it into sc and use it. I’m new with all this and am not a php guru by ANY stretch of the imagination.
http://reboot.fcc.gov/developer/license-view-api specifically the getLicense api.
Any help would be GREATLY appreciated!
Kevin
K2KMB (in case you play around with the api and need a license to check)