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










0















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.










share|improve this question
























  • 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















0















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.










share|improve this question
























  • 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













0












0








0








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.










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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

















  • 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












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
);



);













draft saved

draft discarded


















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















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Thal And Out Agency railway station See also References External links Navigation menuOfficial Web Site of Pakistan RailwaysArchivedOfficial Web Site of Pakistan Railwayseeexpanding ite

Understanding generators in Python2019 Community Moderator ElectionGenerator function not working pythonFor loop not executing two timesGenerators - Printing generated valuesWhy can a python generator only be used once?What exactly do generators do?What does the “yield” keyword do?What does “list comprehension” mean? How does it work and how can I use it?sklearn Kfold acces single fold instead of for loopIs a generator the callable? Which is the generator?Apply Border To Range Of Cells Using OpenpyxlCalling an external command in PythonWhat are metaclasses in Python?What is the difference between @staticmethod and @classmethod?Finding the index of an item given a list containing it in PythonDifference between append vs. extend list methods in PythonHow can I safely create a nested directory in Python?Does Python have a ternary conditional operator?Understanding slice notationUnderstanding Python super() with __init__() methodsDoes Python have a string 'contains' substring method?

How can I change the color of pagination dots of UIPageControl?How to change UIPageControl dotsIs there a way to change page indicator dots colorCustomize dot with image of UIPageControl at index 0 of UIPageControlNo visible @interface for 'NSObject<PageControlDelegate>' declares the selector 'pageControlPageDidChange:'How to change the color of pagination dots in UIPageControl with a different color per pagepagecontrol indicator custom image instead of DefaultChanging the colour of UIPageControl dots in MonoTouchpagecontrol selectable page visibility color?Alternative way to load ViewControllers on a UIPageControlHow to set only layer.border-color for UIpage control dots in swiftHow can I develop for iPhone using a Windows development machine?How to change the name of an iOS app?UITableView - change section header coloruipagecontrol indicator(dot)issueCustom UIPageControl dots color not changingchange the interspace between UIPageControl dotsHow to change Status Bar text color in iOSHow can I change image tintColor in iOS and WatchKitUIPageControl dots with larger space in between each dotsHow to change the color of pagination dots in UIPageControl with a different color per page