PDA

View Full Version : How to get default page to display



Kerry
08-21-2006, 10:54 PM
Please disregard, it's working now.
Thanks,

Kerry

1) Script Title: Drop-down Document Viewer

2) Script URL (on DD): Drop-down Document Viewer (http://www.dynamicdrive.com/dynamicindex3/dropdownview.htm)

3) Describe problem: In DD's example, the default is Yahoo and it displays the Yahoo website automatically. I want my default page to be displayed automatically without a viewer having to press the Go button alongside the first option "Statements 1- 5." I want docs displayed in an inline frame. My var displaymode=0.

I change the URL at


//if displaymode=0, configure inline frame attributes (ie: dimensions, intial document shown
var iframecode='<iframe id="external" style="width:95%;height:400px" src="http://www.yahoo.com"></iframe>' to read:


//if displaymode=0, configure inline frame attributes (ie: dimensions, intial document shown
var iframecode='<iframe id="external" style="width:95%;height:400px" src="http://www.managercoaching.com/sample.htm"></iframe>'
I change the selected URL to read:

<option value="http://www.managercoaching.com/sample.htm" selected>Sentences 1 - 5</option>


/sample.htm (Sentences 1 - 5 ) is the page I want to be displayed automatically. What I get is a blank page. The other drop downs perform as expected.

I get the same results using XP Pro IE and Firefox 1.5.0.6

What am I doing wrong?

Thanks,

Kerry

Test page for the Drop-down Documant Viewer = http://www.managercoaching.com/insertnewpage.htm

PS. Typo = "intial document" .