CodeIgniter Forums

Full Version: ajax issue with Codeigniter
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

I am using ajax to display content dynamically on function call.

Issue is if a image file called in ajax content is missing.

session start storing wired/absurd values.

My problem is there will be always some image missing, so i can't correct the image issue.

How to stop the weird behaviour of session.

Please help me.

El Forum

Check to see if the image exists before you try to use it.

El Forum

since the data is in blob format ,it contain images and text,
plz help me how i can check about the image

El Forum

[eluser]Tim Post[/eluser]
[quote author="deeptik" date="1339248428"]since the data is in blob format ,it contain images and text,
plz help me how i can check about the image[/quote]

Perhaps try posting the relevant code? It's impossible to help you without it.

El Forum

I am using BLOB data from table to display content , which contain images url and texts,

If there is any images missing in the content or url is wrong.

Codeigniter session stores absurd value by its own.

How to solve this issue. Plese help me
function startTest($testid=0){

$this->session->set_userdata('lasttime',time()); $data['testparam']= $this->testpaper->testDetail($testid); //get the first question also testid is test paper id





i am storing the questionlist in session

and call the below function on button click
function nextQuestion($questionId,$response,$end=0){



           foreach($res as $r){
              $permissions[$questionId][]= $r;

         // time code ends

        $per = $this->session->userdata('permission');
              $result= $per + $permissions;




below is the model i am calling

function nextQuestion($questionId){


                     echo  '<div class="questionblck">';

                           echo $question['childQuestion'][0]['name'];

                      echo '</div>

                       <div class="answerblck">
                                 &lt;textarea name="response" rows="5" cols="70"&gt;&lt;/textarea>

    echo '&lt;input name="probid" id="probid" type="hidden" value="'.$question['childQuestion'][0]['id'].'"&gt;';

            echo '         </div>

               <div class="float-left gutter-right">';  

                echo    '<div class="float-left">
                             <span class="label">&nbsp;</span>
                             <button type="button" id="prevQuestion">Previous</button>

El Forum

If you post your code using the code tags, more people would probably look at it.