Vote count: 0 I have created a login page using some HTML/CSS and I want the user to enter a pre-determined password, if the password is correct, they can enter the site, if not, they can't. I have looked up a lot of tutorials/sites etc. but they either use Mongodb to create unique passwords or else use Passport which is not what I'm looking for. I realise having a pre-determined password is not best practice but it suits for the scope of what I'm doing. I plan to change it once I get a basic set up going. There is a fully functioning site when the user logs in, I just have very little experience with Node.js and not really sure how to handle the post request This is my the form part of my H...
ادامه مطلبVote count: 0 I have recently added two new fields to a form on a project I am working on and when I post/put a 'project', every field is uploaded except for the new ones, however, when I use Postman to post/put, those fields are sent and saved like all the others. When I console.log what is getting posted/put to the API, all the form data is there but only those two fields of 'price' and 'link' don't save to the api. I also have the form tied dynamically to what is being displayed and the when I make a PUT request, everything updates except the two fields that just retu to their original value. I'm trying for the life of me to figure out why this would be the case, double checking for any d...
ادامه مطلبVote count: -1 i want to get a value from JavaScript prompt and pass it to input for finally submit it function createdir(){ var newdiame; newdiame = prompt('Please input the directory name:', ''); if (!newdiame) retu; $('createdir').newdiame.value = newdiame; $('createdirForm').submit(); } asked 4 mins agoFrank Let's block ads! بخوانید...
ادامه مطلبVote count: 0 i have attribute for filter route. when i submit a form i want redirect to another controller with a filter attribute. my filter attribute name is spam attribute . now i have a code for change route public override void OnActionExecuting(ActionExecutingContext filterContext) { filterContext.Result = new RedirectToRouteResult(new System.Web.Routing.RouteValueDictionary(new { controller = "Error", action = "Index", ErrorCode = System.Net.HttpStatusCode.BadRequest, Handler = "Controller" })); base.OnActionExecuting(filterContext); } Now when i submit a form my filter is correct fine and i can redirect to Error controller but my page not change or not execute error page for me . An...
ادامه مطلبVote count: 0 I've checked a few pages online on how to disable a submit button of a dropdown box unless an option has been selected. But can't find one that works for me. Any help on how to do that would be great! Edit: I don't want -- select an option -- to be considered as an option -- select an option -- 1 2 3 4 5 asked 4 mins agoSat10 Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have this small form here: What I want to do is, when I click submit, the form should be hidden and only the input should appear: How can I achieve this with javascript ? edited 19 secs agoMatt asked 3 mins agolabas GamePage visogero Let's block ads! بخوانید...
ادامه مطلبVote count: 0 Ruing spark word Count program in eclipse using sbt build tool. Unable to coect to remote cloudera spark master ruing virtual box. I have used following code. The project structure is as follows. WordCount.scala is as follows package greeter import org.apache.spark.SparkConf import org.apache.spark.SparkContext import org.apache.spark.SparkContext._ object HelloSpark { def main(args: Array[String]) { val logFile = "file:C:\Users\Sat\Desktop\regex_sum_230158.txt" val conf = new SparkConf().setAppName("Simple Application").setMaster("spark://127.0.0.1:7077") val sc = new SparkContext(conf) val logData = sc.textFile(logFile) val numAs = logData.filter(line => line.contains("a")).c...
ادامه مطلبVote count: 0 I've doing search for my app, but now I have a strange problem. By typing letters into search view all works, but when I submit search, it brings to relaunching MainActivity.class and then, when I choose some film, project stops to working. I don't know, what happens. I'm begier and it's my first android app. My code: AndroidManifeest.xml activity_main.xml...
ادامه مطلبVote count: 0 My requirement is when I click the Check Out button both form data i need to submit. Is it possible if we give same transition name in both the forms. asked 41 secs agoDebendu Das Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I am Sarower Zahan.I am from Bangladesh.How to submit visa e-token info to this site while the site is showing overloaded false traffic from my pc but for others it is showing no false traffic,they(only a few persion who make this site busy)can work but We(too many persions) can not .I get this site fully free all the time except the time I submit the visa info and the time is locally from 12 PM to 12:30 PM.Note that they(hacker or only a few persion who make this site busy) work on a specific operating system which work but except this one all other operating system does not work.Please now give me suggestions for how I can make this site free while submitting my visa e-token ...
ادامه مطلبVote count: 0 public function Link() { $id=$this->params['id']; $url=$this->params['url']; $dviId=$this->params['divId']; $url=Yii::$app->urlManager->createAbsoluteUrl($url); $js2="$('#".$id."').on('click', function() { $.ajax({url: '".$url."',type: 'POST',success : function(res){ $('#".$dviId."').html(res);}});});"; $view = $this->getView(); AjaxAsset::register($view); if ($js2 !== '') { $view->registerJs($js2); } retu ; } i am using ajax for send active form by this function And want to show error if any happened else send form edited 2 mins agoShadow Wizard asked 4 mins agomasiha68 Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I am using Ajax to refresh two separte Divs at a ten second interval each: $(document).ready(function(){ var timer, delay = 10000; // 10 seconds counted in milliseconds. var ID = $("td :submit").val(); var info = {'userID': ID}; timer = setInterval(function(){ $.ajax({ url: "inc/ans.php", type: "POST", data: info, success:function(data) { $("div #ans").html(data); } }); }, delay); var timer, delay = 10000; // 10 seconds counted in milliseconds. var ID = $("td :submit").val(); var Pts = ''; var info = {'userPts': Pts}; timer = setInterval(function(){ $.ajax({ url: "inc/score_I.php", type: "POST", data: info, success:function(data){ $("div #scores").html(data); } }); }, delay); }...
ادامه مطلبVote count: 0 I have a view that has a delete button on it that makes a form in each row of the table @using (Html.BeginForm("Delete", "FP/WorkItem", new { fId = Model.FPId, workId = @w.FId })) { } that works all well and good but i don't want the crummy alert dialog. I want to use a nice thing like bootbox. So i modify this to add some js: $("input[name = 'deleteWorkItem']").click(function (e) { //retu confirm('Delete selected item?'); e.preventDefault(); bootbox.confirm("Delete selected item?", function (result) { retu result; }); }); without the preventDefault the confirm box never appears. with the preventDefault the form doesn't post back if the user decides to not delete. How can i hav...
ادامه مطلبVote count: 0 I know there are lot of question regarding the same title, but unfortunately I didn't find a working solution yet, thus I'm posting another. I'm trying to load simplest google map view and it is not loading at all when page loading or after form submission. however when I refresh the page it is always loading properly. code : .map-container{width: 100%;height: 400px;} #map{overflow: hidden;position: relative;width: 100%;height: 100%;} var map = new google.maps.Map(document.getElementById('map'), { zoom: 2, minZoom:1, center: new google.maps.LatLng(15, 0), mapTypeId: google.maps.MapTypeId.TERRAIN }); /* I have already tried this code as well without success google.maps.event.add...
ادامه مطلبVote count: 0 I am trying to figure out how to submit button with two actions based on dropdown list that I get from mysql.One is for updating to database and then proceed to nextpage while the other actions is to proceed to specific page.I've tried all the solution but most of them only has a few dropdown menu,mine have 40 menus. This is my Js $(window).load(function(){ //$(document).ready(function() { $('#lst_respon').change(function() { if ($(this).find(":selected").val()!='11') { $('#button').attr('disabled',true); } else { $('#button').removeAttr('disabled'); } }); $('#lst_respon').change(function() { $('#form1').submit(); }); }); function changeTextBox() { var val=$('#lst_respon').val(...
ادامه مطلبVote count: 0 In the traditional C CUDA programming, I compile the .cu code to executable using nvcc and submit it to the SLURM cluster job scheduler using a job script and appropriate #SBATCH directives eg. #SBATCH --nodes=1 #SBATCH --ntasks=1 #SBATCH --partition=gpu module load cuda ./myexe However, since python is interpreted no executable is produced. How should such code be submitted to the scheduler? asked 1 min agoKetan This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....
ادامه مطلبVote count: 0 I put a recaptcha in a signup form with angular2. I have a controller to match the recaptcha with a validator required. this.captchaControl = fb.control(false, Validators.required); this.userForm = fb.group({ ... captchaControl: this.captchaControl }); And the value is correctly set to true when the user answer it. checkReCaptcha(response){ console.log(this.userForm.valid); this.captcha = response; this.captchaControl.updateValue(true); console.log(this.userForm.valid); } The first console log show false, the second print true. In the submit button, I put the disable function: Register But the button stay disable. How can I trigger the button to check again the validity of user...
ادامه مطلبVote count: 0 I am making a health questioaire, I am having a few problems with it. The main problem is the submit button wont work. Can someone tell me why it isnt working? The code I have is: Assignment 4 Please enter the following details: First Name:size="20" maxlength="20"> Suame:size="30" maxlength="20"> Age: Address Line 1: Address Line 2: City: County: Post Code: function validateForm_onclick() { var myForm = document.form1; if(myForm.txtAge.value === "" || myForm.txtFirstName.value === ""|| myForm.txtSurName.value === ""|| myForm.txtAddressline1.value === ""|| myForm.txtAddressline2.value === ""|| myForm.txtCity.value === ""|| myForm.txtCounty.value === ""|| myForm.txtPostCode.value...
ادامه مطلبVote count: 0 function confirmdelete() { retu swal({ title: 'Are you sure?', text: 'You will not be able to recover this imaginary file!', type: 'waing', showCancelButton: true, confirmButtonColor: '#3085d6', cancelButtonColor: '#d33', confirmButtonText: 'Yes, delete it!', closeOnConfirm: false }, function() { swal( 'Deleted!', 'Your file has been deleted.', 'success' ); }); }...
ادامه مطلبVote count: 0 I am currently do a form page on a tabular form and I detect when a change has been made to the form. If a change has been made to a form and you submit the page (either cancel button or choosing a filter), a confirm box appears which asks you if you want to continue since you will lose all unsaved changes. Now if the user selects Ok, he continues with the page submit. If the user selects cancel the page submission stops. This is where I need help because the filter that starts the page submit process does not go back to its original value, and the tabular form does not filter. Where I am at: I am currently getting the original value of the filter before the page submit request...
ادامه مطلب