Go here and download Komodo Edit:

http://www.activestate.com/Products/komodo_edit/

Open your JavaScript source file in Komodo and rest the mouse over the line
of code with the red squiggly underline, or click the "document icon with a
red circle and white exclamation point" at the bottom of the Komodo Window
and select Jump to Next Result.

That should help you identify the problem. (Tip: Check your comments, and
Mike Alsup is right.)

-Mike

> From: mohsin
> 
> var listing_update = this_domain_mybayut+"/includes/sub/
> updatelistings.php";
> 
> $(".view_detail").livequery(function(event)
> {
>       /*$(this).mousemove(function()
>       {
>               return overlib('View Property Detail',WIDTH,150,CENTER);
>       });
> 
>       $(this).mouseout(function()
>       {
>               return nd();
>       });*/
> 
>       $(this).click(function(event)
>       {
>               id = $(this).attr("id");
>               selector = id.replace("view_","");
>               newlink = this_domain_mybayut + 
> "/includes/inventory_search/ 
> inventory_view_detail.php?selector="+selector;
>               str = $.ajax({url: newlink ,async: false 
> }).responseText;
>               /*c_title = "View Details<br /><br /><div 
> class=\"ob_title\">";
>               c_title += "<ul>";
>               c_title += "<li><a>Property</a></li>";
>               c_title += "<li><a>Client</a></li>";
>               c_title += "<li><a>User</a></li>";
>               c_title += "</ul>";
>               c_title += "</div>";*/
>               return overlib(str,STICKY,CLOSECLICK,CAPTION, 
> "View Details",WIDTH, 350,HEIGHT,200,CLOSETEXT,"<img 
> src='"+this_domain+"/images/common/
> cross.jpg' border='0' />",CELLPAD,0,LEFT);
>       });
> });
> 
> $(".ob_title ul li a").livequery("click",function(event)
> {
>       this_id = $(this).attr("id");
>       $(".ob_title ul li a").removeClass("selected");
>       $(this).addClass("selected");
>       if(this_id == "a_property")
>       {
>               $("#property_div").css({display:"block"});
>               $("#client_div").css({display:"none"});
>               $("#user_div").css({display:"none"});
>       }
>       else if(this_id == "a_client")
>       {
>               $("#property_div").css({display:"none"});
>               $("#client_div").css({display:"block"});
>               $("#user_div").css({display:"none"});
>       }
>       else if(this_id == "a_user")
>       {
>               $("#property_div").css({display:"none"});
>               $("#client_div").css({display:"none"});
>               $("#user_div").css({display:"block"});
>       }
> 
> });
> 
> $(".db_del").livequery(function(event)// For Pending and 
> Rejected Listings {
>       $(this).mouseover(function(event)
>       {
>               return overlib('Delete listing permanently');
>       });
>       $(this).mouseout(function(event)
>       {
>               return nd();
>       });
>       $(this).click(function(event)
>       {
>               div_id=$(this).parent("span").attr("title");
>               this_id = $(this).attr("id");
>               this_id = this_id.replace("d_","");
>               action_url =  listing_update + 
> "?selector="+this_id+"&del=1";
>               var txt = "";
>               txt += "<form class=\"frm_del\" method=\"post\" 
> action=\""+action_url
> +"\">";
>               txt += "<table width=\"100%\" 
> align=\"center\"><tr><td>";
>               txt += "Are you sure you want to delete this 
> listing and its related images, floorplans and documents?<br 
> /><br />";
>               txt += "<center><input type=\"button\" 
> value=\"Yes\" class=\"ob_yes \" />";
>               txt += "<input type=\"button\" value=\"No\" 
> onclick=\"return cClick();\" /></center>";
>               txt += "<input type=\"hidden\" 
> id=\"div_letter\" value=\""+div_id
> +"\" />";
>               txt += "<input type=hidden name=selector 
> id=selector value="+this_id
> +" />";
>               txt += "</td></tr></table>";
>               txt += "</form>";
>               return overlib(txt,STICKY,CLOSECLICK,CAPTION, 
> 'Delete Listing',CLOSETEXT,"<img 
> src='"+this_domain+"/images/common/cross.jpg'
> border='0' />");
>       });
> });
> 
> 
> sorry for not mentioning code
> firebug and error console shows error of missing ; on line 65
> 

Reply via email to