last day (20 days later) » 

10:20 AM
0
A: how will i able to do a certain div using ajax that will only load on a certain div using codeigniter

Sameer ShemnaYour HTML looks fine, your PHP code try editing as follows to make an object instead of array: $this->data['getNumberOfMessages'] = $this->mm->getNumberOfMessages($this->data['id']); $this->data['countNumber'] = $this->data['getNumberOfMessages']; $responseOnject = new stdClass(); $responseOnject-

 
ok ill try your code
hi ive got error on this line of code $responseOnject->StatusMessages'=$this->data['countNumber'];
whats the correct syntax?
 
oh just remove the apostrophe (single quote), i will edit my answer
 
hi ive tried your code seems that it wont work
 
are you still getting 'undefined' in your alert?
 
your code wont work ... i tried to alert(data.statusmessage) undefined
 
10:20 AM
give proper url for AJAX check my editions
 
it seems that i already have this line of code url: $(this).data("href"),
 
You are supposed to change it give the url of the php page
 
ahh okay i see ill try to change to url in php
hi it wont work
 
lets chat
what i meant was you have to give proper url
like url: 'localhost/project_folder/service_route',
 
 
4 hours later…
1:57 PM
hi
yes i give a proper url
when i change this to php
url: $(this).data("href"),
it seems to be the same error
 
2:20 PM
you there?
 

  last day (20 days later) »