Welcome Guest, Not a member yet? Register   Sign In
ajax issue with Codeigniter

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.

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

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

[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.

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>

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

Theme © iAndrew 2016 - Forum software by © MyBB