Log In
Developer Network
Technologies
Join the Network
Member Services
Events & Community
SocialMiner Developer Center
Overview
Documentation
Community
Wiki
Blogs
SocialMiner 9.0(1)
David Lender
20 Jun 2012
SocialMiner 8.5(5)
David Lender
31 Jan 2012
SocialMiner 8.5(4)
David Lender
29 Sep 2011
SocialMiner 8.5(3)
David Lender
23 Aug 2011
SocialMiner 8.5(2)
David Lender
09 Jun 2011
Showing 1 - 5 of 8 results.
Items per Page 5
Page
(Changing the value of this field will reload the page.)
1
2
of 2
First
Previous
Next
Last
Forums
Message Boards Home
Recent Posts
Statistics
Answer
(
Unmark
)
Mark as an Answer
« Back to Technical Discussion
Social Miner Post status query app
Threads [
Previous
|
Next
]
Social Miner Post status query app
Andrew Fraser
3/8/12 6:06 PM
RE: Social Miner Post status query app
John Russell
3/8/12 7:18 PM
RE: Social Miner Post status query app
Andrew Fraser
3/8/12 8:33 PM
RE: Social Miner Post status query app
John Russell
3/8/12 9:30 PM
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
Collateral
No files available