Files
2012-02-21 01:15:00 -05:00

1 line
2.9 KiB
JSON

[{"user_id": 39326, "stars": [], "topic_id": 43326, "date_created": 1312507670.2321091, "message": "BTW, is there a way in Convore to edit just-posted messages? I wanted to tweak the above after I saw how it was rendered, but the only option I can see is to delete and rewrite the entire posting. I have the feeling that I'm probably missing something obvious.", "group_id": 236, "id": 1798663}, {"user_id": 39326, "stars": [], "topic_id": 43326, "date_created": 1312505589.165745, "message": "**And yes, I'm a noobie**I wrote JavaScript code that scrapes values from an HTML page. To develop and test, I copied the source from the target page and created my test pages from that. I then added JavaScript to those pages to get the functionality I wanted.\nNow, I want to use Kynetx to take that JavaScript code and apply it to the live target page. How do I take JavaScript functions and put it into a Kynetx application? How do I then kickoff a JavaScript function to initiate the activity from within a Kynetx rule?\nAs an example, the much simplified HTML code below declares a JavaScript function and executes it.\n<!doctype html public \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n<html>\n<body><h1>I got your HTML right here</h1>\n\n<script text/javascript>\n\ntestfun = function (){\n\talert ( \"Yeehaw! JavaScript is working!\" );\n\t};\n\t\ntestfun();\t\n</script>\n</body></html>\n\nI want to put \"testfun\" into a Kynetx app and execute it from a rule", "group_id": 236, "id": 1798464}, {"user_id": 30494, "stars": [], "topic_id": 43326, "date_created": 1312548447.834054, "message": "dispatch {\n\t\tdomain \"*\"\n\t}", "group_id": 236, "id": 1801553}, {"user_id": 30494, "stars": [], "topic_id": 43326, "date_created": 1312547922.7475221, "message": "@Dwight you can only delete / rewrite on convore", "group_id": 236, "id": 1801505}, {"user_id": 30494, "stars": [], "topic_id": 43326, "date_created": 1312548150.312212, "message": "@Dwight the following rule does what you need", "group_id": 236, "id": 1801523}, {"user_id": 30494, "stars": [], "topic_id": 43326, "date_created": 1312548391.49266, "message": "use", "group_id": 236, "id": 1801543}, {"user_id": 30494, "stars": [], "topic_id": 43326, "date_created": 1312548475.477318, "message": "so that the ruleset gets evaluated on any page", "group_id": 236, "id": 1801556}, {"user_id": 30494, "stars": [], "topic_id": 43326, "date_created": 1312548235.228708, "message": "rule first_rule {\nselect when pageview \".*\" setting ()\n pre {\n\t\t\n }\n {\n emit <<\n testfun = function (){\n alert ( \"Yeehaw! JavaScript is working!\" );\n };\n testfun(); \n >>\n }\n}", "group_id": 236, "id": 1801529}, {"user_id": 39326, "stars": [], "topic_id": 43326, "date_created": 1312551423.722048, "message": "Thanks! That worked. Time to muddy it up now with the full code and see how that works", "group_id": 236, "id": 1801835}]