How do I clean information in a form after submit so that it does not show this error after a page refresh? See image (from chrome): The dialog has the text: The page that you're looking for used information that you entered. Returnin...
I have a Javascript function which should update a hidden input field in my form with a number that increments every time the function is called. It worked originally with getElementById() however because I had to redesign my form I cannot use the...
I am just wondering if it's possible to use external JS file that contains PHP code. my external JS $(document).ready(function(){ $('#update').click(function(){ var tableVal={}; // a bit of php code I need in JS var se...
I am building a website with CodeIgniter, I have various resources that I load with the base_url helper function like this <link rel="stylesheet" type="text/css" href="'.base_url('assets/css/themes/default.css').&...
I posted a question earlier and didn't have much luck, I am hoping to clear the contents of a second dropdown and repopulate the dropdown, depending on the value that is in the first dropdown. I have the following select boxes as seen below:...
I am using codeigniter 3.1 . I want to post upload data using ajax. Ajax upload file not working. But when i post the simple form without ajax, it working fine. I don't know why but no error in console. HTML <?php echo form_open_multipar...
How do I return response from the controller back to the Jquery Javascript? Javascript $('.signinform').submit(function() { $(this).ajaxSubmit({ type : "POST", url: 'index.php/user/signin', // target eleme...
I noticed in the <head> of my site (for work), there are a lot of <link rel="stylesheet" type="text/css" href="" /> and <script type="text/javascript" src=""> tags. There are even more JavaSc...
I'm developing web application using CodeIgniter. All this time, I put the custom js code to do fancy stuffs inside the view file. By doing this, I can use site_url() and base_url() function provided by CodeIgniter. Today I want to separate all...
I'm trying to load the google maps API ie: <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"> in my head template. But because I've only got one page with a google map on it (I'...
©2020 All rights reserved.