Geert
Thanks, I will try this out - just one last question;
I assume I have to have a "match" for "set-session-attribute"
in the sitemap that captures the parameters passed
from the form (I guess flowscript would be best?), and sets
the session variable accordingly?
Derek
>>> [EMAIL PROTECTED] 2005/09/28 10:50 AM >>>
No, not with XmlHttpRequest. It should be possible to do something like this:
<div style="display:none">
<script language="JavaScript">
function setSessionAttribute(name, value) {
hiddenform.name = name;
hiddenform.value = value;
hiddenform.submit();
}
</script>
<form name="hiddenform" action="set-session-attribute" method="POST"
target="hiddenframe">
<input type="text" name="name" value="dummy" />
<input type="text" name="value" value="" />
</form>
<iframe name="hiddenframe" />
</div>
<a href="#" onClick="javascript: setSessionAttribute('my-name', 'my-value');
return false;">set
session attribute</a>
Or maybe even something like this:
<div style="display:none">
<script language="JavaScript">
function setSessionAttribute(name, value) {
hiddenframe.href = "set-session-attribute?name=" + name + "&value=" + value;
}
</script>
<iframe name="hiddenframe" />
</div>
<a href="#" onClick="javascript: setSessionAttribute('my-name', 'my-value');
return false;">set
session attribute</a>
HTH,
Geert
Derek Hohls wrote:
> Geert
>
> Would this be in combination with XmlHttpRequest, as suggested
> by Bertrand? If not, then how?
>
> Thanks
> Derek
>
>
>>>> [EMAIL PROTECTED] 2005/09/28 09:14:13 AM >>>
>
> Hi Derek,
>
> You can make it yourself easy by using a iframe on a display:none area (<div
> style="display:none"><iframe name="invisibleframe" src="" /></div>) and
> targeting your javascript
> submits to there.
>
> Cheers,
> Geert
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
--
Drs. G.P.H. Josten
Consultant
Daidalos BV
Source of Innovation
Hoekeindsehof 1-4
2665 JZ Bleiswijk
Tel: +31 (0) 10 850 1200
Fax: +31 (0) 10 850 1199
www.daidalos.nl
De informatie - verzonden in of met dit emailbericht - is afkomstig van
Daidalos BV en is
uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt
ontvangen, verzoeken
wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
This message is subject to the CSIR's copyright, terms and conditions and
e-mail legal notice. Views expressed herein do not necessarily represent the
views of the CSIR.
CSIR E-mail Legal Notice
http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html
CSIR Copyright, Terms and Conditions
http://mail.csir.co.za/CSIR_Copyright.html
For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR
Legal Notice send a blank message with REQUEST LEGAL in the subject line to
[EMAIL PROTECTED]
This message has been scanned for viruses and dangerous content by MailScanner,
and is believed to be clean. MailScanner thanks Transtec Computers for their
support.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]