Real Estate Forums
| Coding HTML, ASP, PHP, JAVA MYSQL and more. All coding questions should be asked here. |
![]() |
|
|
Thread Tools | Display Modes |
|
||||
|
Does anyone know how we can iFrame a website on a REW page. What would the code be?
Thanks in advance!
__________________
Keith "Baby-Face" Lutz www.LovingCharlotte.com ::Charlotte Blog :: Charlotte forum |
|
||||
|
Technically, it is pretty easy, but other than an IDX that is your own, but why would you? I have found that it is far better to send the user to a new window/session when going to an external website, for several reasons:
1) It makes it clear that the other website is not yours, and therefore its contents are not your responsibility. 2) The target website owner, if not an IDX that you subscribe to, may have TOS rules that prohibit the site being IFramed within another site. 3) The available display area of a REW site, and many other sites, is rarely large enough for the target website to be properly displayed, without bothersome horizontal scrolling. And, as far as I know, there is no way to re-size the target website to fit the available space.
__________________
Ron Goodman, GRI, REALTORŪ Prudential Colorado Real Estate Denver Colorado Real Estate: Highlands Ranch, Parker, Littleton, Castle Rock Adwords for Real Estate: PPC Setup Services & Consulting |
|
||||
|
I am working in conjuntion with the humane society in my area. So when I do print ads, I drive them to my web site.
__________________
Keith "Baby-Face" Lutz www.LovingCharlotte.com ::Charlotte Blog :: Charlotte forum |
|
||||
|
Huh? Print ads driving leads to your web site? What does that have to do with IFrames? Still, if you link to a site not owned by you, and not part of your real estate services offerings, it should open in a separate window, not within an IFrame. That keeps your site open in its own window, even if the user closes the other site. Same if you have a clickable ad on the Humane Society web site that links to your site. That should open in a new window also.
__________________
Ron Goodman, GRI, REALTORŪ Prudential Colorado Real Estate Denver Colorado Real Estate: Highlands Ranch, Parker, Littleton, Castle Rock Adwords for Real Estate: PPC Setup Services & Consulting |
|
|||
|
I don't know if this would be a suitable alternative, but the following code opens up a new window, but smaller than the current one. It isn't a "pop up" because they have clicked the link to open it, but it does "pop up" over the current window so it isn't a replacement in the sense of opening a site would be. If you are using it as an ad it may do the trick.
Now I'm not sure about the "proper coding" of the page being opened. The one I use here doesn't have any html head info but still works fine. The parameters are all in the link and pretty self-explanatory- <FORM><INPUT align="center" type="button" value="Add A Site" onClick="window.open('http://bungeebones.com/articles/leaving_website.php/<?echo $homepage_title;?>/','mywindow','width=380,height=380,toolbar=no,loca tion=no,directories=no,status=no,menubar=no,scroll bars=yes,copyhistory=no,resizable=yes')"> </FORM> |
|
||||
|
I meant to add the basic IFrame code to my last post:
<p align="center"> <iframe src="http://targeturl" width="96%" height="500"></iframe> </p> This is for a basic centered IFrame, full display area width minus a few pixels for left and right margins, and 500 px high. Adjust frame height as required to fit the target page. If the IFramed page doesn't fit in the available space, you will get scroll bars within the display area, which are to be avoided if at all possible.
__________________
Ron Goodman, GRI, REALTORŪ Prudential Colorado Real Estate Denver Colorado Real Estate: Highlands Ranch, Parker, Littleton, Castle Rock Adwords for Real Estate: PPC Setup Services & Consulting |
|
||||
|
Thanks everyone for your input. I have added a click for people to open in their own window.
http://www.lovingcharlotte.com/NeedaHome.php
__________________
Keith "Baby-Face" Lutz www.LovingCharlotte.com ::Charlotte Blog :: Charlotte forum |
|
||||
|
Is there a way to have an iframe height adjustable based on the the height of the page framed?
__________________
Steve Castaneda, Realtor Keller Williams Realty The MyHomeHouston Team Specializing in Houston Real Estate. Feel free to visit my Houston Real Estate Blog or read about Real Estate Technology for agents. |
|
|||
|
Yes. Avoid a call from the page itself, altogether. Before the page is loaded into a browser, make a cURL call to the URL you're pulling the data from, strip their html formatting completly and put the data into a page-friendly format of your own design and preference, including resizing images on the fly and maybe even caching it for the next person to view the page...
__________________
LanGard MicroDevelopers Oregon Real Estate Agent and Company Directory |
|
||||
|
Quote:
What are the SEO benefits (if any)?
__________________
Steve Castaneda, Realtor Keller Williams Realty The MyHomeHouston Team Specializing in Houston Real Estate. Feel free to visit my Houston Real Estate Blog or read about Real Estate Technology for agents. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|