eBook authors eBook Software - create and publish your own ebooks
Create your own eBooks
Learn How To Create, Publish & Market E-Books
E-Book Creation Software
Add sophisticated multimedia to your E-Books
Create E-Book covers in minutes
E-Book Marketing & Promotion made easy
Search engine for E-Books
Interviews with eBook authors
Tools for building better eBooks
Archived Message:

Initial focus

publicidad When run a application e-book the initial focus is in the e-book and not in the application it containt. For the keys in my application run is necesary to click in the application because the focus is in the e-book.
is  possible that initially the focus will be in the application and not in the e-book?
thank you

Posted on: 1:06 pm on October 7, 2004
Alaska Publicidad -

 I'm not sure about the details of your ebook configuration, but perhaps it might help if you specify the focus of the page when the page loads.

That would be something like:

<body onload=firstformelement.focus(); >  

to focus to the element I invented for the example, called firstformelement.

hope this helps -

Posted on: 4:01 pm on October 7, 2004
publicidad Than you. but...
sorry for my english..
the problem is betwenn the container (e-book) and the application. The focus initially is in the container and the menu key of the application donīt run. Only until you clic in the screen of application. I think is a problem in the e-book configuration  , but i donīt know...

Posted on: 4:51 pm on October 7, 2004
Alaska Publicidad -

 Did you try it, by adding the onload event to your starting html page of the application?

Posted on: 5:15 pm on October 7, 2004
publicidad yes I try, but the focus is in the container (e-book).
The application is Flash MX that run in a web page, and have a menu with keys, this keys dontīresponse until I click in the screen.

thank you

Posted on: 5:31 pm on October 7, 2004
Alaska ah, Flash.  that would make a difference.

 How is your Flash app embedded/displayed/called by your ebook?  What syntax are you using?

Posted on: 8:02 pm on October 7, 2004
publicidad The flash application is published in a html document.
When I run the html  page with flash in IE, the menu keys run correctly, but in the e-book I nedd click in the screen previously.

Thank you for help me

this is the html code

document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
document.write(' ID="inicio04" WIDTH="100%" HEIGHT="100%" ALIGN="">');
document.write(' <PARAM NAME=movie VALUE="inicio04.swf"> <PARAM NAME=quality VALUE=best> <PARAM NAME=wmode VALUE=transparent> <PARAM NAME=bgcolor VALUE=#FFFFFF>  ');
document.write(' <EMBED src="inicio04.swf" quality=best wmode=transparent bgcolor=#FFFFFF  ');
document.write(' swLiveConnect=FALSE WIDTH="100%" HEIGHT="100%" NAME="inicio04" ALIGN=""');
document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
document.write(' </EMBED>');
document.write(' </OBJECT>');

(Edited by publicidad at 12:26 pm on Oct. 8, 2004)

Posted on: 8:26 am on October 8, 2004
Alaska  I havn't had a chance to create a test file, but I can't help but wonder why your call to the .swf file is wrapped in JavaScript?

 I need to buy a new monitor for my main work pc, and a few other tasks, so I'm a bit distracted....

 ... but if you want to expedite things, you can send me a pared down version of your project that fails, and I can look at it that way.

best -


Posted on: 12:50 am on October 12, 2004
publicidad Thank you very much for your help.

The javascript call to .swf is maked for flash for detect if the customer has a last version of MAcromedia flash.
I try to call directly as a HTML but the initial focus is in the e-book.
If I run only the file index in IE, this donīt have the initial focus and the keys menu run correctly, why e-book no?

I upload the files e-booj, index and .swf to a internet address and you can download in a few minutes


Posted on: 8:29 am on October 13, 2004
Alaska I compiled the short version of your ebook , and it works fine;  the flash looks the same, whether from the html page or the ebook.  I get the Logo fading in, the background, the four menu options display, and if I hover over them, the ellipses appear to the right.

Here's a zipped copy of your ebook as I built it:  http://www.copperfieldpub.com/dev/testflash.zip

Perhaps you should look at your ebook on your desktop; it seems to be saving it on your 'P:' drive, which is probably on a network, right?   If you're running it from the network, maybe that's causing a problem.

Either way,  you should remove the 'onload=inicio04.focus();' from the </body> tag - it wouldn't work there for a number of reasons.

So, I would retest your ebook on your desktop and on someone else's, and see if it makes a difference.

best -

(Edited by Alaska at 2:54 pm on Oct. 13, 2004)

Posted on: 11:36 pm on October 13, 2004
publicidad Thank you for you help

Is possible I donīt relate very well the problem for my bad english.
With the mouse, the application run correctly. But I want use the menu keyboard without mouse.

1 for the History
2 Figures
3 Products
4 Location.
Space Barr (to play)
H Help
(I dont include the help file and the logo in the test... sorry)

You run the application and without mouse you clic the 1, 2, 3, 4 on the keyboard of the computer.

Don not answer

But if you previously clic with the mouse over the screen program the keyboard menu run corrrectly.

I hope to related well.

I try to compile the e-book in my desktop without network but the problem is same.

And excuse for the language.

Posted on: 10:04 am on October 14, 2004
Alaska ah, now it all become clear.

Not to worry about your English, it's already much better than my Spanish....

In your index.htm file, you'll want to change your <Body bgcolor="#FFFFFF"; > tag (on line 6) to look like this:

<BODY bgcolor="#FFFFFF"; onLoad="self.focus();">

that should do it.

Nice Flash, by the way.

best -

Posted on: 7:45 pm on October 14, 2004
publicidad more thank you

I include yor code

<meta http-equiv=Content-Type content="text/html;  charset=ISO-8859-1">
<BODY bgcolor="#FFFFFF" onLoad="self.focus();"> ...

and, in Internet explorer run ok, but when I compile the e-book, the problem appear.

Is necessary clic in the screen of the flash application previously for that the keyboard menu run.

is a little, but persistent problem...


Posted on: 9:26 am on October 15, 2004
Alaska Publicidad -

 Apologies.  I thought I had it.

 Problem for me is that my licensed copy of Activ is on a different computer than the one I can test on at the moment, so I use the Activ demo version.  It has the nag screen at the start, so it isn't a fair test for your problem.  Maybe Sunil can come up with a licensing scheme that allows an Activ Compiler installation on both a work and a home computer.

Anyway, it does seem that the ebook will not relinquish focus to the page itself, despite the fact that Flash is working.  I tried to delay the onload focus for one second, but that didn't work either.

 Would you be willing to have a small popup on the start page, like a 'hello' message, or navigation instructions, forcing the user to click on it to dismiss it, and thereby changing the focus to your page?

 That would have the desired effect, if you didn't mind the extra step...

Posted on: 8:41 pm on October 15, 2004
publicidad Yes, for the moment is a option, the window hello or similar to advert to customer about the use mode the keyboard menu.

A question, I donīt say if it is illegal but I think it is rasonable to have the same license in the work and in the house... for to work. I have the same license and run correctly in two sites.

If I find another  solution I will tell to you

thank you very much. bye

Posted on: 9:11 am on October 18, 2004
Manikese It's been a while since the last post, but if anyone has this problem and they find this via google or whatnot, this should help:

<body onLoad="window.document.${application}.focus();">

Posted on: 7:51 pm on November 21, 2008

List All Archived Forums

Copyright © 2000-2018, Answers 2000 Limited.

With any business, it is up to the individual owner of said business to ensure the success of the business. You may make more or less than any sample figures or results that might be quoted on our web sites or other publications. All business involves risk, and many businesses do not succeed. Further, Answers 2000 Limited does NOT represent that any particular individual or business is typical, or that any results or experiences achieved by any particular individual/business is necessarily typical.

Disclosure: Our company's websites' content (including this website's content) includes advertisements for our own company's websites, products, and services, and for other organization's websites, products, and services. In the case of links to other organization's websites, our company may receive a payment, (1) if you purchase products or services, or (2) if you sign-up for third party offers, after following links from this website. Unless specifically otherwise stated, information about other organization's products and services, is based on information provided by that organization, the product/service vendor, and/or publicly available information - and should not be taken to mean that we have used the product/service in question. Additionally, our company's websites contain some adverts which we are paid to display, but whose content is not selected by us, such as Google AdSense ads. For more detailed information, please see Advertising/Endorsements Disclosures

Our sites use cookies, some of which may already be set on your computer. Use of our site constitutes consent for this. For details, please see Privacy.

Click privacy for information about our company's privacy, data collection and data retention policies, and your rights.

Contact Us    About and Terms Of Use    Privacy    Advertising/Endorsements Disclosures