You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well, I love that tutorial since it is so simple and easy to work with. I only struggling how to make that same user comment on the post. Even if that would be the same user?So far I did create code like this:
<html>
<head><title>User blog</title>
</head>
<script src="https://cdn.steemjs.com/lib/latest/steem.min.js"></script>
<script language="javascript">
function postComment()
{
steem.broadcast.comment(
document.getElementById('postingKey').value, //posting wif
document.getElementById('username').value, // author, leave blank for new post
'steemtest', //firsttag
document.getElementById('username').value, // username
'name-of-my-test-article-post', // permlink
'', //posting title
document.getElementById('article').value,, //posting article text
// json metadata (addtional tags, app name)
{ tags: ['secoundtag'], app: 'steemtest'},
function(err, result) {
if(err)
alert('Failure!' + err);
else
alert('success!');
}
);
}
</script>
<body>
<br>
<br>
Username <input id="username" value="username" type="text"><br>
Password <input id="postingKey" type="password" value="" size="65"><br>
Title <input id="title" type="text" value="this is just a php test post"><br>
Article text <textarea id="article"></textarea><br>
<input id="postIt" type="button" value="Post It!" onclick="postComment()">
<br>
<br>
</body>
</html>
By looking at steem-js it should work but, it gives me ERCerror Unknown Key. How to fix that problem?
The text was updated successfully, but these errors were encountered:
Well, I love that tutorial since it is so simple and easy to work with. I only struggling how to make that same user comment on the post. Even if that would be the same user?So far I did create code like this:
By looking at steem-js it should work but, it gives me ERCerror Unknown Key. How to fix that problem?
The text was updated successfully, but these errors were encountered: