Hi everybody,
i asked many times.but i cannot get expected result.so i asked agian.
anybody plz help me.

this code,did not display fancy box.the requested content cannot be loaded message display.
i created planmate url.

 $(document).ready(function(){
            $(".planbooks").fancybox();


             $('#planbook-content').bind('click',function() {
                 $.ajax({
                     type :"post",
                     catch:false,
                     url :   $("#planbook_planmate"),

                     data :{title_name:'title_name',}
                     success:function(data) {
                         $.fancybox(data);
                     }

        });

            });
        });





user click the this plan that time display fancybox with plan.
    index.php
     <p><div id="planbook-content" class="float" >

    <a  href="<?php echo url_for("@planbook_planmate") ?>" onclick="add_function()" >musttry</a>


                     <div><img src="/uploads/planbook/<?php echo $planbook['photo'] ?>" alt="" /></div>

                          <div>
                            <span class="field-label"> Title: <?php echo $planbook['title_name'] ?></span></div></br>

                              Country: <?php echo $planbook['country_id'] ?></span><br /></td></tr>

     <div>
     <span class="field-label">Area: <?php echo $planbook['zone_id'] ?></span><br /></div>
     <div>
     <span class="field-label">Place: <?php echo $planbook['place'] ?></span><br /></div>
     <div><span class="field-label">Occasion: <?php echo $planbook['occasion'] ?></span></div>
    <div> <span class="field-label">Itinerary: <?php echo $planbook['itinerary'] ?></span><br /></div>
     <div><span class="field-label">Date: <?php echo $planbook['date'] ?></span><br></div>
    <div><span class="field-label">Description: <?php echo $planbook['description'] ?></span><br /></div>
     </div>



     <?php
    $i++;
     endforeach ?>
     </div>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.