2
I am planning to make a software that publishes topics in a forum. The start screen will have a menu with all categories and subcategories, when choosing one I will open in the background a link (link to create a new topic), then the user will be redirected to another screen in which will have the title fields and content of the topic according to the category.
I wanted to know how I integrate, for example: Take the text of a "Title" field in my program and put in input
id subject
of the html page that is in the background.
Finally, I have a Javascript function on the upload button onClick
, how do the attribution actions and texts in the inputs and then call the function the onClick
?
If you could give me something to research, or an example to follow, I would be grateful, because I researched and found nothing like it.
Considering this HTML code:
<!DOCTYPE html>
<html>
<body>
<h1> Titulo </h1>
<form>
<input type="text" id="subject"/>
<input onclick="envia();" type="submit" id="envia" value="Enviar"/>
</form>
</body>
</html>
How to put a text on input
with ID subject
page, and when clicking the button the form call the function envia()
page?
Dude, I couldn’t quite figure out what you want to do. It’s like editing the question and trying to explain it better?
– Jéf Bueno
I will edit and put more details
– Leonardo
Use the Html Agility Pack.
– stderr
The post was edited
– Leonardo
I understand what you want to do because I’ve already created something similar, but your question is a little confusing. I have no experience in C# but in Java there is a framework called Htmlunit, through it you can fill the fields of an html page, press buttons, etc... I searched in Soen for something similar and found that question.
– Renan Gomes
Okay, I’ll take a look, thanks
– Leonardo