Build with IDX Broker › Forums › Developer Resources › Custom Basic Search Coding
Tagged: commingle, workaround needed
-
AuthorPosts
-
-
Sorry for the confusion. We had open a request with IDX Broker about one of our clients. They have multiple MLS boards on the account. When you go to the basic search page, choose a city and click search you get the results page. The problem is the results always come up as 0, and the user should somehow just know they need to click on the other MLS, in this clients case, its “Hudson Gateway MLS”. Once the user clicks on this tab they then get the results. Here is the url for the basic search for this client:
http://search.donnaandscottmcelweerealestate.com/idx/search/basic
Nick responded saying this was a “comingle” issue, and that he would respond with a possible workaround if we posted this issue here in the forums.
(0 rating, 0 votes, rated)
You need to be a registered member to rate this post.Loading... -
This is what is appended to the URL when you select the MLS which doesn’t allow commingling: &idxID=b040&commingle
Depending on the MLS the idxID value may be different/
You can create a custom basic search form and add those fields and values to the form to have the basic search page default to that MLS.
*This will only be available if you create a custom search form and not use our default basic search page
(0 rating, 0 votes, rated)
You need to be a registered member to rate this post.Loading... -
Hey Tom, thanks for the reply, so that works, and with that we were able to create a saved link that does show up with 18 results.
http://search.donnaandscottmcelweerealestate.com/idx/search/basic&idxID=b040&commingle
http://search.donnaandscottmcelweerealestate.com/i/homes
However, if a user (or client) visits either of those urls above, and clicks on modify search then we run into the same problem, as the url variable doesn’t stay.
(0 rating, 0 votes, rated)
You need to be a registered member to rate this post.Loading... -
There is no way around that other then to remove the modify search option from the results page, or try to create a piece of JavaScript and add to the results page subheader.
(0 rating, 0 votes, rated)
You need to be a registered member to rate this post.Loading... -
Mind providing some example code of the javascript workaround.
Any plans to ever update the system so we don’t require a javascript workaround, or manually need to add the secret url string?
&idxID= {{IDXID}} &commingle
(0 rating, 0 votes, rated)
You need to be a registered member to rate this post.Loading... -
I do not have the code, but if you figure it out it would be nice if you posted it.
(0 rating, 0 votes, rated)
You need to be a registered member to rate this post.Loading...-
Why not jsut use a bit of jQuery to modify the action attribute on the search form, like so?
<script type=”text/javascript” >
$( document ).ready(
function() {
var strAction = $(“#IDX-searchForm”).attr(“action”);
console.log(strAction + “?idxID=b040&commingle” );
$(“#IDX-searchForm”).attr(“action”, strAction + “?idxID=b040&commingle” );
});
</script>And it looks like IDX changes the default jQuery $ variable to ‘idx’, so if you don’t have jQuery loaded otherwise you might be able to write the code like this:
<script type=”text/javascript” >
idx( document ).ready(
function() {
var strAction = idx(“#IDX-searchForm”).attr(“action”);
console.log(strAction + “?idxID=b040&commingle” );
idx(“#IDX-searchForm”).attr(“action”, strAction + “?idxID=b040&commingle” );
});
</script>(0 rating, 0 votes, rated)
You need to be a registered member to rate this post.Loading...
-
-
AuthorPosts
- You must be logged in to reply to this topic.