Technical question regarding web Code

Bed & Breakfast / Short Term Rental Host Forum

Help Support Bed & Breakfast / Short Term Rental Host Forum:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.

swaapc

Well-known member
Joined
Apr 18, 2015
Messages
54
Reaction score
0
Hi,
I am a newbie on this site so am not too sure what questions I can ask and what level of expertise there is available. I have a question regarding some coding I need to do to our web site.
Before I ask the question I had better outline my own capabilities. I am not a web designer or a programmer. I am what could be termed an incompetent amateur who has dabbled in coding for over 30 years. So the question I am about to ask may not be in the correct language or terminology and I may not fully understand an answer from a proper programmer although I can try.
Scenario - A web page (parent) with an Iframe on it. In the Iframe is a form that generates an Ajax call.
Now the Question - Is it technically possible to get the Ajax return to display on the Parent page (rather than within the Iframe).
OK it sounds like a daft thing to do but the reality is far more complex and this is just a summary of the main issue which I can't get my head round.
Thanks for any help.
 
Can't answer your question but we're open to almost any kind of question here and there are a lot of folks with wildly divergent backgrounds. Someone will help...
 
I don't have the answer but I am sure google does.
I know that iframes are pretty big no nos for security purposes now on the web as it is vulnerable. I know many of us used iframes when we wanted to embed our online reservation system and it would not show the httpS.
 
I don't have the answer but I am sure google does.
I know that iframes are pretty big no nos for security purposes now on the web as it is vulnerable. I know many of us used iframes when we wanted to embed our online reservation system and it would not show the httpS..
Joey Bloggs said:
I don't have the answer but I am sure google does.
I know that iframes are pretty big no nos for security purposes now on the web as it is vulnerable. I know many of us used iframes when we wanted to embed our online reservation system and it would not show the httpS.
Hi,
I can't find anything on Google about it but then I may be asking the wrong question or it is so obvious no one has asked the question before.
I didn't realise that Iframes were a security issue. Any idea why? In general I don't use Iframes but I just can't think of another way of achieving what I am after. Maybe I will have to come up with another 'cunning plan'.
 
I don't have the answer but I am sure google does.
I know that iframes are pretty big no nos for security purposes now on the web as it is vulnerable. I know many of us used iframes when we wanted to embed our online reservation system and it would not show the httpS..
Joey Bloggs said:
I don't have the answer but I am sure google does.
I know that iframes are pretty big no nos for security purposes now on the web as it is vulnerable. I know many of us used iframes when we wanted to embed our online reservation system and it would not show the httpS.
Hi,
I can't find anything on Google about it but then I may be asking the wrong question or it is so obvious no one has asked the question before.
I didn't realise that Iframes were a security issue. Any idea why? In general I don't use Iframes but I just can't think of another way of achieving what I am after. Maybe I will have to come up with another 'cunning plan'.
.
Why don't you pose the question as what you are trying to achieve/why - whatever to explain what you want it to do. There are some brains here that will probably be able to help if they know what result you are looking for. (I am NOT one of them.)
 
I don't have the answer but I am sure google does.
I know that iframes are pretty big no nos for security purposes now on the web as it is vulnerable. I know many of us used iframes when we wanted to embed our online reservation system and it would not show the httpS..
Not to distract from Chris' question but we use a https iframe online booking engine within our https site and it works fine, displays the padlock etc.

v1.0: https://www.anniesguesthouse.co.uk/book-online.shtml and v2.0: https://www.anniesguesthouse.co.uk/2/book-online.shtml (a work in progress!)
Back to your question Chris, have you thought of posting it somewhere like StackExchange?
 
I don't have the answer but I am sure google does.
I know that iframes are pretty big no nos for security purposes now on the web as it is vulnerable. I know many of us used iframes when we wanted to embed our online reservation system and it would not show the httpS..
Joey Bloggs said:
I don't have the answer but I am sure google does.
I know that iframes are pretty big no nos for security purposes now on the web as it is vulnerable. I know many of us used iframes when we wanted to embed our online reservation system and it would not show the httpS.
Hi,
I can't find anything on Google about it but then I may be asking the wrong question or it is so obvious no one has asked the question before.
I didn't realise that Iframes were a security issue. Any idea why? In general I don't use Iframes but I just can't think of another way of achieving what I am after. Maybe I will have to come up with another 'cunning plan'.
.
if you still have an old style html site, you need to convert overto a new responsive site with wordpress.
no iframes...so dated.
 
I don't have the answer but I am sure google does.
I know that iframes are pretty big no nos for security purposes now on the web as it is vulnerable. I know many of us used iframes when we wanted to embed our online reservation system and it would not show the httpS..
Not to distract from Chris' question but we use a https iframe online booking engine within our https site and it works fine, displays the padlock etc.

v1.0: https://www.anniesguesthouse.co.uk/book-online.shtml and v2.0: https://www.anniesguesthouse.co.uk/2/book-online.shtml (a work in progress!)
Back to your question Chris, have you thought of posting it somewhere like StackExchange?
.
anniesguesthouse said:
Not to distract from Chris' question but we use a https iframe online booking engine within our https site and it works fine, displays the padlock etc.

v1.0: https://www.anniesguesthouse.co.uk/book-online.shtml and v2.0: https://www.anniesguesthouse.co.uk/2/book-online.shtml (a work in progress!)
Back to your question Chris, have you thought of posting it somewhere like StackExchange?
Stack exchange came up a few times when I searched for iframes, so they might be a good resource.
 
I don't have the answer but I am sure google does.
I know that iframes are pretty big no nos for security purposes now on the web as it is vulnerable. I know many of us used iframes when we wanted to embed our online reservation system and it would not show the httpS..
Joey Bloggs said:
I don't have the answer but I am sure google does.
I know that iframes are pretty big no nos for security purposes now on the web as it is vulnerable. I know many of us used iframes when we wanted to embed our online reservation system and it would not show the httpS.
Hi,
I can't find anything on Google about it but then I may be asking the wrong question or it is so obvious no one has asked the question before.
I didn't realise that Iframes were a security issue. Any idea why? In general I don't use Iframes but I just can't think of another way of achieving what I am after. Maybe I will have to come up with another 'cunning plan'.
.
if you still have an old style html site, you need to convert overto a new responsive site with wordpress.
no iframes...so dated.
.
I don't think that's 100% true. We're in the process of migrating to a responsive design site using Bootstrap and that v2.0 of our book online page I linked to above a) has an iframe and b) passes Google's mobile friendly test.
 
I don't have the answer but I am sure google does.
I know that iframes are pretty big no nos for security purposes now on the web as it is vulnerable. I know many of us used iframes when we wanted to embed our online reservation system and it would not show the httpS..
Joey Bloggs said:
I don't have the answer but I am sure google does.
I know that iframes are pretty big no nos for security purposes now on the web as it is vulnerable. I know many of us used iframes when we wanted to embed our online reservation system and it would not show the httpS.
Hi,
I can't find anything on Google about it but then I may be asking the wrong question or it is so obvious no one has asked the question before.
I didn't realise that Iframes were a security issue. Any idea why? In general I don't use Iframes but I just can't think of another way of achieving what I am after. Maybe I will have to come up with another 'cunning plan'.
.
if you still have an old style html site, you need to convert overto a new responsive site with wordpress.
no iframes...so dated.
.
I don't think that's 100% true. We're in the process of migrating to a responsive design site using Bootstrap and that v2.0 of our book online page I linked to above a) has an iframe and b) passes Google's mobile friendly test.
.
anniesguesthouse said:
I don't think that's 100% true. We're in the process of migrating to a responsive design site using Bootstrap and that v2.0 of our book online page I linked to above a) has an iframe and b) passes Google's mobile friendly test.
They are a pretty strong topic for web developers, most are going away from them, not toward them.
I would ask the experts what is the latest to use for lodging websites if they aren't using iframes? I wouldn't want to go backwards for a new website as it is becoming obsolete. (this was from 2010 imagine how much it has changed even since then in 5 years!)
From what I have done and seen, I believe that would be a DIV. That is not anything new, but newer.
Converting iframes to divs via ajax query here
 
Frames are dated. Iframes are not. They are not really the same animal. The presence of iframes has nothing to do with responsiveness or wordpress. (example: the recommended method for embedding Youtube videos.... iframes.)
To the original question... can an ajax call made inside the iframe influence the parent page. If they are on different domains they should not be able to talk to each other. They are kept separate for security reasons. If they are on the same domain then yes the child can talk to the parent http://stackoverflow.com/questions/951946/can-javascript-running-inside-an-iframe-affect-the-main-page
 
I don't have the answer but I am sure google does.
I know that iframes are pretty big no nos for security purposes now on the web as it is vulnerable. I know many of us used iframes when we wanted to embed our online reservation system and it would not show the httpS..
Joey Bloggs said:
I don't have the answer but I am sure google does.
I know that iframes are pretty big no nos for security purposes now on the web as it is vulnerable. I know many of us used iframes when we wanted to embed our online reservation system and it would not show the httpS.
Hi,
I can't find anything on Google about it but then I may be asking the wrong question or it is so obvious no one has asked the question before.
I didn't realise that Iframes were a security issue. Any idea why? In general I don't use Iframes but I just can't think of another way of achieving what I am after. Maybe I will have to come up with another 'cunning plan'.
.
if you still have an old style html site, you need to convert overto a new responsive site with wordpress.
no iframes...so dated.
.
EmptyNest said:
if you still have an old style html site, you need to convert overto a new responsive site with wordpress.
no iframes...so dated.
I use wordpress for all our blogs but when I investigated the use of it for our main site it was far to inflexible for what I wanted to do. In addition performance was likely to be an issue as our service provider doesn't support any performance optimisation for Wordpress. I did look at a couple of other CMS solutions Concrete5 and Foundation but although they seemed superior to Wordpress (for what I wanted to do) they didn't seem to have the support. In the end I went with Bootstrap which of course has a high overhead but you can do whatever you like with it.
Why are iFrames dated? Surely they still have a place. They are fully supported in HTML5 in fact they have been enhanced.
 
I don't have the answer but I am sure google does.
I know that iframes are pretty big no nos for security purposes now on the web as it is vulnerable. I know many of us used iframes when we wanted to embed our online reservation system and it would not show the httpS..
Joey Bloggs said:
I don't have the answer but I am sure google does.
I know that iframes are pretty big no nos for security purposes now on the web as it is vulnerable. I know many of us used iframes when we wanted to embed our online reservation system and it would not show the httpS.
Hi,
I can't find anything on Google about it but then I may be asking the wrong question or it is so obvious no one has asked the question before.
I didn't realise that Iframes were a security issue. Any idea why? In general I don't use Iframes but I just can't think of another way of achieving what I am after. Maybe I will have to come up with another 'cunning plan'.
.
if you still have an old style html site, you need to convert overto a new responsive site with wordpress.
no iframes...so dated.
.
I don't think that's 100% true. We're in the process of migrating to a responsive design site using Bootstrap and that v2.0 of our book online page I linked to above a) has an iframe and b) passes Google's mobile friendly test.
.
anniesguesthouse said:
I don't think that's 100% true. We're in the process of migrating to a responsive design site using Bootstrap and that v2.0 of our book online page I linked to above a) has an iframe and b) passes Google's mobile friendly test.
They are a pretty strong topic for web developers, most are going away from them, not toward them.
I would ask the experts what is the latest to use for lodging websites if they aren't using iframes? I wouldn't want to go backwards for a new website as it is becoming obsolete. (this was from 2010 imagine how much it has changed even since then in 5 years!)
From what I have done and seen, I believe that would be a DIV. That is not anything new, but newer.
Converting iframes to divs via ajax query here
.
Joey Bloggs said:
anniesguesthouse said:
I don't think that's 100% true. We're in the process of migrating to a responsive design site using Bootstrap and that v2.0 of our book online page I linked to above a) has an iframe and b) passes Google's mobile friendly test.
They are a pretty strong topic for web developers, most are going away from them, not toward them.
I would ask the experts what is the latest to use for lodging websites if they aren't using iframes? I wouldn't want to go backwards for a new website as it is becoming obsolete. (this was from 2010 imagine how much it has changed even since then in 5 years!)
From what I have done and seen, I believe that would be a DIV. That is not anything new, but newer.
Converting iframes to divs via ajax query here
There are a number of other alternatives I have looked at including PHP includes, ajax etc but all I think require building the html in php which means unless someone has a solution that the html code is virtually impossible to debug (or I have never found a way other than creating the code in an IDE and testing it then converting it for php. I was try to avoid that route by using iFrames. Basically I can construct html, javascript etc get it working then use an Iframe to display it.
 
I don't have the answer but I am sure google does.
I know that iframes are pretty big no nos for security purposes now on the web as it is vulnerable. I know many of us used iframes when we wanted to embed our online reservation system and it would not show the httpS..
Joey Bloggs said:
I don't have the answer but I am sure google does.
I know that iframes are pretty big no nos for security purposes now on the web as it is vulnerable. I know many of us used iframes when we wanted to embed our online reservation system and it would not show the httpS.
Hi,
I can't find anything on Google about it but then I may be asking the wrong question or it is so obvious no one has asked the question before.
I didn't realise that Iframes were a security issue. Any idea why? In general I don't use Iframes but I just can't think of another way of achieving what I am after. Maybe I will have to come up with another 'cunning plan'.
.
Why don't you pose the question as what you are trying to achieve/why - whatever to explain what you want it to do. There are some brains here that will probably be able to help if they know what result you are looking for. (I am NOT one of them.)
.
Good idea.
Here is what I am trying to do:
If you have a look at http://www.bolehill.com/peak-district-cottages_2.php (this is a test site so don't worry about my stats etc). At the bottom right hand side of each Cottage tab is a Rates per week area. What I am planning to do is add a form with a dropdown calendar and length of stay box. This would submit an Ajax request for the result (all the sever side code is already working as I use it on other pages already). Now to do this for a single Tab/cottage is trivial but to do it for 8 seems a bit messy if I just replicate the code 9 times (two pages need this). So my thought was produce the code once, get it working then use an Iframe to display the little form then put the response back on the parent page.
I could use a php call (as is the current 'Rates per week' ) but that would mean writing the html in php which from past experience isn't that easy, if the html has any complexity and needs testing. Its the testing of the code that is the killer to me.
Any thoughts would be greatly appreciated.
 
I don't have the answer but I am sure google does.
I know that iframes are pretty big no nos for security purposes now on the web as it is vulnerable. I know many of us used iframes when we wanted to embed our online reservation system and it would not show the httpS..
Joey Bloggs said:
I don't have the answer but I am sure google does.
I know that iframes are pretty big no nos for security purposes now on the web as it is vulnerable. I know many of us used iframes when we wanted to embed our online reservation system and it would not show the httpS.
Hi,
I can't find anything on Google about it but then I may be asking the wrong question or it is so obvious no one has asked the question before.
I didn't realise that Iframes were a security issue. Any idea why? In general I don't use Iframes but I just can't think of another way of achieving what I am after. Maybe I will have to come up with another 'cunning plan'.
.
if you still have an old style html site, you need to convert overto a new responsive site with wordpress.
no iframes...so dated.
.
I don't think that's 100% true. We're in the process of migrating to a responsive design site using Bootstrap and that v2.0 of our book online page I linked to above a) has an iframe and b) passes Google's mobile friendly test.
.
anniesguesthouse said:
I don't think that's 100% true. We're in the process of migrating to a responsive design site using Bootstrap and that v2.0 of our book online page I linked to above a) has an iframe and b) passes Google's mobile friendly test.
They are a pretty strong topic for web developers, most are going away from them, not toward them.
I would ask the experts what is the latest to use for lodging websites if they aren't using iframes? I wouldn't want to go backwards for a new website as it is becoming obsolete. (this was from 2010 imagine how much it has changed even since then in 5 years!)
From what I have done and seen, I believe that would be a DIV. That is not anything new, but newer.
Converting iframes to divs via ajax query here
.
Joey Bloggs said:
anniesguesthouse said:
I don't think that's 100% true. We're in the process of migrating to a responsive design site using Bootstrap and that v2.0 of our book online page I linked to above a) has an iframe and b) passes Google's mobile friendly test.
They are a pretty strong topic for web developers, most are going away from them, not toward them.
I would ask the experts what is the latest to use for lodging websites if they aren't using iframes? I wouldn't want to go backwards for a new website as it is becoming obsolete. (this was from 2010 imagine how much it has changed even since then in 5 years!)
From what I have done and seen, I believe that would be a DIV. That is not anything new, but newer.
Converting iframes to divs via ajax query here
There are a number of other alternatives I have looked at including PHP includes, ajax etc but all I think require building the html in php which means unless someone has a solution that the html code is virtually impossible to debug (or I have never found a way other than creating the code in an IDE and testing it then converting it for php. I was try to avoid that route by using iFrames. Basically I can construct html, javascript etc get it working then use an Iframe to display it.
.
swaapc said:
Joey Bloggs said:
anniesguesthouse said:
I don't think that's 100% true. We're in the process of migrating to a responsive design site using Bootstrap and that v2.0 of our book online page I linked to above a) has an iframe and b) passes Google's mobile friendly test.
They are a pretty strong topic for web developers, most are going away from them, not toward them.
I would ask the experts what is the latest to use for lodging websites if they aren't using iframes? I wouldn't want to go backwards for a new website as it is becoming obsolete. (this was from 2010 imagine how much it has changed even since then in 5 years!)
From what I have done and seen, I believe that would be a DIV. That is not anything new, but newer.
Converting iframes to divs via ajax query here
There are a number of other alternatives I have looked at including PHP includes, ajax etc but all I think require building the html in php which means unless someone has a solution that the html code is virtually impossible to debug (or I have never found a way other than creating the code in an IDE and testing it then converting it for php. I was try to avoid that route by using iFrames. Basically I can construct html, javascript etc get it working then use an Iframe to display it.
You shouldn't have to go through all of that. This is why I am saying it is old school, and trying to retain it. All of us who built our own sites in html had to move forward, wordpress is what everyone is using, for everything, if you have a provider who is capable of hosting wordpress I would switch. I know that sounds harsh.
 
I don't have the answer but I am sure google does.
I know that iframes are pretty big no nos for security purposes now on the web as it is vulnerable. I know many of us used iframes when we wanted to embed our online reservation system and it would not show the httpS..
Joey Bloggs said:
I don't have the answer but I am sure google does.
I know that iframes are pretty big no nos for security purposes now on the web as it is vulnerable. I know many of us used iframes when we wanted to embed our online reservation system and it would not show the httpS.
Hi,
I can't find anything on Google about it but then I may be asking the wrong question or it is so obvious no one has asked the question before.
I didn't realise that Iframes were a security issue. Any idea why? In general I don't use Iframes but I just can't think of another way of achieving what I am after. Maybe I will have to come up with another 'cunning plan'.
.
if you still have an old style html site, you need to convert overto a new responsive site with wordpress.
no iframes...so dated.
.
I don't think that's 100% true. We're in the process of migrating to a responsive design site using Bootstrap and that v2.0 of our book online page I linked to above a) has an iframe and b) passes Google's mobile friendly test.
.
anniesguesthouse said:
I don't think that's 100% true. We're in the process of migrating to a responsive design site using Bootstrap and that v2.0 of our book online page I linked to above a) has an iframe and b) passes Google's mobile friendly test.
They are a pretty strong topic for web developers, most are going away from them, not toward them.
I would ask the experts what is the latest to use for lodging websites if they aren't using iframes? I wouldn't want to go backwards for a new website as it is becoming obsolete. (this was from 2010 imagine how much it has changed even since then in 5 years!)
From what I have done and seen, I believe that would be a DIV. That is not anything new, but newer.
Converting iframes to divs via ajax query here
.
Joey Bloggs said:
anniesguesthouse said:
I don't think that's 100% true. We're in the process of migrating to a responsive design site using Bootstrap and that v2.0 of our book online page I linked to above a) has an iframe and b) passes Google's mobile friendly test.
They are a pretty strong topic for web developers, most are going away from them, not toward them.
I would ask the experts what is the latest to use for lodging websites if they aren't using iframes? I wouldn't want to go backwards for a new website as it is becoming obsolete. (this was from 2010 imagine how much it has changed even since then in 5 years!)
From what I have done and seen, I believe that would be a DIV. That is not anything new, but newer.
Converting iframes to divs via ajax query here
There are a number of other alternatives I have looked at including PHP includes, ajax etc but all I think require building the html in php which means unless someone has a solution that the html code is virtually impossible to debug (or I have never found a way other than creating the code in an IDE and testing it then converting it for php. I was try to avoid that route by using iFrames. Basically I can construct html, javascript etc get it working then use an Iframe to display it.
.
swaapc said:
Joey Bloggs said:
anniesguesthouse said:
I don't think that's 100% true. We're in the process of migrating to a responsive design site using Bootstrap and that v2.0 of our book online page I linked to above a) has an iframe and b) passes Google's mobile friendly test.
They are a pretty strong topic for web developers, most are going away from them, not toward them.
I would ask the experts what is the latest to use for lodging websites if they aren't using iframes? I wouldn't want to go backwards for a new website as it is becoming obsolete. (this was from 2010 imagine how much it has changed even since then in 5 years!)
From what I have done and seen, I believe that would be a DIV. That is not anything new, but newer.
Converting iframes to divs via ajax query here
There are a number of other alternatives I have looked at including PHP includes, ajax etc but all I think require building the html in php which means unless someone has a solution that the html code is virtually impossible to debug (or I have never found a way other than creating the code in an IDE and testing it then converting it for php. I was try to avoid that route by using iFrames. Basically I can construct html, javascript etc get it working then use an Iframe to display it.
You shouldn't have to go through all of that. This is why I am saying it is old school, and trying to retain it. All of us who built our own sites in html had to move forward, wordpress is what everyone is using, for everything, if you have a provider who is capable of hosting wordpress I would switch. I know that sounds harsh.
.
Joey Bloggs said:
You shouldn't have to go through all of that. This is why I am saying it is old school, and trying to retain it. All of us who built our own sites in html had to move forward, wordpress is what everyone is using, for everything, if you have a provider who is capable of hosting wordpress I would switch. I know that sounds harsh.
Our provider does support Wordpress and we have at least one of our blogs running on it. The problem is that the provider doesn't provide any bespoke performance optimisation (that I know about) for Wordpress and therefore performance was/is a potential issue (a well know problem with Wordpress). I spent 1-2 months investigating the possibility of using a CMS packages (most of that time with Wordpress as I have used it for years) but couldn't find any that provided the kind of flexibility I was looking for. Along with Wordpress I also looked at Foundation and Concrete5 both of which I thought were excellent environments for a web page but support was very patchy and were obviously for professionals (not me). The only way I could get Wordpress to do what 'I' wanted it to do was to learn how to write themes and plugins and I didn't really want to do that as I would still be constrained by Wordpress. I obviously also looked at Joomla and Drupal but they seemed a bit complex for me and I was starting from a zero knowledge base so decided against them. In the end I decided on a Framework rather than a CMS and after much further work decided on Bootstrap. Not an easy learning curve but well worth it as I can now do whatever I like with Bootstrap doing the heavy lifting (responsiveness etc). Unfortunately Bootstrap, as I have discovered, is only a partial solution to responsive design (as are all the other frameworks I have seen). It is very one dimensional (takes account of width) and I have had at times to add my own 2nd dimension (height). It really also needs a third dimension (network performance) which is way past my capability but I assume one day will be added.
 
I don't have the answer but I am sure google does.
I know that iframes are pretty big no nos for security purposes now on the web as it is vulnerable. I know many of us used iframes when we wanted to embed our online reservation system and it would not show the httpS..
Joey Bloggs said:
I don't have the answer but I am sure google does.
I know that iframes are pretty big no nos for security purposes now on the web as it is vulnerable. I know many of us used iframes when we wanted to embed our online reservation system and it would not show the httpS.
Hi,
I can't find anything on Google about it but then I may be asking the wrong question or it is so obvious no one has asked the question before.
I didn't realise that Iframes were a security issue. Any idea why? In general I don't use Iframes but I just can't think of another way of achieving what I am after. Maybe I will have to come up with another 'cunning plan'.
.
Why don't you pose the question as what you are trying to achieve/why - whatever to explain what you want it to do. There are some brains here that will probably be able to help if they know what result you are looking for. (I am NOT one of them.)
.
Good idea.
Here is what I am trying to do:
If you have a look at http://www.bolehill.com/peak-district-cottages_2.php (this is a test site so don't worry about my stats etc). At the bottom right hand side of each Cottage tab is a Rates per week area. What I am planning to do is add a form with a dropdown calendar and length of stay box. This would submit an Ajax request for the result (all the sever side code is already working as I use it on other pages already). Now to do this for a single Tab/cottage is trivial but to do it for 8 seems a bit messy if I just replicate the code 9 times (two pages need this). So my thought was produce the code once, get it working then use an Iframe to display the little form then put the response back on the parent page.
I could use a php call (as is the current 'Rates per week' ) but that would mean writing the html in php which from past experience isn't that easy, if the html has any complexity and needs testing. Its the testing of the code that is the killer to me.
Any thoughts would be greatly appreciated.
.
From a SEO perspective Chris wouldn't you prefer visitors to have to look at more pages for longer rather than give them the quick "how much?" answer then leave? I'd be tempted to just use the "weekly rates from..." then have them go to your full availability calender to see all rates and availability. Just my thoughts.
 
I don't have the answer but I am sure google does.
I know that iframes are pretty big no nos for security purposes now on the web as it is vulnerable. I know many of us used iframes when we wanted to embed our online reservation system and it would not show the httpS..
Joey Bloggs said:
I don't have the answer but I am sure google does.
I know that iframes are pretty big no nos for security purposes now on the web as it is vulnerable. I know many of us used iframes when we wanted to embed our online reservation system and it would not show the httpS.
Hi,
I can't find anything on Google about it but then I may be asking the wrong question or it is so obvious no one has asked the question before.
I didn't realise that Iframes were a security issue. Any idea why? In general I don't use Iframes but I just can't think of another way of achieving what I am after. Maybe I will have to come up with another 'cunning plan'.
.
Why don't you pose the question as what you are trying to achieve/why - whatever to explain what you want it to do. There are some brains here that will probably be able to help if they know what result you are looking for. (I am NOT one of them.)
.
Good idea.
Here is what I am trying to do:
If you have a look at http://www.bolehill.com/peak-district-cottages_2.php (this is a test site so don't worry about my stats etc). At the bottom right hand side of each Cottage tab is a Rates per week area. What I am planning to do is add a form with a dropdown calendar and length of stay box. This would submit an Ajax request for the result (all the sever side code is already working as I use it on other pages already). Now to do this for a single Tab/cottage is trivial but to do it for 8 seems a bit messy if I just replicate the code 9 times (two pages need this). So my thought was produce the code once, get it working then use an Iframe to display the little form then put the response back on the parent page.
I could use a php call (as is the current 'Rates per week' ) but that would mean writing the html in php which from past experience isn't that easy, if the html has any complexity and needs testing. Its the testing of the code that is the killer to me.
Any thoughts would be greatly appreciated.
.
From a SEO perspective Chris wouldn't you prefer visitors to have to look at more pages for longer rather than give them the quick "how much?" answer then leave? I'd be tempted to just use the "weekly rates from..." then have them go to your full availability calender to see all rates and availability. Just my thoughts.
.
anniesguesthouse said:
From a SEO perspective Chris wouldn't you prefer visitors to have to look at more pages for longer rather than give them the quick "how much?" answer then leave? I'd be tempted to just use the "weekly rates from..." then have them go to your full availability calender to see all rates and availability. Just my thoughts.
Good point. I had never thought of it that way.
I suppose I design web pages using the concept of "Don't make me Think" (brilliant book if anyone has read it) and therefore the concept of getting someone to go to another page to search is a bit against this concept. Our old web pages gave the user the ability to 'see' availability for each cottage in a monthly calendar view but not prices so this time round I was looking to be able to give the users availability and prices.
Regarding SEO I gave up any attempt at SEO after Panda and Penguin. I just got fed up of Google wagging my tail. I spent hours and hours on it and was relatively successful (Page one for most of our primary keywords) but once Panda and Penguin arrive and with the OTA dominance of search I just couldn't see the justification any longer. The site is now written for users not Google.
 
I don't have the answer but I am sure google does.
I know that iframes are pretty big no nos for security purposes now on the web as it is vulnerable. I know many of us used iframes when we wanted to embed our online reservation system and it would not show the httpS..
Joey Bloggs said:
I don't have the answer but I am sure google does.
I know that iframes are pretty big no nos for security purposes now on the web as it is vulnerable. I know many of us used iframes when we wanted to embed our online reservation system and it would not show the httpS.
Hi,
I can't find anything on Google about it but then I may be asking the wrong question or it is so obvious no one has asked the question before.
I didn't realise that Iframes were a security issue. Any idea why? In general I don't use Iframes but I just can't think of another way of achieving what I am after. Maybe I will have to come up with another 'cunning plan'.
.
if you still have an old style html site, you need to convert overto a new responsive site with wordpress.
no iframes...so dated.
.
I don't think that's 100% true. We're in the process of migrating to a responsive design site using Bootstrap and that v2.0 of our book online page I linked to above a) has an iframe and b) passes Google's mobile friendly test.
.
anniesguesthouse said:
I don't think that's 100% true. We're in the process of migrating to a responsive design site using Bootstrap and that v2.0 of our book online page I linked to above a) has an iframe and b) passes Google's mobile friendly test.
They are a pretty strong topic for web developers, most are going away from them, not toward them.
I would ask the experts what is the latest to use for lodging websites if they aren't using iframes? I wouldn't want to go backwards for a new website as it is becoming obsolete. (this was from 2010 imagine how much it has changed even since then in 5 years!)
From what I have done and seen, I believe that would be a DIV. That is not anything new, but newer.
Converting iframes to divs via ajax query here
.
That becoming obsolete link is flawed from the beginning. Frame and frameset were dropped from the html5 spec. Iframe was not. The iframe is alive and well and is still needed for sandboxing content. No div swapping can achieve that.
 
Chris by all means trust Swirt's and Empty Nest's comments, I am only sharing my own experience and research. EN builds websites on a regular basis. (Wanted to clarify that so I don't confuse the facts) :)
 
Back
Top