Do you have any tips for downloading an instance without saving it?

Also, I noticed in Firefox, Chrome and Safari when clicking on any
xf:trigger I get bounced to the top of the page, this causes some grumbling
among my users since they then have to scroll down to the newly inserted
element. I would think the expected behavior would be to set the focus on
the new element? Any chance this could be an enhancement?

Thanks,
-Winona


On Tue, Apr 25, 2017 at 3:40 PM, Alain Couthures <
[email protected]> wrote:

> Hi Winona,
>
> The Profiler is, itself, an XForms page. It uses an XPath expression such
> as "serialize(instance('view'),'application/xml','yes')" where the third
> parameter is about indentation.
>
> --Alain
>
> Le 22/04/17 à 14:24, Winona Salesky a écrit :
>
> Yes disable the popup blocker did fix this. I think adding a try catch
> could be useful.
> Is there different way to allow users to view the XML instance data? For
> example, perhaps I could take advantage of some of the code that the
> profiler uses, but just isolate the instance information?
> Thanks for your help!
> -Winona
>
>
> On Sat, Apr 22, 2017 at 3:51 AM, Alain Couthures <
> [email protected]> wrote:
>
>> Hi Winona,
>>
>> I suspect that this issue is just due to pop-ups not being allowed.
>>
>> The error about w.document is just after this instruction: var w =
>> window.open("about:blank","_blank");
>>
>> I should probably wrap this with a try-catch statement just to alert
>> users about allowing popup. What do you think?
>>
>> --Alain
>>
>> Le 21/04/17 à 23:15, Winona Salesky a écrit :
>>
>> Hi All,
>> I'm trying to open my instance in a new window, using a submission with
>> show='new' and am getting this error:
>>
>> 0 -> Dispatching event xforms-submit on <SPAN class="xforms-submission"
>> id="send"/>
>> 0 -> Dispatching event xforms-submit-serialize on <SPAN
>> class="xforms-submission" id="send"/>
>> 1 -> Submit post - application/xml - services/submit.xql - false
>> 5 -> Dispatching event xforms-submit-done on <SPAN
>> class="xforms-submission" id="send"/>
>> 1 -> TypeError: null is not an object (evaluating 'w.document')
>> 0 -> Dispatching event xforms-submit-error on <SPAN
>> class="xforms-submission" id="send"/>
>>
>>
>> When I remove the show='new' it runs as expected.
>> Simple form demonstrating:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>>
>> <html xmlns="http://www.w3.org/1999/xhtml"; xmlns:xf="http://www.w3.org/20
>> 02/xforms" xmlns:xi="http://www.w3.org/2001/XInclude"; xmlns:ev="
>> http://www.w3.org/2001/xml-events"; xmlns:tei="http://www.tei-c.org/ns/1.0
>> ">
>>     <head>
>>         <title>Syriaca.org: Create New Record</title>
>>         <xf:model>
>>             <xf:instance xmlns="http://www.tei-c.org/ns/1.0"; id=
>> "i-uri-range">
>>                 <div>
>>                     <range type="test" start="2" end="3" who="4" note="5"
>> />
>>                 </div>
>>             </xf:instance>
>>             <xf:submission id="send" method="post" show="new" replace=
>> "all" action="services/submit.xql"/>
>>         </xf:model>
>>     </head>
>>     <body style="margin:30px;">
>>         <div class="section">
>>             <h1>Test submit</h1>
>>             <xf:submit submission="send">
>>                 <xf:label>Submit</xf:label>
>>             </xf:submit>
>>         </div>
>>     </body>
>> </html>
>>
>> I'm running XSLTForms in eXist.
>>
>> Is this a bug, or an incorrect use of the show attribute on my part? I am
>> trying to create a way for users to view and download an instance without
>> saving it.
>>
>> Thanks for the help,
>>
>> -Winona
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>
>> _______________________________________________
>> Xsltforms-support mailing 
>> [email protected]https://lists.sourceforge.net/lists/listinfo/xsltforms-support
>>
>>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support

Reply via email to