Hi Erika,

Yes - I've avoided "clear"/"reset" buttons in forms, because of this advice:

http://www.nngroup.com/articles/reset-and-cancel-buttons/

However, the #queryformlink approach would work - you just need to have it
be a link, not a button. (Though you could probably use CSS to display the
link as a button - I don't know if it's worth the effort.)

-Yaron

On Thu, Mar 26, 2015 at 9:26 AM, <griechisch.er...@med.u-szeged.hu> wrote:

> Hi Yaron,
>
> I did not specifically wanted to link to a query form, I only wanted to
> add a button which clears the form settings.
>
> First I tried the "suggested" way using {{{standard input|cancel}}} but
> when I inserted it to the form, it did not make any changes, neither the
> {{{standard input|changes}}} . Do I need to change other things on the
> form to make it work? Or I completely misunderstand something?
>
>
> Erika
>
>
> On 2015-03-26 13:57, Yaron Koren wrote:
>
>> Hi Erika,
>>
>> When you use "link type=button", it creates a  tag within the HTML,
>> and I'm guessing that it in some way conflicts with the overall  tag
>> of the query form.
>>
>> I don't know why you're linking to a query form from within a query
>> form, but I guess that's a separate issue.
>>
>> -Yaron
>>
>> On Thu, Mar 26, 2015 at 5:50 AM, Griechisch Erika  wrote:
>>
>>  Dear all,
>>>
>>> After few months of trying I stilfeel l am new in SMW, I hope I can
>>> explain clearly my problem and show the necessary details. First of
>>> all I use SMW 2.0
>>>
>>> I created a form and wanted to add to buttons to the top of the
>>> form.
>>>
>>> Part of the Form page code is this (the whole Form code is
>>> available here: http://pastebin.com/YCep9aSu [1])
>>>
>>>  {{{info|query form at top}}}
>>>>
>>>> {{{standard input|run query}}}
>>>> {{#queryformlink:form=Lekérdezés|link text=Új
>>>> lekérdezés|tooltip=Törölve a feltételeket, új lekérdezés
>>>> indítása|link type=button}}
>>>>
>>>> {{{for template|Lekérdezés}}}
>>>>
>>> If I remove the "link type=button" the link is a normal link and it
>>> works.
>>>
>>> If I use the form code above it does not work! The button belongs
>>> to the {{{standard input|run query}}} behaves different, if I click
>>> on it, it just refreshes the page without running the actual query
>>> and clears all settings which was done.
>>>
>>> Any idea what I am doing wrong?
>>>
>>> Thanks,
>>> Erika Griechisch
>>>
>>>
>>>
>> ------------------------------------------------------------
>> ------------------
>>
>>> Dive into the World of Parallel Programming The Go Parallel
>>> Website, sponsored
>>> by Intel and developed in partnership with Slashdot Media, is your
>>> hub for all
>>> things parallel software development, from weekly thought
>>> leadership blogs to
>>> news, videos, case studies, tutorials and more. Take a look and
>>> join the
>>> conversation now. http://goparallel.sourceforge.net/ [2]
>>> _______________________________________________
>>> Semediawiki-devel mailing list
>>> Semediawiki-devel@lists.sourceforge.net [3]
>>> https://lists.sourceforge.net/lists/listinfo/semediawiki-devel [4]
>>>
>>
>


-- 
WikiWorks · MediaWiki Consulting · http://wikiworks.com
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to