Hi,

Is there an easy way of ensuring that the parameter has been included within this form so I don�t have to worry about including it multiple times as additional SubmitLink components are added?

We have a component called IncludeOnce that includes what it wraps only once (as the name implies). It accepts a key as a parameter and creates a RequestCycle attribute with that key before it renders the wrapped content. If the key already exists, it renders nothing. As a result, of all the IncludeOnce components with the same key, only the first one is rendered.

Wrapping the field in that component should do what you describe. (I should probably mention that such a component is also quite useful in quite a number of other situations, as well, such as inserting a script or a stylesheet only once. Should it be contributed -- are people interested in something like that? It is very simple on the other hand)

 

We are developing this component because we are in a situation where we need the functionality of an Action component but with DirectLink like �parameter� capabilities. The situation is that we have a page navigation bar (ie. Go to page 3, next page, prev page ) and we want it to behave appropriately upon refresh.. if the user hits refresh after hitting next we don�t want it to go next again. Is there another way to accomplish this? (ie. An action component with parameter capabilities?? ).. Perhaps encoding something into the URL (using a gesture)??

I am not sure your approach will achieve the goal. When a form is submitted, it is submitted to the URL defined in the form -- an href="..." would be ignored.

Sorry, I also cannot quite find the need for an Action. Are you trying to implement a wizard-like functionality and you have data that you need to submit?

In any case, if you do need a form, you have to store info in a hidden field and achieve functionality similar to Direct. Alternatively, you can store the info in the Visit, but that may create issues if the user makes use of the Back browser button.

-mb

 

 Luke Galea <[EMAIL PROTECTED]> wrote:

Hello,

            We are trying to write a component that duplicates the functionality of the Submit component but in the form of an A element with javascript that submits the form.

            I have a few questions about how to do this. In order to determine what was clicked, I need to include a hidden input and set it�s value before submitting. Is there an easy way of ensuring that the parameter has been included within this form so I don�t have to worry about including it multiple times as additional SubmitLink components are added?

 

We are developing this component because we are in a situation where we need the functionality of an Action component but with DirectLink like �parameter� capabilities. The situation is that we have a page navigation bar (ie. Go to page 3, next page, prev page ) and we want it to behave appropriately upon refresh.. if the user hits refresh after hitting next we don�t want it to go next again. Is there another way to accomplish this? (ie. An action component with parameter capabilities?? ).. Perhaps encoding something into the URL (using a gesture)??

 

Thanks

 

Luke Galea

Software Development

BlueCat Networks

905-762-5225

 



Do you Yahoo!?
U2 on LAUNCH - Exclusive medley & videos from Greatest Hits CD

Reply via email to