ctcdesigns
09-24-2008, 09:04 PM
I'm trying desperately to get this project done and I could use some help. I am using an external mapping tool on a site that I am doing. The site visitor would input their address or zip code and select distance. They would be presented with a store location near them. When they click on that link, it would take them to that store's specific page. In each store's specific page, I have the following javascript in the header:
var tS=window.location.search.split("&");
var tSearch=tS[0].split("=")[1];
var tSource=tS[1].split("=")[1];
function loadMap()
{
window.location="http://externalsite.com/ctc2.jsp?rds=yes&search="+tSearch+"&source="+tSource;
}
I then have a link on that page for map & directions which uses the following code:
javascript:loadMap();
This is working well as far as functionality goes, but the link actually goes to the external site and I need it to load in an iframe or similar, so it looks like the rest of the site.
Any help would be greatly appreciated.
var tS=window.location.search.split("&");
var tSearch=tS[0].split("=")[1];
var tSource=tS[1].split("=")[1];
function loadMap()
{
window.location="http://externalsite.com/ctc2.jsp?rds=yes&search="+tSearch+"&source="+tSource;
}
I then have a link on that page for map & directions which uses the following code:
javascript:loadMap();
This is working well as far as functionality goes, but the link actually goes to the external site and I need it to load in an iframe or similar, so it looks like the rest of the site.
Any help would be greatly appreciated.