Start Date: | November 10, 2010 | |
Deadline: | Modified Files | |
Assigned by: | Bob Carpenter |
The advanced Search criteria is in three places:
|
||||||
The Home page contains /Views/vAbout/dspHomePageMessage.cfm | The Search Landing page contains /Views/vListing/dspPropertyCriteriaPP.cfm | the Property List View page contains /Views/vListing/dspListView.cfm /Views/vListing/dspSearchForm.cfm |
||||
11/17/10 - got wireframes and see that radio buttons should be one checkbox. <input type="checkbox" name="status" id="statusInclude" onclick="showTime()" /> |
11/17/10 - got wireframes and see that radio buttons should be one checkbox. <input type="checkbox" name="status" id="statusInclude" onclick="showTime()" /> 11/18/10 - no, two checkboxes /Views/vListing/dspPropertyCriteriaPP.cfm
|
Added if/then around
Style/refresh/listView.css |
Home Page Template files | Search Landing Page Template files | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
/Style/refresh/lib.css | /js/map/lib.js |
The lib.css is added to the page through code and automatically sticks www-dist.windermere.com to the front of the path. So, you can't view CSS changes directly. You can, in firebug, change http://dist-www.windermere.com/Style/refresh/lib.css to /Style/refresh/lib.css and the preview will update.
|
Add hide jquery to /js/map/lib.js 11/17/10 - got wireframes and see that radio buttons should be one checkbox. function showTime(){ Line 636 - I can add + FIX_ARRAY[i].statusdescription, but all i get is "undefined" |
$("#mapControlLocationSearchDisambiguator").slideDown("slow");
11/19/10Completed |
---|
/Views/vListing/dspListView.cfm
/Query/sel/selSearch_View.cfm
/RESTServices/restListingsAppendSold.cfm
|
11/22/10Data Map | |||
---|---|---|---|
index.cfm contains /Views/vAbout/dspHomePageMessage.cfm. Clicking submit or hitting Enter launches triggerSearch(document.hp_search_form) which is in /js/refresh/front_page.js. $("#hp_search_box,#search_front_mls").keypress(function (e) { function triggerSearch( form ) { LOCATION_GATEWAY is defined in dspInteractiveMapControlLocationSearch.cfm var LOCATION_GATEWAY = new LocationGateway( "mapControlLocationSearchService", "index.cfm?fuseaction=#attributes.XFA.ProcessSearch#", "#attributes.mapConnectionProductChoice#","#attributes.mapConnectionKey#","index.cfm?fuseaction=#attributes.XFA.ReportSearch#" ); LocationGateway is defined in /js/map/locationGateway.js function LocationGatewayMsve() contains this.findLocation=LocationGatewayMSVEFindLocation. function LocationGatewayMSVEFindLocation() contains this.server.Find(...) function LocationGatewayFindLocation() contains this.server.findLocations |
Location Field |
MLS Field |
||
---|---|---|---|
|
|||
Map View | List View | Map View | List View |
Searching the site for selSearch_View.cfm returned
|
11/22/10/Query/sel/selSearch_View.cfm |
---|
Getting the checkboxes to work with the Location search - Added a query of queries to wipe out the Active results if the box was not checked, but Sold was. Need this query to establish the query name and the column names. <!--- If Sold is checked, but Active is not, erase the data from the query, but keep the column names ---> Also wrapped the RESTful call into an if/then to only fire if Sold is selected. <!--- get sold listings from postgres and add them to the selSearch, but only if "Sold" checkbox from first screen --->
11/24/10
Maybe add the blank query to the top of restListingsAppendSold.cfm and call that file from the Fusebox switch files.
|
11/29/10/Query/sel/selSearch_ViewGeo.cfm |
---|
Completed
To do
Put if/then around column setting to eliminate POSTgres column if it does not exist in sql. This, however created problems. Will try adding columns to SQL. |
11/29/10How do the Icons get created? |
---|
Side note: /js/map/gmap.js and /js/map/listingMapXHR.js also contain references to icons and markers but were both last updated on 2010-09-16 17:36:05Z jgiven
In /js/map/msve.js below line 127, if you add anything to the background-image style string, it shows in the HTML.
In /js/map/listingMapRegistry.js this.icons is initialized
|
12/2/10More Icons | |||
---|---|---|---|
In file /js/map/msve.js, line 498, there is function ListingMSVESetMapCallouts( fixes ). it has these lines of code:
in /js/map/map.js
Is called from /js/map/listingMapXHR.js
|
12/6/10Search Terms with Sold Data |
---|
Added to restListingsAppendSold.cfm: <cfset variables.myPtyp = ""> <cfif isDefined("attributes.minsqft") AND attributes.minsqft NEQ "" AND isDefined("attributes.maxsqft") AND attributes.maxsqft NEQ ""> <cfif isDefined("attributes.minprice") AND attributes.minprice NEQ "" AND isDefined("attributes.maxprice") AND attributes.maxprice NEQ ""> <cfif isDefined("attributes.ybtmin") AND attributes.ybtmin NEQ "" AND isDefined("attributes.ybtmax") AND attributes.ybtmax NEQ ""> <cfif isDefined("attributes.br") AND attributes.br NEQ ""> <cfif isDefined("attributes.water") AND attributes.water NEQ ""> <cfif isDefined("attributes.solddays") AND attributes.solddays NEQ ""> <cfset mySearchString = mySearchString & "&and=Sold_lat,IR:" & #attributes.extentSouth# & "|" & #attributes.extentNorth# > |
12/7/10How Does Right-Column Detail Page Get Created? |
---|
From the Map View page, either from the list box, or the pop-up link, this gets called:
In /Controllers/Listing/fbx_Switch.cfm
So, in theory, I could change the details lilnk to /index.cfm?fuseaction=listing.PP3SoldListingDetail, add a case in the controller, and basically copy the attributes and addtoq's but substitute PP3SoldListingDetailLayout. Where is the sold data? Is it in attributes already? 12/8/10 SOLVED:
|
12/10/10How Do Images Show up on the Detail Page for Solds? |
---|
From the Map View page, either from the list box, or the pop-up link, this gets called: javascript:triggerPropertyDetails('http://172.20.0.74/index.cfm?fuseaction=listing.SoldListingDetail&ListingID=6839610',true,'6839610'); In /Controllers/Listing/fbx_Switch.cfm
|
12/10/10The More Details Button (Flyer) |
---|
From the Map View page, details page in right-column, a new page gets called with: http://172.20.0.74/index.cfm?fuseaction=listing.SoldlistingDetailUpdated&listingID=11851&paginate=true In /Controllers/Listing/fbx_Switch.cfm
|
12/15/10How Do the Pop-Up Boxes on the Map Work? |
---|
/Views/vGeography/dspPP3MapLayout.cfm - contains a section for <!--- START: New Listing Pop Up ---> which contains <!--- START: New Listing Pop Up ---> /js/map/lib.js, line 452, function displayLayer(tempX,tempY,showHide,thumb)
In /js/map/listingMapRegistry.js, when the icons are built, they also have a x,y value [ new GeoPoint( 0, 0 ) ] that gets passed as iAnchor or iOffset in other functions. displayLayer(positionevent.screen.x, positionevent.screen.y, 1) show and hide call functions are in function listingDropDown( fixOrPosition ) line 305 of /js/map/lib.js |
12/21/10Nearby Comparable Solds |
---|
Added Nearby Comparable Solds. The URL feeds the Search Form which then performs the Query. If a value comes in that the Form can't handle, the value gets ignored. <cfif right(selPub_view.bth,3) EQ ".25"> <cfparam name="variables.priceValuesMin" default="0"> |
12/21/10Features to Detail (left column and flyer) |
---|
Features is being sent as a struct with members. Some of the members have arrays (flooring can be carpet and tile).
If a feature doesn't get sent, I have to do an isDefined around the version of the code above in the Flyer view. But isDefined('selPub_View.features["Garage"]') complained that the variable was not valid (wasn't I using lowercase 'garage' originally? Anyway, solved that one with: <cfif ListFind(#structKeyList(selPub_View.features)#,"Garage")> Right-column view only shows the data sent, so this line was not needed there. Also, some properties have no Features at all, so I added an empty struct if feaures is empty to selSoldPub_View.cfm
|
12/22/10Image Thumbnails on Map View - (Pop-up and right column list) | ||||
---|---|---|---|---|
in /js/map/map.js
in /js/map/listingMapXHR.js
in /Models/mListing/actListingCollectionThin.cfm
Where does "images" come from?<cfset variables.images = QueryNew( "fullSrc,thumbSrc" )> can be found in /Models/mListing/actGetMainListingImages.cfm <cfset AddToQ('mListing.GetMainListingImages')> is found in only one place: /W/Controllers/Listing/fbx_Switch.cfm case: SearchPropertyMapGetListingLocation Images on detail (right column and flyer page)
(1-7-11) SOLVED: Added CFC/image/listingImage call that was already in Detail pages and added it to restListingsAppendSold.cfm. Had to add |
12/27/10Nearby Solds | |||
---|---|---|---|
Added soldNearby to end of URL link on detail page.
Added to the link on dspSoldlistingDetailPublicUpdated.cfm
Added to dspPropertyCriteria.cfm
Added to restListingsAppendSold.cfm
|
12/16/10Fixing the Next/Previous Buttons on the List Page |
---|
When the search form is submitted, "searchString" is defined with mapExtendNorth, S, E, W, lat, long, state, zip, scheme, and display. The rest of the form is sent to the URL because the Form Submission is a Get. The Next button uses the variable "searchString" which is only some of the search terms, but not nmost of the form options. Solution: add <cfset AddToQ('mListing.CreateSearchString')> to the PropertyListView switch (case statement) in /Controllers/Listing/fbx_Switch.cfm However, this adds ptyp and zip and state in there twice. How does the original URL get created? ANSWER:
|
12/28/10Next/Previous Buttons on the List Page - Sold Pagination |
The selSearch_View.cfm SQL statement does not restrict TOP row returns. It gets them all. In dspListView.cfm,
SOLUTION: Ask REST to return a page of 4999 records, and do not use REST paging. |
12/20/10Fixing the Next/Previous Buttons on the Map Page (and the Now Showing 1 through 100 of 100) |
---|
Search for 98107, only residential: get 63. Only condo: get 69. search for both: get 100. Add solds, 30 days: get 122. Only solds: 22. Buttons Now Showing 1 through 100 of 100 document.getElementById("nowShowing").innerHTML = 'Now showing <span style="font-size: 20px;">' + P_START + '</span> through <span style="font-size: 20px;">' + ofCOunt + '</span> of '; in /js/map/lib.js
in /Views/vGeography/dspInteractiveMapPP3.cfm
in /js/map/listingMapXHR.js
in /js/xhr/xhr.js
in /Models/mListing/actListingCollectionThin.cfm
And attributes.listingRecordCount is what we set at the bottom of selSearch_View.cfm and selSearch_ViewGeo.cfm SOLVED: I had added at the bottom: <cfset attributes.listingRecordCount = "#selSearch_View.recordCount#"> I deleted that line and now the numbers are correct and the next/prev arrows work. |
12/28/10Next/Previous Buttons on the Map Page - Sold Pagination |
The only attribute that changes from first page to second is pStart. From 1 to 101 Added to dspPropertyCriteria.cfm
lib.js
/js/map/listingMapXHR.js
/js/xhr/xhr.js
***** SOLUTION for map view REST Pagination ******
|
12/29/10Limit Number of Records from SQL Table |
---|
In selSearch_ViewGeo.cfm
|
1/5/11Zoom Level |
---|
In /js/map/map.jsfunction Map( mapID, mapExtent, mapCenter, mapScreen, mapZoomLevel )
So, Map() is being called 4 times. function ListingMapRegistrySetExtentView() launches right before the Undefined result function addMap() launches before every "6" value. function ListingMSVEGetMap() launches before all 4 of the 11-14 values. If mapCenterLatitude and mapCenterLongtitude and zoomLevel are sent, but the 4 sides are left out, the zoom takes over. Using /js/map/listingMapRegistry.js - ListingMapRegistrySetZoomView() and clued in from the comments at the top of /Models/mGeography/actMapListingRegionResolver.cfm
|
1/28/11REST Service Throws an Error and Gives 0 Sold Results |
---|
in restListingsSoldAppendCount.cfmSet the default value of total solds to -1 to see where it comes out. Discover that it ends up in actListingCollectionThin. <cfparam name="restfulSoldData['@ofCount']" default="-1"> in selSearch_View.cfmThen, @ofCount gets set to listingRecordCountSold right after the include to restListingsSoldAppendCount. So, if the query returns nothing to change it, it gets the default. <cfset attributes.listingRecordCountSold = restfulSoldData['@ofCount'] > in actListingCollectionThin.cfm<soldListingCount>#attributes.listingRecordCountSold#</soldListingCount>
|
2/4/11How does the detail pane magically appear in Map View when there is only 1 result and the ListingID is defined? |
---|
attributes.XFA.listingDetailPermaLink
In /Views/vGeography/dspInteractiveMapPP3.cfm
In /js/map/lib.js
|