Tagged Questions
0
votes
0answers
23 views
HTML5 Server-Sent Events : empty response
I am writing a web service using PHP (CodeIgniter).
I tried to follow several basic tutorials on Server-Sent Events in HTML5.
However, I wasn't able to run any of them.
I am receiving proper ...
-1
votes
1answer
41 views
Causing conflict between the js files [closed]
I am using below three js files jquery.validate for validations and datepicker for js for date picker , i am using jquery -1.9.1 for modal window so becase of the modal jquery 1.9.1 my validations and ...
0
votes
0answers
38 views
CSS of Grocery CRUD not loading
I've installed Grocery-Crud and it works! But there is no any css files were loaded on page. I have standard code grocery_crud gives to users, so this is what I see, when I want to see page's code:
...
0
votes
3answers
64 views
Retrieving File Data in CodeIgniter by clicking on an anchor tag via AJAX
I have this question. How do i get a data from a file when an anchor is clicked,
this is my function in controller.
function change_log_year_view($year) {
$file = $this->get_file($year);
...
0
votes
0answers
33 views
Dropdown menu populate into textbox using codeigniter
I have a problem in Codeigniter which is calling the data(mysql) in dropdown menu then populate into text-box
<tr>
<td>Item No:</td>
<td><select type="text" ...
0
votes
2answers
60 views
Opening a bootstrap modal dialog on by loading a view in codeigniter
Scenario: User clicks the Login with Facebook link, but actually user is not registered in the database. Code for the url is:
<a href="<?php echo $this->authlib->fbloginURL(site_url() . ...
1
vote
1answer
32 views
how to create multidimensional array / object in jquery and pass via AJAX post
I am creating an order form that has a table of order items users can purchase. The inputs are using data attributes to store the items name and price per piece like so:
<input type="text" ...
1
vote
1answer
37 views
unwanted pagination in datatables after inserting a new record
.
I am new to jquery datatables and facing problems with pagination. when I insert a new tuple then an extra page is being created in the table.
for example : suppose I have 1 record ...
0
votes
3answers
63 views
How can I hide the text box in jquery for initial loading?
I am working in this project where I face this issue. My code works when I click after loading.
I have used id for each user. This is the code for active/inactive users. I passed the id to each ...
0
votes
1answer
25 views
Load jQuery tabs after XMLHttpRequest
I have a Codeigniter site with 3 columns, the first showing a list of ships. When a ship is selected it loads information on the ship to the center column via the controller. I would like to get tabs ...
1
vote
1answer
38 views
Check logged in status javascript
I am trying to check the current user logged in or not using long polling.
What is the best way to achieve this in terms of performance and bandwidth ?
I am not asking about long polling, but the ...
0
votes
3answers
48 views
using cookies to store information about current web page
I am new to web application development, I have a problem in verifying if a page that loads is loaded for the first time or the page is refreshed. I understand that i am supposed to use cookies to ...
1
vote
2answers
64 views
Dynamic href generation on link click based on radio button state : PHP interaction with javascript
I am using MVC framework in codeigniter and I have a view where I have this link (please note that href value is generated by call to a PHP function which in turn takes 'auth/mylogin' as a parameter:
...
0
votes
0answers
25 views
ajax and js works in chrome but dont works correctly in mozilla and IE (codeigniter)
im doing autocomplete system in my website with codeigniter. But i have problems. I can do this works in Chrome, but in mozilla and IE dont works. For example, in chrome open the itens of result them ...
1
vote
3answers
51 views
Codeigniter when i click delete i want pop up notification if if click yes or not
the is the model
function delete_exchange($ExchangeRateId) {
$this -> db -> where('ExchangeRateId', $ExchangeRateId);
$this -> db -> delete('exchange_rate');
}
this is the ...
0
votes
0answers
45 views
how to initialize an html element each time its created or loaded?
I have the following problem:
I am using Codeigniter to build my application. I have two views the first is 'table.php' and the other one is 'row_content.php'
this is 'table.php'
<form ...
-1
votes
1answer
63 views
Passing multiple checkbox values through JavaScript post [closed]
$(document).ready(function()
{
var idSelector = function() { return this.id; };
var fruitsGranted = $(":checkbox:checked").map(idSelector).get() ;
var fruitsDenied = ...
2
votes
1answer
48 views
Codeigniter Autocomplete from Database
I have some problems in my project. I am trying to do autocomplete with JavaScript in CodeIgniter. I already tried many options, but they don't work!
The controller:
public function ...
0
votes
0answers
58 views
Value of many Select Option Value
i have problem with my select option form. there's have many select option and i want to get value of select option and save to dataarray. please help me, this my code
foreach($getMatakuliahByTA as ...
0
votes
1answer
44 views
Posting to Tinybox2 modal from form in Codeigniter
I am using Tinybox on a Codeigniter site for some functions like registering, login, viewing images, etc....
On the homepage of the site there is a small registration box that allows a user to enter ...
0
votes
2answers
61 views
Post to CI Controller using JQueryAjax and Modal Bootstrap
I am using Bootstrap Modal to take the user's input and submit it to a CI Controller for validation. I want to be able to return the results to the same modal (JSON) before the input is save to a ...
0
votes
1answer
25 views
Uncaught exception 'Exception' with message 'Serialization of 'SimpleXMLElement' is not allowed' on codeigniter
I got this error when I update the version of PHP to the latest 5.3.21
Fatal error: Uncaught exception 'Exception' with message 'Serialization of 'SimpleXMLElement' is not allowed' in /file location ...
0
votes
1answer
55 views
jQuery autocomplete working on local server but fails on web server?
The code is same on both Web server and local server but using firebug I get two kinds of response links:
Works fine
GET http://localhost/www.test.co.uk/index.php/home_Controller/getSearch/r
...
0
votes
2answers
26 views
Dynamic Tables with Spreadsheet Capabilities in Websites
I'm looking for a way to do spreadsheet type actions with a table on a website that I'm creating. I looked quickly at KendoUI, but that seems to be a little too far out of my budget. Wondering if ...
0
votes
1answer
50 views
Implementing requirejs and client-side templating in existing codeigniter hmvc application
We have been working on a codeigniter hmvc project for quite sometime now and it has grown into a lot of back-end modules and controllers. For the front end we have been applying the regular jQuery ...
0
votes
1answer
50 views
How can I change the color of a button when I clicked the right answer? It is tested in PHP. (CodeIgniter)
I have a number of rows with different buttons. When I click a button, it checks if it's the right answer in that row. This I have already working. What I can't figure out is how to give that right ...
1
vote
1answer
89 views
Keep dropdown menu open when moving mouse away?
I am using zurb foundation 4 in a codeigniter site and in the desktop version I have the login top right as a drop down b ut when the mouse is moved away from the content of the drop down menu it ...
0
votes
1answer
80 views
How to add items to the cart using the Shopify API
I'm working on a custom web app using the Shopify API. The idea here is to use the app as the exclusive storefront and just make requests to the Shopify API. I've set up a private application in my ...
0
votes
1answer
67 views
CodeIgniter - AJAX call working on local server but not online
When a user goes to one of the pages (let's call it page1), the PHP loads the HTML content for an array containing data about the users.
Once the page is loaded (DOM ready), I use jQuery to perform ...
0
votes
1answer
38 views
jQuery dataTables with Codeigniter and sAjaxSource
I am using dataTables with Codeigniter and I have a problem. I am getting a message:
array_push() expects parameter 1 to be array, null given
and a result is {"aaData":null}
I want to get ...