From: Peter L. <com...@op...> - 2000-12-10 07:59:13
|
Nuno You are on the right track. In ColdFusion there is a problem with database access and variable referencing in the xxx.cfm in the setHTML("xxx.cfm"). Perhaps the same problem also exists in PHP and ASP :-}~ I call another object that does all the database stuff in xxx.cfm using the <cfmodule> tag, subsequently returning pure HTML that you want to load into the panel. Perhaps there is an equivalent on your platform. Regards Peter Luxmore Nuno Ferreira wrote: > It works, as long as the code is client-side. > For instance PHP or ASP code is treated as text > because the file is not processed by the server. > > I'm trying to find a way to use the setHTML() > to get a PHP file processed by the server and > displayed on the page (on a layer, of course) > without reloading the whole page. > > I think I can do that in Explorer, using a Iframe. > (frame.location="file.php") and copy the HTML > produced to a string and setHTML("string") to a layer. > > Not sure how to do that in NS4+, though because each > layer on NS4 is treated like a new document, maybe there's > hope yet. > > NunoF > > -----Original Message----- > From: dyn...@li... > [mailto:dyn...@li...]On Behalf Of Matthew > Shirey > Sent: quinta-feira, 7 de Dezembro de 2000 20:13 > To: dyn...@li... > Subject: RE: [Dynapi-Help] html links inside loadpanel documents > > Well... does javascript in the loaded page actually get executed? I thought > it was just treated as HTML Text... > > M. > > -----Original Message----- > From: dyn...@li... > [mailto:dyn...@li...]On Behalf Of Mark Pratt > Sent: Wednesday, December 06, 2000 6:45 AM > To: dyn...@li... > Subject: Re: [Dynapi-Help] html links inside loadpanel documents > > I was thinking of something along the lines of .... > > In original document > > someLayer.setHTML ( 'someWebPage.html?layer=someLayer' ) ; > > In "someWebPage.html" > > theParam = <-- code to parse out URL (can't remember what the JS code for > this is, but > there is a function to do it ) --> > > document.write ( "<a href='#' onClick='" + theParam + > ".setHTML(\'myNewPage.html\')'>My > Link</a> > > .. if you know what I mean. > > Mark > > Cameron Hart wrote: > > > > I'm not sure if this is what you're looking for, but why not try > > > something like ... > > > > > > <a href="#" onClick="whateverLayer.setHTML('page.html')">My Link</a> > > > > > > If you don't know what whateverLayer is in adavnce, you could use > > > document.write to change the name of the layer. > > > > that works if you know what whatevenLayer is, but unfortunately I don't. I > > thought that the document loaded into the loadpanel would know what > > whateverLayer is (ie the layer it got loaded into) but it doesn't seem to. > > > > I'm not what you mean by using document.write to change the name of the > > layer? > > > > Thanks, > > > > Cameron. > > > > > > > > Let me know if you come across a better solution, or indeed if > > > anyone has come across a > > > solution to submitting a form and giving it a target inside a loadpanel. > > > > > > Mark > > > > > > Cameron Hart wrote: > > > > > > > I've got a question about links inside html files loaded into a > > > loadpanel. > > > > > > > > I am building a site that uses multiple loadpanels at the same time. > All > > > > these loadpanels contain external html documents. Some of these > > > documents > > > > have links in them. If you click on a link in a document loaded in a > > > > loadpanel, it loads the new page over the top of the main > > > window, not into > > > > the loadpanel. That's not good ;-) > > > > > > > > I've tried making the links javascript calls to call a setURL > > > to load a new > > > > document in the same loadpanel. The problem is that the > > > document inside the > > > > loadpanel doesn't seem to be "aware" of what loadpanel it is > > > in. It's parent > > > > appears to be the top level DynDocument, not the LoadPanel object. > > > > > > > > Does anyone have any ideas on how I can tell a document loaded into a > > > > loadpanel, this is your loadpanel, use setURL on this? > > > > > > > > Thanks, > > > > > > > > Cameron. > > > > > > > > _______________________________________________ > > > > Dynapi-Help mailing list > > > > Dyn...@li... > > > > http://lists.sourceforge.net/mailman/listinfo/dynapi-help > > > > > > _______________________________________________ > > > Dynapi-Help mailing list > > > Dyn...@li... > > > http://lists.sourceforge.net/mailman/listinfo/dynapi-help > > > > _______________________________________________ > > Dynapi-Help mailing list > > Dyn...@li... > > http://lists.sourceforge.net/mailman/listinfo/dynapi-help > > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-help > > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-help |