i have been trying to upload image files in to my database but i failed in many ways, the form saves everything except the image files. i am not sure if its the php or the java or the html page, honestly i lost my path. i have included all my pages, any help would mean a lot, thanks!!! <html> <head> <meta charset="utf-8"> <title>PYB Register Bike</title> <link href="bootstrap-3.3.7/dist/css/bootstrap-theme.min.css" rel="stylesheet"> <!--styling css link --> <link href="bootstrap-3.3.7/dist/css/bootstrap.min.css" rel="stylesheet"> <!-- styling css link --> <link href="font-awesome-4.7.0/css/font-awesome.min.css" rel="stylesheet"> <!-- styling css link --> <link rel="stylesheet" href="../ProtectYourBike.css"> <!-- CSS Reference --> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js"></script> <script src="http://malsup.github.com/jquery.form.js"></script> …

Member Avatar
Member Avatar
+0 forum 1

Hi All, I have a PHP code which do some changes to the POST variables it receives and redirect the page to some other page. This PHP code was initially designed to work without Ajax. So there wasn't any problem with the redirect function and it perfectly handles the POSt variables and redirect the user to another page. So now I want to use the same PHP code with Ajax... :) I tried it and and it did not gave me the results I was expecting. Problem is with the redirect function. Other PHP lines execute perfectly fine( it stores …

Member Avatar
Member Avatar
+0 forum 8

Hey everyone, this code below is giving me a weird error, Script 438: Object doesn't support property or method 'ajax'. I am testing this in Microsoft Edge, but...I have a website that uses this exact same code, and its working like normal. I am getting the `var id` to load properly, I am not sure why it is not working, since, its working on the other site. I copied and pasted the code to match exact. anywho, its stating that it at the `$.ajax({` line. <script> $(function(){ $('.get-msg').click(function(){ var id = $(this).attr('data-id'); $.ajax({ type : 'GET', url : 'viewmessage.php', data …

Member Avatar
Member Avatar
+0 forum 4

> this is php code for get value while ($row = $activeRiders->fetch(PDO::FETCH_ASSOC)){ $rider_name = $row['RiderName']; $longitude = $row['CurrentLongitude']; $latitude = $row['CurrentLatitude']; $locations[]=array( $rider_name, $latitude, $longitude ); } $markers = json_encode( $locations ); > Jquery function $(document).ready(function() { $('#map').height($('.page-container').height()); $( window ).resize(function() { $('#map').height($('.page-container').height()); }); <?php echo "var markers=$markers;\n"; ?> > Initialize Map map = new GMaps({ el: '#map', lat: 24.8615, lng: 67.0099, zoom: 12, zoomControl : true, zoomControlOpt: { style : 'SMALL', position: 'TOP_LEFT' }, circleOptions: { fillColor: '#ffff00', fillOpacity: 1, strokeWeight: 5, clickable: false, editable: true, zIndex: 1 }, panControl : false, streetViewControl : false, mapTypeControl: false, overviewMapControl: false, …

Member Avatar
+0 forum 0

<div class="list-group"> <div id="id1" class="list-group-item" data-target="@Url.Action("Index","DayilyProposials")" > <span class="badge" style="font-size:10px;color:#fff" id="DailyPropNumber">0</span> <span style="font-size:10px;font-weight: 900;font-weight: 900;">Daily Proposals</span> </div> <div id="id1" class="list-group-item" data-target="@Url.Action("HotG","home")"> <span class="badge" style="font-size:10px;color:#fff" id="HotGamesNumber">0</span> <span style="font-size:10px;font-weight: 900;">@index.Index.hotgames</span> </div> <div id="id1" class="list-group-item" data-target="@Url.Action("Index","home")"> <span class="badge"style="font-size:10px;color:#fff" id="TodayNumber">0</span> <span style="font-size:10px;font-weight: 900;">Today</span> </div> <div id="id1" class="list-group-item" data-target="@Url.Action("Index","home")"> <span class="badge" style="font-size:10px;color:#fff" id="ByTimeNumber">0</span> <span style="font-size:10px;font-weight: 900;">@index.Index.bytime</span> </div> <div id="id1" class="list-group-item" data-target="@Url.Action("Live", "home")"> <span class="badge" style="font-size:10px;color:#fff" id="LiveMatchesNumber">0</span> <span style="font-size:10px;font-weight: 900;">@index.Index.livematches</span> </div> </div> this is my script $(function(){ $.ajaxSetup ({ cache: false }); var ajax_load = "<img src='http://automobiles.honda.com/images/current-offers/small-loading.gif' alt='loading...' />"; var loadUrl = $(this).attr("data-target"); $("#id1").click(function(){ $("#mainInfo").html(ajax_load).load(loadUrl); }); });

Member Avatar
Member Avatar
+0 forum 1

Hi Dynamic Dependent Select Box last one not working Bank,State,District is working branch ont working please check below code Please help. index.php <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <style type="text/css"> .select-boxes{width: 280px;text-align: center;} select { background-color: #F5F5F5; border: 1px double #FB4314; color: #55BB91; font-family: Georgia; font-weight: bold; font-size: 14px; height: 39px; padding: 7px 8px; width: 250px; outline: none; margin: 10px 0 10px 0; } select option{ font-family: Georgia; font-size: 14px; } </style> <script src="jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $('#country').on('change',function(){ var countryID = $(this).val(); if(countryID){ $.ajax({ type:'POST', url:'ajaxData.php', data:'country_id='+countryID, success:function(html){ $('#state').html(html); $('#city').html('<option value="">Select District</option>'); } }); }else{ $('#state').html('<option value="">Select Bank</option>'); $('#city').html('<option value="">Select State</option>'); …

Member Avatar
+0 forum 0

Hi all, I had created a function updateprintingqc() that work like this 1. user will click on a clickable button to update the data 2.when user click on OK,the dummy data will be create based on the main data shown in below image's link https://drive.google.com/file/d/0B46VQHVMeBTNMzVodDRxZEw3dGs/view?usp=sharing When the user click the button for the 1st time,the function work fine.But when the user click on the button for the 2nd time,error occur. Here's my coding in javascript function updateprintingqc(this_, idschedule,idmsul,articleno,part_name,remain) { var conf = confirm("Are you choose to Update this Row of Record?"); if (conf == true) { var url = "msp/updateqc?id=" …

Member Avatar
Member Avatar
+0 forum 2

I have site using php frame work codigniter where I am using the mattdiamond/Recorderjs to record an audio file in blob content type then i am uploading it to the server but it is taking top much time to upload I want to minimize my uploading time. Max size of audio file is 4mb and it is taking 1 minute to 4 minutes for uploading to server. $(document).on("click", "#save:not(.disabled)", function(){ Fr.voice.export(function(blob){ var formData = new FormData(); formData.append('file.wav', blob); formData.append('question_id',question_id); formData.append('test_id',test_id); formData.append('section_id',section_id); formData.append('sub_section_id',sub_section_id); $.ajax({ url: "https://www.example.com/pte/upload", type: 'POST', data: formData, contentType: false, processData: false, success: function(response) { if(response.status=="success"){ $('#recording-status').html("Recording save successfully."); …

Member Avatar
Member Avatar
+0 forum 1

Hello every One i have been trying this for a day but can't able to find out what i am doing wrong? Here Class proxy function which gives me access token and refresh token after user enter it's username and password by ajax request i send request to controller where proxy controller function is called private function proxy($grantType, array $data = []) { try { $config = app()->make('config'); $data = array_merge([ 'client_id' => 'm492pkQPkw5YGa2sBRFvLKPSfkhy9yLbU52DiyDL', 'client_secret' => 'X96evDo1jq067VMzQoq8UC4iMlfFmm2DTjPQCHba', 'grant_type' => $grantType ], $data); $client = new Client(); $guzzleResponse = $client->post(sprintf('%s/api/auth/authorize', $config->get('app.url')), [ 'form_params' => $data ]); } catch(\GuzzleHttp\Exception\BadResponseException $e) { $guzzleResponse …

Member Avatar
Member Avatar
+0 forum 1

so my newest problem! i have a save button and that save button already has the insert into query and working fine now what i wanna do is when the user clicks on the save button what it does first is, it checks if a record of that user already exists and if there already is a record in regards to that user then instead of inserting it will update the table. and if there isnt a record then it will just insert. what i have so far: <?php include('connect.php'); if(isset($_POST['action']) && $_POST['action'] === 'saveIteration'){ $distanta = $_POST['distanta']; $durata_calatorie = …

Member Avatar
Member Avatar
+0 forum 1

Hello, I have two submit buttons(submit OTP & Resend OTP) in form. I need model validation(submit OTP) on one button(if OTP is not entered) and on second button(Resend OTP), it should post/submit(send OTP in Email) the form. on server side, I'll check formaction and will do diff. operations for both buttons. Thanks.

Member Avatar
Member Avatar
+0 forum 2

Cannot get this to refresh. My code is below. I am propably doing something silly, but I cannot figure it out... var auto_refresh = setInterval( function(e) { var email = '<?php echo $_SESSION['user_email']?>'; console.log(email); e.preventDefault(); $.ajax({ type : 'GET', url : 'count_record.php', // in here you should put your query data : 'email='+ email, // here you pass your id via ajax . // in php you should use $_POST['post_id'] to get this value success : function(r){ // now you can show output in your modal $('#messages1').load(r).fadeIn("slow"); }:15000); } });

Member Avatar
Member Avatar
+0 forum 1

Hello, I'm having trouble posting JSON to a url using Flask, AJAX and Javascript. Essentially, I would code using a library [Jquery Sortable](https://johnny.github.io/jquery-sortable/) to create a sorted list. From that sorted list I want to post to the server. The problem is that the server does not recieve the JSON post at all (or rather it doesn't know the content type). Now I've experimetned with multipe methods and it has led me to this issue of not posting. The information is posted below: {% extends "base.html" %} {%block title %}{{Title_Program}}{%endblock%} {% block styles %} {{super()}} <!-- In <head> --> <style …

Member Avatar
+0 forum 0

How can I validate each of (upper textboxes) using AJAX to see if the username and password is correct and if they are not correct, display the error messages in red below each respective textbox. Here is my code. Any suggestions would be help. <html> <h1>Welcome to Cuyahoga Community College Student Services Online</h1> <p>Cuyahoga Community College recognizes students' rights to access personal and academic records in accordance with the Family Educational Rights and Privacy Act of 1974 (FERPA) as amended by Public Law 93-568.</p> </div> <br/> <div class="content"> <div class="row top"> <p id="para1">Already have an account with us? Returning users …

Member Avatar
Member Avatar
+0 forum 1

How can I get my current content to slide to the left and bring in new content from the right (after clicking on button 1) when an existing student's username and password are correct, and if it's not correct display error messages that either the username or password isn't correct below each respective textbox .I am thinking about using an if/else condition. Also, how would I load the student's existing account information upon sliding it from the right, if I haven't created the content yet? If I already created the content to be slide in from the right, where do …

Member Avatar
+0 forum 0

These are the options available in t_plan table id plan_name -- --------- 4 - free 5 - Gold 6 - Silver 7 - Platinum etc My object is to as user click on an option in the form it will populate the following input boxes next to select box from the data of t_plan table. So i store the id of plan in a hidden inputbox and send that value to controller so that it can fetch the corrosponing data from the t_plan table and populate the following. PLAN-PRICE RESUME-LIMIT DAY-LIMIT JOB-LIMIT NO-OF-USER-ALLOW Here is my code(in view) ------------------------ <script> …

Member Avatar
Member Avatar
+0 forum 1

HELP HELP HELP!!! I need an assistant on a project am working on using php/javascript. Its a forced matrix. HOW DOES IT WORK? A person is automatically assigned three downlines without any referral based on id. Starting with the admin, lets say 100 persons register, three will be placed under the first id, which is the admin. They have a limited period of time to make payment. The timer starts ticking once they are matched. The admin will see the three persons matched to pay him and the three people will all see the admin in there dashboard. Any body …

Member Avatar
Member Avatar
-2 forum 8

Hello, I have requirement to read MS Word file data using DevExp and then loop through the content and save content to DB. how can I do it with DevExp? Thanks, KK

Member Avatar
Member Avatar
+0 forum 1

I have the pagination portion working as I would like it, but I am unsure of how to get the 2 html dropdown menus to filter content down further, to show the content that is only relevant to the stuff selected with an onChange event. I have included my entire page below with all relevant code. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script type="text/javascript"> var current_page = 1; var records_per_page = 2; var objJson = [ { first_name: "User 1",last_name: "Last 1",roll_number: "0",year: "Freshman"}, { first_name: "User 2",last_name: …

Member Avatar
Member Avatar
+0 forum 1

Hello, I have implemented pagination in MVC application. when first time page loads, it works properly, when I click on paging then it makes AJAX call and bind the data in my HTML table from json response. but after AJAX call, pagination is working. once AJAX call fires, then pagination is not working. <table class="table table-striped" id="tblJobs"> <thead> <tr> <th>Job Title</th> <th>Start Date</th> <th>Completion Date</th> <th>View Details</th> </tr> </thead> <tbody> @if (@Model.JobsList != null) { foreach (var item in @Model.JobsList) { <tr> <td>@item.JobTitle</td> <td>@item.StartDate.ToString().Split(' ')[0]</td> <td>@item.EndDate.ToString().Split(' ')[0]</td> <td><a type="button" href="@Url.Action("jobdetails", "PostWork", new { id = @item.PostworkId })" class="btn btn-default fixit-btn">View</a></td> …

Member Avatar
Member Avatar
+0 forum 1

i want to refresh multiple div value without refreshing the whole page using one function. <div class="live_update" id="a">33</div > <div class="live_update" id="b">34</div > <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script> <script> function autoRefresh_div() { $('.live_update').load('Dashboard.php' + ' .live_update'); } setInterval('autoRefresh_div()', 1000); </script>

Member Avatar
Member Avatar
+0 forum 1

Hello every one i am having one doubt i have a set of links[url].Now there is pave ackages like 6 links,25 links package. if two user select 6 link each day and both will have same links[url] .now i when user log in then on adversitment page he visit each link one by one and as same set of link is with another user so i want to show these links to each user such that if particular user visit it then button become disable for it... following is code and table structure i am really confused with logic releated …

Member Avatar
Member Avatar
+0 forum 2

I am creating a web service to interact with a database and it is supposed to perform the CRUD operations. Right now it works fine with the read and post operation the WCF service supposed to have a method that is called from within jQuery whenever the page completes load to retrieve a list of all providers and it works fine, however, when I update the WCF Service with a method like this [OperationContract] [WebInvoke(Method = "PUT", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)] public Object PutSupplier(int id, Supplier oParameter) { // Do work } OR [OperationContract] [WebInvoke(Method = "DELETE", RequestFormat …

Member Avatar
Member Avatar
+0 forum 1

Hi, Currently, I am stuck with this problem whereby I do not know how to make my text disappear with a click of radio button event. To start with, the data is being drawn out using Store Procedure and the data appeared inside the textboxes when user selected a item in a dropdownlist. But, I need to make the text go away if user decided to press on a radio button say Yes. Any tips on how to do this kind of code would be most appreciated. Tks.

Member Avatar
+0 forum 0

I have a validateRequiredField(e) function to validate empty field and a validateExistingEmail() to validate an email has existed in my database. I am able to see both alert("Field" + i + "is Required"); when the fields are empty and alert("This email has been registered"); when the email existed in my database. **The problem I am facing is I am unable to submit my form once the validation is done and submit button is pressed.** Please help index.jsp <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> </head> <body> …

Member Avatar
Member Avatar
+0 forum 2

I need to validate a name field to validate if the name field is empty and if the name existed in my database. If it passes both the validation(the user has input a name that is not existed in my database), then the form will be submitted. The problem is with my validation of name existed in my database. I used ajax and even though I used e.preventDefault() to stop the form from submitting if the name existed in the success block, it just pops up an alert "name existed" and proceed to submit the form. Please help. index.jsp <%@ …

Member Avatar
+0 forum 0

Hi I'm having a problem implementing a mini shopping cart drop down in the header to show the user all the products they have in their shopping cart. It seems the only solution for this is Ajax, and I've looked all over and can't find anything that I could possibly use with web forms. At the moment I've managed to populate a shopping cart entity with the customer's products, and in that entity I have a customer guid which is stored as cookie and in the database to keep track of the user and their products. The problem I am …

Member Avatar
Member Avatar
+0 forum 6

/* initialize the calendar -----------------------------------------------------------------*/ var date = new Date(); var d = date.getDate(); var m = date.getMonth(); var y = date.getFullYear(); /* selects the events to load in the calendar -----------------------------------------------------------------*/ $.ajax({ url: 'process.php', type: 'POST', data: 'type=fetch', async: false, success: function(response){ json_events = response; } }); $('#calendar').fullCalendar({ //events: [{"id":"14","title":"New Event","start":"2015-01-24T16:00:00+04:00","allDay":false}], events: JSON.parse(json_events), utc: true, defaultView: 'agendaWeek', header: { left: 'prev,next today', center: 'title', right: 'month,agendaWeek,agendaDay' }, editable: true, droppable: true, slotDuration: '00:30:00', timezone: 'local', eventReceive: function(event){ var title = event.title; var start = event.start.format("YYYY-MM-DD[T]HH:mm:SS"); $.ajax({ url: 'process.php', data: 'type=new&title='+title+'&startdate='+start+'&zone='+zone, type: 'POST', dataType: 'json', success: function(response){ event.id = response.eventid; …

Member Avatar
+0 forum 0

I typically ask my questions over on StackOverflow, however this one I know would immediately get voted down as requiring someone to give their opinion, heaven forbid! I'm hoping the folks over here are a little more forgiving in this area. I am converting a really old ColdFusion app over to .NET. This version is a stepping stone to where I'd like it to be, ie. Angular, etc. I've created all of the database interactions as .NET MVC Web Api while using client side code (jQuery AJAX) for the front end. Ideally we should be using an SSO to secure …

Member Avatar
Member Avatar
+2 forum 4

Generate JSON According to Drill Down Drill -Up Events6

Member Avatar
Member Avatar
+0 forum 3

The End.