Tagged Questions
-1
votes
1answer
40 views
Dependent dropdown list working in php and not working in codeigniter
In the below code when i worked in php the dropdown are working well when exam name is selected corresponding course_code came and when i selected corresponding subject_code came.But Now i created ...
0
votes
1answer
23 views
how to get all the values in table to chart values in codeigniter
am using the following code. am getting only the first value and it has been displaying in table. how to get all the values and display in chart. though am using for loop am getting only one value. ...
0
votes
1answer
20 views
how to give dynamic values to chart from controller to view in code igniter
the following is the code am having.in this code am giving values statically. now what i need to do is i need to get the dynamic values and the chart has to be displayed.here into the items variable i ...
-1
votes
0answers
33 views
Suggestion need to make an article editor [on hold]
I am trying to create an article editor like wise wordpress article editor. What I have fallen in problem is that, now I am trying to add multiple image in my article, which must be uploaded from this ...
0
votes
2answers
31 views
How to get values using function argument in js in codeigniter
In ajax I am getting the values to the values variable, but the values are not getting into the items variable. What is the reason for that?
What am I doing wrong? Inside the onload function, the ...
0
votes
1answer
23 views
Conflict with the Datepicker and Tablesorter
I am using a Datepicker and Tablesorter on the same View Page. The problem is if i take out the tablesorter, the datepicker is working fine but when i include again the tablesorter the datepicker is ...
1
vote
1answer
26 views
how to redirect to next page using external js in codeigniter
before i have used the following code in same file to redirect to next page. but am using seperate js file. when clicking on button it is showing disallowed characters. how to give the url. can anyone ...
0
votes
1answer
43 views
Pass Javascript Variables tp PHP Controller in Code Igniter
Hi everyone I have this javascript that has to pass some variables including an array. My problem is that I cannot pass these values using the uRL because i might deal with many values. I am trying to ...
0
votes
2answers
30 views
Remember the input date in datepicker
I am using datepicker. I have two text fields fromdate and todate. For Example I input month of May when I submit and input a date again the default date should be May also not the current Month.
...
0
votes
3answers
36 views
Codeigniter - sending json to script file
I query the db i my model like so
function graphRate($userid, $courseid){
$query = $this->db->get('tblGraph');
return $query->result();
}
My controller gets data back from my ...
0
votes
2answers
58 views
How can store javascript variable to php session variables?
I am having trouble passing javascript arrays and other variables to my php controller. I am doing this in codeigniter. I have assigned some values on javascript like this:
var count = ...
-1
votes
0answers
23 views
BIOSTALL Googlemap: custom events and highlighted markers
I'm just started to using Biostall googlemaps api v3 for CI. That's really great!
I want to create an application like that:
I have a list of different places ( links ) and a map layout with the ...
0
votes
3answers
57 views
Return table row as a HTML code via ajax and add in table
I am coding an application which fetches the data from data base on the basis of id given and return row in table, it is a bar code billing module, it .append the row as the barcode string given, but ...
0
votes
1answer
52 views
Needs to pass array values from javascript to php controller in Code Igniter
I have this javascript that stores able values in an array:
<script>
$(function(){
$('#preview').click(function(){
var thesum=0;
var rowid=[];
var rowfields=[];
var supplier ...
0
votes
4answers
59 views
Javascript delete validation whether “Ok” or “Cancel”
Hi guys i'm currently working on a delete validate function in javascript. Here is my code.
function confirmDelete(){
var agree = confirm("Are you sure you want to delete this file?");
if(agree ...
-3
votes
1answer
29 views
Select List Based on Function Return Value
I have a function which will return max value for me. In my view I have select list which i want to show options from 1 - maxvalue . How can I implement this
thanks
function getmatch_value(){
for ...
-2
votes
0answers
32 views
How to use jquery code in codeigniter view
I want to use this code in my CI view but i could not find the way to use it.
Can anyone suggest me the way to include following jquery code for view page.
var options = {
onFail: function() ...
0
votes
0answers
46 views
Validation of textbox arrays when Posting with Json post
I am trying to validate an array of textboxes in codeigniter when submitting a form using json post. Below are current implementation of the same
In my view i have
<body>
<form id="mike" ...
0
votes
1answer
55 views
How to add a PHP template to a dynamically generated Javascript code
I'm using Code Igniter and the Googlemaps library. This library generates a lot of Javascript code dynamically, including the contents of the InfoWindows for each new marker, but I'd like to keep that ...
0
votes
1answer
44 views
How to parse JSON subitem
this is the response data that I'm getting.
Can someone know how to parse this data?
"message":{
"amount":{"notFloat":"'asd' does not appear to be a float"},
...
0
votes
1answer
41 views
On key up Ajax function for checking if name exist returns multiple identical values despite using codeigniter active record distinct query
I have utilized on key up function with ajax to check in my database if the course name already exist. A prompt then will be showed to the user after a match is found. I have used the distinct query ...
0
votes
0answers
32 views
Printing Auto genarated Bar Code Image
I have able create bar code in my php project and now i want to print my barcode so i use java script but when its come to print part image is not showing. link to my bar code image is as this
...
2
votes
1answer
61 views
Backbone.js Model urlRoot Error
location:
htdocs
-api.roamingcamper(RESTful + CodeIgnter)
-backbone
Site = Backbone.Model.extend({
urlRoot: '/api.roamingcamper/index.php/api/site',
Defaults: .... }
SiteCollection = ...
1
vote
1answer
60 views
How to pass data from controller to view via json on CodeIgniter?
I'm trying to pass data from controller to view via json, after event in my main login page. Login page js looks like:
$('#submit_loginform').live('click',function(){
...
0
votes
3answers
37 views
passing a javascript variable into a hidden form in codeigniter
I have a page in Codeigniter in which i can set the product quantity (sq.m) that the client wants to buy. When the client sets the quantity i have to do some calculations (about the quantity number ...
1
vote
4answers
83 views
AJAX to change div content from PHP Response not working
I’m working on a control panel page where users can change the state of their service. I have a CodeIgniter project where a function named activation sits to change the users state. It does all ...
0
votes
2answers
64 views
why can't I set checkbox value from javascript?
I'm using codeigniter and I'm trying to set the checkbox's checked setting from javascript because I need the javascript function. But why won't it work? The default is still checked and I don't know ...
0
votes
3answers
169 views
PHP File Upload is not working in jquery ajax form [duplicate]
I am using ajax form to display form dynamically in which it contains the file upload option. I'm getting the post values of every text values but the File array is empty.
I have executed ...
0
votes
2answers
50 views
jquery using .submit() form not submitting
I am submitting a form using jquery but when i user javascript it is submitted but through jquery it is not submitting..
here is my form code
<form method="post" id="uploadfrm" action="<?php ...
0
votes
2answers
95 views
How to submit a form using jquery dialog button?
Hello guys just want to ask about how can i process a form submission using the jquery dialog button. In my code I have a button that when you click. It will pop up a form in a dialog box. Below is ...