Lay My Hat home page Lay My Hat Forum
The forum for holiday rental owners


 
  FAQFAQ    SearchSearch    MemberlistMemberlist   UsergroupsUsergroups    RegisterRegister  
  ProfileProfile    Log in to check your private messagesLog in to check your private messages    Log inLog in 

Odd initial focus

 
Post new topic   Reply to topic    Lay My Hat Forum Index ->
How to build your own personal website from scratch
View previous topic :: View next topic  
Author Message
Windy



Joined: 02 Oct 2007
Posts: 3246
Location: Windermere UK

PostPosted: Sun Jan 20, 2008 2:47 pm    Post subject: Odd initial focus Reply with quote

I have a currency converter on my availability page

http://www.windermerelodge.co.uk/html/availability_and_booking.html

and it has started hijacking the initial focus (in other words the page opens where it is rather than at the top)

Can anyone suggest how I can get the page to open at the top instead?

TIA

John
Back to top
View user's profile Send private message
e-richard



Joined: 17 Oct 2004
Posts: 4944
Location: Algarve, Portugal

PostPosted: Sun Jan 20, 2008 5:32 pm    Post subject: Reply with quote

I think what is going on is that the currency converter sets the initial focus to the input field of itself, so your whole page jumps to this point.

The problem resides in this bit of code:
Code:
<iframe src="http://www.xe.com/pca/input.php?Amount=100&FromSelect=GBP&ToSelect=EUR"


You could (make a back up) then try removing all the stuff after and including the question to the " like this:
Code:
<iframe src="http://www.xe.com/pca/input.php"

But perhaps a deeper look at the XE.COM website for info on how to embed their calculator would be the better solution.

I am confident of my diagnosis, but not of the solution Wink
_________________
** Richard
PIMS: Holiday Rental Management system
They say we learn from our mistakes. That makes me a genius !
Back to top
View user's profile Send private message Visit poster's website
Windy



Joined: 02 Oct 2007
Posts: 3246
Location: Windermere UK

PostPosted: Mon Jan 21, 2008 8:39 am    Post subject: Reply with quote

Cheers Richard

I'll take a look

John
Back to top
View user's profile Send private message
Windy



Joined: 02 Oct 2007
Posts: 3246
Location: Windermere UK

PostPosted: Tue Jan 22, 2008 7:34 pm    Post subject: Reply with quote

Decided to change it to a pop up link at top of the page as it seized the focus regardless of how it was set. - Shame it looked quite nice in line Crying or Very sad
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Lay My Hat Forum Index ->
How to build your own personal website from scratch
All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group