An idea I haven't been able to fully evalute as of
yet:
If you don't want to reload the page you should use a
a) loadpanel or b) iframe (no NS4.x compability
though). Then you should only use a querystring (which
you construct from the form values and put together
with the url of the reciveing script) and load it -
not go to in the loadpanel/iframe. Loadpanel isn't
able to be positioned so you would probably want to
put it inside of another dynlayer.
something like this (not tested!)
myFormLayer= new DynLayer()
myFormlayer.setHTML("<form name='myForm'>Value1:<input
type='text' name='value1'>Value2:<input type='text'
name='value2'><input type='button'
onclick='doPost'><//form>")
DynAPI.document.addChild(myFormLayer)
myOutputLayer = new DynLayer()
myOutputLayerCanvas = new LoadPanel()
DynAPI.document.addChild(myOutputLayer)
myOutputLayer.addChild(myOutputLayerCanvas)
doPost=function(){
eval(myOutputLayerCanvas.setURL(\'formhandler.cgi?value1=\'+myForm.value1+\'&value2=\'+myForm.value2))
}
make sure you include all necessary DynAPI files; that
the recieving script handles QueryStrings and output
directly (no redirection or it will probably reload
into the window depending on serverside method); that
the data isn't topsecret (cause querystrings aren't as
safe as using regular post method)
let know if it works out for you.
Henrik Våglin [ [EMAIL PROTECTED] ]
--- Ramon Buckland <[EMAIL PROTECTED]> wrote:
> Hi ..
>
> I wish to know how to submit a form to target a
> different layer
> from its orginating layer.
>
> eg: Two Layers on a page side-by-side
> And a form is on one of those layers.
>
> I wish to submit the form to the other layer using
> it
> as the target in the form..
>
> Any ideas ?
>
>
>
> ------------------------------------------------
> Ramon Buckland
> Applications Engineer
>
> email: [EMAIL PROTECTED]
> web: www.f5.com.au
> phone: (07) 3257 7900
> fax: (07) 3257 7955
>
> f5. Make the Medium Work. Simple.
> ------------------------------------------------
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
>
http://lists.sourceforge.net/lists/listinfo/dynapi-help
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help