Try the following quick fix solution:

function getURLArguments(o) {  // pass a string or
frame/layer object
        var url,l={};
        if (typeof(o)=="string") url = o;
        else if (is.ns4 && o.src) url = o.src;
        else if (o.document) url = o.document.location.href;
        else return l;
        var s = url.substring(url.indexOf('?')+1);
        var a = s.split('&');
        for (var i=0;i<a.length;i++) {
                var b = a[i].split('=');
                l[b[0]] = unescape(b[1]);
        }
        return l;
}

var args =  getURLArguments(window);

var page=(args['page'])? args['page']:'page1.html';

lp.setHTML(page);


With the above you can type
mainpage.html?page=page1.html inside the address bar


PS. DynAPI 3.0 will include such functions to get URL
arguments.

--
Raymond Irving

--- honeybon <[EMAIL PROTECTED]> wrote:
> Okay, i have create an example of what I mean, you
> can find it here:
> http://www.xs4all.nl/~flint/test/test/mainpage.html
> 
> What you see on then is the mainpage with 3 links on
> it. When the mainpage
> is loaded, page1 is automatically loaded also.
> 
> What I want is that I just have to type one url in
> the addressbar of
> Internet Explorer, included a command that will load
> the correct page in the
> dynlayer. For example. I want the mainpage loaded,
> and page 2 in the layer.
> with just one address that I type in the addressbar
> of the browser. One url
> for page 1 and one url for page 3. . I hope this
> will be more clearer to
> understand what I mean.
> 
> Honeybon
> 
> ----- Original Message -----
> From: "honeybon" <[EMAIL PROTECTED]>
> To: "Raymond Irving" <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>
> Sent: Sunday, March 02, 2003 3:01 PM
> Subject: Re: [Dynapi-Help] combine url with
> javascript command
> 
> 
> > I added DynAPI.onLoad = function() { ,the mainpage
> loads, but not the
> > external page
> >
> > ----- Original Message -----
> > From: "Raymond Irving" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Sunday, March 02, 2003 1:52 PM
> > Subject: RE: [Dynapi-Help] combine url with
> javascript command
> >
> >
> > > Hi,
> > >
> > > Thay should be DynAPI.onLoad. Have you read the
> > > documentations?
> > >
> > >
>
http://dynapi.sourceforge.net/doccenter/index.php?DynAPITutorials
> > >
> > >
>
http://dynapi.sourceforge.net/doccenter/index.php?TroubleShooting
> > >
> > > --
> > > Raymond Irving
> > >
> > > --- honeybon <[EMAIL PROTECTED]> wrote:
> > > > Thanks for you reply Raymond, Can you explain
> what
> > > > you mean by using
> > > > DynAPI.omload.
> > > >
> > > > Using javascript:lp.setURL('page6.html'); does
> not
> > > > work because the
> > > > mainpage has to be loaded first, and I have
> several
> > > > mainpages with links
> > > > on it.
> > > >
> > > > Should it be possible to load the external
> page
> > > > first and then it calls
> > > > the mainpage and then the mainpage puts the
> external
> > > > page in the layer.
> > > >
> > > > -----Original Message-----
> > > > From: Raymond Irving
> [mailto:[EMAIL PROTECTED]
> > > > Sent: zondag 2 maart 2003 4:56
> > > > To: honeybon;
> [EMAIL PROTECTED]
> > > > Subject: Re: [Dynapi-Help] combine url with
> > > > javascript command
> > > >
> > > >
> > > > Try javascript:lp.setURL('page6.html');
> > > >
> > > > ot you could execute the
> lp.setURL('page6.html');
> > > > during a page load by using DynAPI.onLoad.
> > > >
> > > > --
> > > > Raymond Irving
> > > >
> > > >
> > > > --- honeybon <[EMAIL PROTECTED]> wrote:
> > > > >  Hello all.
> > > > >
> > > > >
> > > > >
> > > > > How do I combine the url of a page with
> links on
> > > > it
> > > > > that will open a
> > > > > page in the dynlayer. I have used this line
> > > > >
> > > >
> > >
>
javascript:document.location.href='http://localhost/dynapi/tutorial/scro
> > > > > llpanel.htm';lp.setURL('page6.html'); but
> it's not
> > > > > working, does have
> > > > > anyone an idea how to do this. I want to use
> it
> > > > for
> > > > > creating a sitemap,
> > > > > so that every page is loaded with the
> correct
> > > > > external page in the
> > > > > layer.
> > > > >
> > > > >
> > > > >
> > > > > Thanks honeybon
> > > > >
> > > > >
> > > >
> > > >
> > > >
> __________________________________________________
> > > > Do you Yahoo!?
> > > > Yahoo! Tax Center - forms, calculators, tips,
> more
> > > > http://taxes.yahoo.com/
> > >
> > >
> > >
> __________________________________________________
> > > Do you Yahoo!?
> > > Yahoo! Tax Center - forms, calculators, tips,
> more
> > > http://taxes.yahoo.com/
> > >
> > >
> > >
>
-------------------------------------------------------
> > > This sf.net email is sponsored by:ThinkGeek
> > > Welcome to geek heaven.
> > > http://thinkgeek.com/sf
> > > _______________________________________________
> > > Dynapi-Help mailing list
> > > [EMAIL PROTECTED]
> > >
>
https://lists.sourceforge.net/lists/listinfo/dynapi-help
> > >
> >
> >
> >
>
-------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > _______________________________________________
> > Dynapi-Help mailing list
> > [EMAIL PROTECTED]
> >
>
https://lists.sourceforge.net/lists/listinfo/dynapi-help
> >
> 
> 
>
-------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/dynapi-help


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to