Filling in HTML select tag from C++ addon function call2019 Community Moderator ElectionTrigger a button click with JavaScript on the Enter key in a text boxWhat is the best way to add options to a select from as a JS object with jQuery?How to store arbitrary data for some HTML tagsWhere should I put <script> tags in HTML markup?Get selected text from a drop-down list (select box) using jQueryHow to decide when to use Node.js?In Node.js, how do I “include” functions from my other files?How to dynamically change header based on AngularJS partial view?How do I return the response from an asynchronous call?Understanding unique keys for array children in React.js
What is Tony Stark injecting into himself in Iron Man 3?
Finding the minimum value of a function without using Calculus
What do you call someone who likes to pick fights?
How to copy the rest of lines of a file to another file
How can a demon take control of a human body during REM sleep?
Translation of 答えを知っている人はいませんでした
What is the "determinant" of two vectors?
Movie: boy escapes the real world and goes to a fantasy world with big furry trolls
Why aren't there more Gauls like Obelix?
PTIJ: Who was the sixth set of priestly clothes for?
Is it possible to clone a polymorphic object without manually adding overridden clone method into each derived class in C++?
Factor Rings over Finite Fields
Difference between `nmap local-IP-address` and `nmap localhost`
Having the player face themselves after the mid-game
Locked Away- What am I?
Computation logic of Partway in TikZ
What will happen if my luggage gets delayed?
I reported the illegal activity of my boss to his boss. My boss found out. Now I am being punished. What should I do?
What does the Digital Threat scope actually do?
Rationale to prefer local variables over instance variables?
School performs periodic password audits. Is my password compromised?
Is it appropriate to ask a former professor to order a book for me through an inter-library loan?
Do Paladin Auras of Differing Oaths Stack?
What is the purpose of a disclaimer like "this is not legal advice"?
Filling in HTML select tag from C++ addon function call
2019 Community Moderator ElectionTrigger a button click with JavaScript on the Enter key in a text boxWhat is the best way to add options to a select from as a JS object with jQuery?How to store arbitrary data for some HTML tagsWhere should I put <script> tags in HTML markup?Get selected text from a drop-down list (select box) using jQueryHow to decide when to use Node.js?In Node.js, how do I “include” functions from my other files?How to dynamically change header based on AngularJS partial view?How do I return the response from an asynchronous call?Understanding unique keys for array children in React.js
I'm just not sure how to approach this. I have a blank select tag in my HTML with JS handling click events. I then have a addon built that builds some objects from other sources each containing an unique identifying string.
How would I go about filling in the select tag from the data in the addon?
I can't find a way to fill it in the C++ addon, but I also can't think of a clean way to have the Javascript call a single function to fill it in completely.
javascript node.js node.js-addon node-addon-api
add a comment |
I'm just not sure how to approach this. I have a blank select tag in my HTML with JS handling click events. I then have a addon built that builds some objects from other sources each containing an unique identifying string.
How would I go about filling in the select tag from the data in the addon?
I can't find a way to fill it in the C++ addon, but I also can't think of a clean way to have the Javascript call a single function to fill it in completely.
javascript node.js node.js-addon node-addon-api
there is not enough information here to understand the problem. it's not at all clear that there is any need for a C++ addon to fill in portions of HTML, try providing some background and maybe some code too.
– bmacnaughton
2 days ago
Can't provide any code because I'm not even sure of how to approach this. I need the addon to fill it in because the addon accesses system resources (addon is for an Electron app) to fill in the selection at runtime.
– Yang Lu
2 days ago
Is there an HTML template that must be filled in? What must be filled in? Why is it not possible for the addon to return the system resources-derived information and let JavaScript fill in the tags? You don't provide an example of anything that allows anyone to formulate an answer.
– bmacnaughton
2 days ago
add a comment |
I'm just not sure how to approach this. I have a blank select tag in my HTML with JS handling click events. I then have a addon built that builds some objects from other sources each containing an unique identifying string.
How would I go about filling in the select tag from the data in the addon?
I can't find a way to fill it in the C++ addon, but I also can't think of a clean way to have the Javascript call a single function to fill it in completely.
javascript node.js node.js-addon node-addon-api
I'm just not sure how to approach this. I have a blank select tag in my HTML with JS handling click events. I then have a addon built that builds some objects from other sources each containing an unique identifying string.
How would I go about filling in the select tag from the data in the addon?
I can't find a way to fill it in the C++ addon, but I also can't think of a clean way to have the Javascript call a single function to fill it in completely.
javascript node.js node.js-addon node-addon-api
javascript node.js node.js-addon node-addon-api
edited Mar 6 at 23:08
Yang Lu
asked Mar 6 at 23:01
Yang LuYang Lu
12
12
there is not enough information here to understand the problem. it's not at all clear that there is any need for a C++ addon to fill in portions of HTML, try providing some background and maybe some code too.
– bmacnaughton
2 days ago
Can't provide any code because I'm not even sure of how to approach this. I need the addon to fill it in because the addon accesses system resources (addon is for an Electron app) to fill in the selection at runtime.
– Yang Lu
2 days ago
Is there an HTML template that must be filled in? What must be filled in? Why is it not possible for the addon to return the system resources-derived information and let JavaScript fill in the tags? You don't provide an example of anything that allows anyone to formulate an answer.
– bmacnaughton
2 days ago
add a comment |
there is not enough information here to understand the problem. it's not at all clear that there is any need for a C++ addon to fill in portions of HTML, try providing some background and maybe some code too.
– bmacnaughton
2 days ago
Can't provide any code because I'm not even sure of how to approach this. I need the addon to fill it in because the addon accesses system resources (addon is for an Electron app) to fill in the selection at runtime.
– Yang Lu
2 days ago
Is there an HTML template that must be filled in? What must be filled in? Why is it not possible for the addon to return the system resources-derived information and let JavaScript fill in the tags? You don't provide an example of anything that allows anyone to formulate an answer.
– bmacnaughton
2 days ago
there is not enough information here to understand the problem. it's not at all clear that there is any need for a C++ addon to fill in portions of HTML, try providing some background and maybe some code too.
– bmacnaughton
2 days ago
there is not enough information here to understand the problem. it's not at all clear that there is any need for a C++ addon to fill in portions of HTML, try providing some background and maybe some code too.
– bmacnaughton
2 days ago
Can't provide any code because I'm not even sure of how to approach this. I need the addon to fill it in because the addon accesses system resources (addon is for an Electron app) to fill in the selection at runtime.
– Yang Lu
2 days ago
Can't provide any code because I'm not even sure of how to approach this. I need the addon to fill it in because the addon accesses system resources (addon is for an Electron app) to fill in the selection at runtime.
– Yang Lu
2 days ago
Is there an HTML template that must be filled in? What must be filled in? Why is it not possible for the addon to return the system resources-derived information and let JavaScript fill in the tags? You don't provide an example of anything that allows anyone to formulate an answer.
– bmacnaughton
2 days ago
Is there an HTML template that must be filled in? What must be filled in? Why is it not possible for the addon to return the system resources-derived information and let JavaScript fill in the tags? You don't provide an example of anything that allows anyone to formulate an answer.
– bmacnaughton
2 days ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55033575%2ffilling-in-html-select-tag-from-c-addon-function-call%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55033575%2ffilling-in-html-select-tag-from-c-addon-function-call%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
there is not enough information here to understand the problem. it's not at all clear that there is any need for a C++ addon to fill in portions of HTML, try providing some background and maybe some code too.
– bmacnaughton
2 days ago
Can't provide any code because I'm not even sure of how to approach this. I need the addon to fill it in because the addon accesses system resources (addon is for an Electron app) to fill in the selection at runtime.
– Yang Lu
2 days ago
Is there an HTML template that must be filled in? What must be filled in? Why is it not possible for the addon to return the system resources-derived information and let JavaScript fill in the tags? You don't provide an example of anything that allows anyone to formulate an answer.
– bmacnaughton
2 days ago