Python Ouroboros - The Rotating Knives

Messages from the Python room that didn't meet our standards o...
Jun 13, 2021 06:59
Can anyone please help me out
Jun 13, 2021 06:59
-1
Q: my question is about a Program regarding chessboad's color iversion and maximal rectangle that can be formed?

user14Problem Statement 13 Mr. Tom has just gifted his son a chessboard. The chessboard is kind of weird and contains black and white cells in random order. The black cell is represented by "B" and the while cell by "W". Now Mr. Tom wants his son to solve a problem for him so that he knows whether his ...

 

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
May 28, 2020 14:37
But there is another issue for me
May 28, 2020 14:37
Thanks a lot it worked for me
May 28, 2020 14:36
@KevinB I have required body parser but haven't used it
May 28, 2020 14:31
How?
May 28, 2020 14:30
so what can I do now
May 28, 2020 14:29
ok
May 28, 2020 14:29
can you tell me clearly
May 28, 2020 14:29
@KevinB yes but I have written emailId as a name for the input
May 28, 2020 14:28
@KevinB req.body is used to get values right
May 28, 2020 14:26
@KevinB at console.log(req.body.emailId)
May 28, 2020 14:25
ok.So how can I resolve this?
May 28, 2020 14:23
    <div class="form-group">
				<form action="/wyg_email" method="post" name="what_you_got_email" class="form">
            		<input type="email" class="form-control" name="emailId" id="Email-ID" aria-describedby="emailHelp" placeholder="Enter email"><button  type="submit" class="click" onclick="alert_email()"><span>Submit </span></button>
        		</form>
        	</div>
May 28, 2020 14:22
@KevinB It was saying that the emailId was of undefined type but I have mentioned it in input tag
May 28, 2020 14:18
but am not able to get the values and getting an error like TypeError: Cannot read property 'emailId' of undefined
at F:\mysql-test\instarecipes.js:77:23
at Layer.handle [as handle_request] (F:\mysql-test\node_modules\express\lib\router\layer.js:95:5)
at next (F:\mysql-test\node_modules\express\lib\router\route.js:137:13)
at Route.dispatch (F:\mysql-test\node_modules\express\lib\router\route.js:112:3)
at Layer.handle [as handle_request] (F:\mysql-test\node_modules\express\lib\router\layer.js:95:5)
May 28, 2020 14:17
yes
May 28, 2020 14:16
@JBis no
May 28, 2020 14:16
@JBis am just using it to get the value on cmd
May 28, 2020 14:14
@JBis yes
May 28, 2020 14:13
function alert_email(){
                    	var email = document.getElementById('Email-ID').dataset.value;
                    	if(email.length == 0)
                    	{
                    		alert("Please enter Your email id.")
                    	}
                    	else{
                    		alert("Thank you,Your email got submitted");
                    	}
                    }
May 28, 2020 14:12
but am able to get values when I run this as a html file
May 28, 2020 14:12
app.post('/wyg_email', function(req, res){

	console.log(req.body.emailId);

	var email = req.body.emailId;

	var sql = "INSERT INTO whatyougot_mail(email) VALUES(' "+ email +"')";
	con.query(sql,function (err, result) {
        	if(err) throw err;
        	console.log("1 record inserted");
	  });
	res.render('whatYouGot');

});
May 28, 2020 14:11
@JBis ok
May 28, 2020 14:06
ok
May 28, 2020 14:05
as I am getting an error like cannot read property
May 28, 2020 14:05
but am not able to get them
May 28, 2020 14:05
ActuallY I am trying to get values from ejs page to my node js using req.body
May 28, 2020 14:03
Javascript in ejs is not running through nodejs.Can anybody help me?
May 28, 2020 14:02
Javascript in ejs is not running through node.js.can anybody help me?
May 27, 2020 17:27
Hello all.Can anyone help me regarding this issue.stackoverflow.com/q/62043618/12500647
May 27, 2020 17:01
Can anybody solve this for me?stackoverflow.com/q/62043618/12500647
May 27, 2020 15:57
Hi all.Can anybody help me to solve my issue regarding nodejs?
May 21, 2020 10:23
Actually I have return my code in node.js.It's working but when I run my html page linked to node.js,after clicking submit I am able to run my nodejs but at the time of rendering to ejs page,I am able to get that ejs page opened in the same tab itself where I have html page.But I need that ejs page to be open up in other tab
May 21, 2020 10:19
I need some help regarding node.js
May 21, 2020 10:18
Hi all
 

Trash can

Like the recycle bin, but trashier.
May 28, 2020 14:08
:49492573 <div class="form-group">
<form action="/wyg_email" method="post" name="what_you_got_email" class="form">
<input type="email" class="form-control" name="emailId" id="Email-ID" aria-describedby="emailHelp" placeholder="Enter email"><button type="submit" class="click" onclick="alert_email()"><span>Submit </span></button>
</form>
</div> this is my ejs code
 
May 21, 2020 10:26
Actually I have return my code in node.js.It's working but when I run my html page linked to node.js,after clicking submit I am able to run my nodejs but at the time of rendering to ejs page,I am able to get that ejs page opened in the same tab itself where I have html page.But I need that ejs page to be open up in other tab.Is it possible?If possible how can I do it?
May 21, 2020 10:25
Hi.
 

HTML / CSS / WebDesign

This room is now defunct. RIP.
May 20, 2020 16:39
Can anybody help me regarding this issue?
May 20, 2020 16:38
as I am using nodejs,ejs and html,css for my website
May 20, 2020 16:38
And now I want help in working with ejs
May 20, 2020 16:36
@TylerH Thank you.
 

Tamil iOS and Web Developers

We will help what you need! Note: This room is not only for Ta...
May 20, 2020 13:15
Can anybody help me in working with ejs?
May 20, 2020 13:15
Hi
 
May 20, 2020 13:10
Can you help me in working with ejs?/
May 20, 2020 13:10
Hi
 
May 20, 2020 13:06
am sorry,thank you
May 20, 2020 13:05
Can anybody here help me in working with ejs
May 20, 2020 13:04
Hi