>>>>> "Joerg" == Joerg Heinicke <[EMAIL PROTECTED]> writes:
Joerg> That's indeed difficult. Only help is the usage of print().
But where does the output go to?
Joerg> The code should be something like:
Joerg> <fb:javascript id="id" path="@id" direction="save">
Joerg> <fb:save-form> var appValue = jxpathPointer.getValue(); if
Joerg> (appValue == '') { var precSiblId =
Joerg> jxpathContext.getValue("../preceding-sibling::contact/@id");
Joerg> var newId = Number(precSiblId) + 1
Joerg> jxpathPointer.setValue(newId.toFixed(0)); } </fb:save-form>
Joerg> </fb:javascript>
Ta.
With one alteration to suit my xml file, it works fine.
--
Colin Paul Adams
Preston Lancashire
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]