Log In
Developer Network
Technologies
Join the Network
Member Services
Events & Community
SocialMiner Developer Center
Overview
Documentation
Community
Wiki
SocialMiner Forums
Message Boards Home
Recent Posts
Statistics
Answer
(
Unmark
)
Mark as an Answer
« Back to Technical Discussion
RE: Social Miner Post status query app
Threads [
Previous
|
Next
]
Andrew Fraser
Posts:
4
Join Date:
7/14/08
Recent Posts
Social Miner Post status query app
Answer
3/8/12 6:06 PM
Mark as an Answer
Submit
Reply with Quote
Quick Reply
Hello all,
I am looking to write an app that adds a post to SM and then queries the status periodically of that post to determine the status. I have a simple piece of HTML here for the post:
<HTML>
<head>
<title>SME Request</title>
</head>
<BODY>
<FORM NAME="myform" ACTION="http://10.233.141.19/ccp-webapp/ccp/pushfeed/100008" METHOD="GET">
Request an Expert: <BR>
<input type="hidden" id='title' type='text' value="SME-Request" name='title' />
<input type="hidden" id='author' type='text' value="ING" name='author' />
<input type="hidden" id='description' type='text' value="SME-Request" name='description' />
<input type="hidden" id='tags' type='text' value="sme" name='tags' />
<input type="hidden" id='remarks' type='text' name='extensionField_remarks' value='sample value' />
<INPUT TYPE="submit" NAME="button" Value="submit">
</FORM>
</BODY>
</HTML>
This returns the contact ID. I want to take the contact ID e.g.
<pre>http://10.233.141.19/ccp-webapp/ccp/socialcontact/F34445D5100001350000A8540AE98D13
And then poll this URL every 3 seconds to determine the "status" variable.
IF status is handled then perform popup to say "contact is handled" else perform pop up to state "please wait for an SME"
Has anyone done anything similar already that I could steal this from?!!!! I am thinking that this needs to be a bit of AJAX in HTML/Jscript that calls a JSP? Right?
Thanks in advance,
Andrew
</pre>
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
John Russell
Posts:
30
Join Date:
5/18/10
Recent Posts
RE: Social Miner Post status query app
Answer
3/8/12 7:18 PM as a reply to Andrew Fraser.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
You can just have some javascript that runs on the page that uses setTimeout or setInterval to periodically check. It can all be done on the client side.
http://www.elated.com/articles/javascript-timers-with-settimeout-and-setinterval/
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Andrew Fraser
Posts:
4
Join Date:
7/14/08
Recent Posts
RE: Social Miner Post status query app
Answer
3/8/12 8:33 PM as a reply to John Russell.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
Hi John - thanks for the speedy reply...this is great if I can do it in Javascript..and I get that the settimer can manage polling of the URL but how to I receive and parse the HTTP response in client javascript? I.e. I make the original HTTP GET of the form to create a social contact but how do I receive the response (firstly the social contact ID and with the later GET the "status" of the contact that is returned in XML) when running the app from a client browser in javascript?
Thanks - and sorry if this is a stupid question!
Andrew
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
John Russell
Posts:
30
Join Date:
5/18/10
Recent Posts
RE: Social Miner Post status query app
Answer
3/8/12 9:30 PM as a reply to Andrew Fraser.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
Jquery has ways of making simple requests and letting you parse the response. Check out here.
http://api.jquery.com/jQuery.get/
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Overview
Documentation
Community
Wiki
Search CDN
Go
By API/SDK:
Select an API
Application eXtension Platform (AXP)
Network Management - Active Network Abstraction (ANA)
Network Management - IP Solution Center (ISC)
Network Management - Network Analysis Module (NAM)
Network Management - Cisco Transport Manager (CTM)
Network Management - Managed Services Management Solution (MSMS)
Cisco Headset/Handset API
Cisco Unified Application Environment (CUAE)
Cisco Unified CM Administration XML (AXL)
Cisco Unified CM Call Detail Records (CDR)
Cisco Unified CM Extension Mobility API
Cisco Unified CM JTAPI (JTAPI)
Cisco Unified CM Log Collection
Cisco Unified CM Performance Monitoring
Cisco Unified CM Real-time Device & CTI Information
Cisco Unified CM Service Control
Cisco Unified CM Servicability XML
Cisco Unified CM SIP (SIP)
Cisco Unified CM SNMP/MIB
Cisco Unified CM TAPI (TAPI)
Cisco Unified CM Web Dialer (WebDialer)
Cisco Unified Communication Express Services Interface
Cisco Unified Presence (CUP)
Cisco Unified TCL IVR/Voice XML API
Cisco Unified Gatekeeper TMP API (GKTMPAPI)
Cisco Unity Connection Provisioning Interface (CUPI)
Cisco Unity Connection Messaging Interface (CUMI)
Computer Telephony Integration (CTI) Server C-API
Computer Telephony Integration (CTI) Server Protocol (GED 188)
Computer Telephony Integration (CTI) Object Server
Contact Center Enterprise/Hosted/ICM IVR PG Protocol (GED-125)
Contact Center Reporting (CCR)
Contact Center TCL IVR/Voice XML API
Customer Voice Portal (CVP)
Enterprise Contact Center Scripting (ECCS)
Enterprise Application Gateway Protocol (AGP)
Hardware eXtension Platform (HXP)
IP Phone Services (IPPS)
Mobility – Cisco Compatible Extensions Program
Mobility – Context-Aware Mobility(Location)
Mobility – Guest Access (GAP)
Mobility – Solution Verification
Meetingplace SOAP API (MPSA)
Smart Business Portal (SBP)
Unified Contact Center Express CTI (UCCXCTI)
WebEx - Connect
WebEx - Meeting Services