Click here to Skip to main content
15,881,089 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<script>
jQuery(document).ready(function()
        {
            var str = jQuery(location).attr('href');

         var url = str.split("=")[1];
                jQuery.ajax(
                {
                    type: "GET",
                    url: "http://myfourwalls.in/test/ar_property_details.php?url=" + url,
                    dataType:"JSON",
                    success:function(data)
                    {
                        for(i=0;i<jQuery(data).length;i++)
                        {
                        jQuery('#project_info').append('<p>'+ data[i].project_id + '</p>');
                        jQuery('#project_info').append('<p>'+ data[i].project_name + '</p>');
                        jQuery('#project_info').append('<p>'+ data[i].project_type + '</p>');
                        jQuery('#project_info').append('<img src='+ data[i].project_image + '>');
                        jQuery('#project_info').append('<img src='+ data[i].project_logo + '>');
                        jQuery('#project_info').append('<p>'+ data[i].project_overview + '</p>');
                        jQuery('#project_info').append('<p>'+ data[i].about_builder + '</p>');
                        jQuery('#project_info').append('<p>'+ data[i].project_amenities + '</p>');
                        jQuery('#project_info').append('<p>'+ data[i].exterior_model_name + '</p>');
                        jQuery('#project_info').append('<img src='+ data[i].exterior_model + '>');
                        jQuery('#project_info').append('<p>'+ data[i].interior_model_name + '</p>');
                        jQuery('#project_info').append('<img src='+ data[i].interior_model + '>');
                        jQuery('#project_info').append('<p>'+ data[i].model_360_name + '</p>');
                        jQuery('#project_info').append('<img src='+ data[i].model_360 + '>');
                        }

                    }
            });
        });
</script>

In the above script,I am getting all the values from .php file to append.At the end of my script I have,
jQuery('#project_info').append('<img src='+ data[i].interior_model + '>');
.This is actually a .wt3 file.It is not showing in UI. How can I display this .wt3 file inside a div.
Do I need to do something in jQuery or in PHP itself?
Posted
Comments
Janardhanam Julapalli 16-Feb-15 6:18am    
I am getting all the image paths and .wt3 files from my DB and files are stored in server.

1 solution

You should actually read that file in Server side and convert that to string and send it with the data.
 
Share this answer
 
Comments
Janardhanam Julapalli 16-Feb-15 7:07am    
If u don't mind, please send me piece of code to do that. I am very new with PHP. Anyway I need to fix this issue by today end of the day.
Janardhanam Julapalli 16-Feb-15 7:08am    
sorry for that! I did not noticed at all.
Cool. Just work on that. :)
Janardhanam Julapalli 16-Feb-15 7:21am    
Please help me out whether I am doing it in right way!
Janardhanam Julapalli 16-Feb-15 7:22am    
I got the path from DB.Is this step is right?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900