Re: Submit with a link

2004-05-06 Thread ganesh g
U can use
 

 


Michael McGrady <[EMAIL PROTECTED]> wrote:I am a notice in JavaScript. I have wondered 
in my brief perusal of 
JavaScript books how you tell which form is the referent of the formindex 
numbers?

At 10:37 AM 5/5/2004, Henrique VIECILI wrote:
>you can use javascript to do this job...
>
>like this:
>
>].submit()">Enviar 
>Formulário
>
>where is the index of the form you want to submit (starts in 0 -
>zero)
>
>Henrique Viecili
>
>- Original Message -
>From: "cacau_braga" 
>To: "user" 
>Sent: Wednesday, May 05, 2004 2:17 PM
>Subject: Submit with a link
>
>
>Hi All,
>
> I need a help. I have a page that contains many forms
> each form represents a record of database.
> I am need to submit that information when a user
>click on link, because i can´t use the buttons
>(>know to use correctly, i want to send the information
>via POST how do i get this ?
>
>My code (a part of):
>. 
>__ 
>Acabe com aquelas janelinhas que pulam na sua tela. AntiPop-up UOL - É 
>grátis! http://antipopup.uol.com.br/ 
>- To 
>unsubscribe, e-mail: [EMAIL PROTECTED] For additional 
>commands, e-mail: [EMAIL PROTECTED] 
>- To 
>unsubscribe, e-mail: [EMAIL PROTECTED] For additional 
>commands, e-mail: [EMAIL PROTECTED]



-
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs 

RE: Submit with a link

2004-05-06 Thread Suzanne Rizzo
I use a text box (stylized to look like a link) when I run into this. 
Unlike the link, the text box is ON the form, so I don't need to figure 
out what the name or index of the form is.



where the javascript function is something like this:
function DoSubmit(frm)
{
  frm.submit();
}

and the style matches the link styles on the rest of my site:
.textBoxLink {
  color: #3366CC;
  font-size: 11px;
  font-weight: bold;
  font-family: arial;
  margin-bottom: 0px;
  margin-top: 0px;
  margin-left: 0px;
  margin-right: 0px;
  text-decoration: underline;
  height: 20px;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
  background-color: #EE;
  cursor: hand
}






"Guillermo Meyer" <[EMAIL PROTECTED]>
05/05/2004 05:03 PM
Please respond to "Struts Users Mailing List"

 
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
    cc: 
Subject:RE: Submit with a link


In struts 1.0, we do as follows to determine formName for situations
like this: 
<% String formName =
((org.apache.struts.action.ActionMapping)request.getAttribute(org.apache
.struts.action.Action.MAPPING_KEY)).getName(); %>

This attribute is set in processPopulate method of ActionServlet:
//also pass the mapping through the request
request.setAttribute(Action.MAPPING_KEY,
 mapping);

And then:
Dale masa!!

I don't know if in struts 1.1 it will work, but may be you can tell me.

Cheers.
Guillermo.

-Original Message-
From: Geeta Ramani [mailto:[EMAIL PROTECTED] 
Sent: Miércoles, 05 de Mayo de 2004 05:06 p.m.
To: Struts Users Mailing List
Subject: RE: Submit with a link


Michael:

I think "forms" stands for the list (array?) of all forms in that
document. So the form which appears (physically) first on the document
has index 0, the next one has 1, etc.  Is this what you are asking..?

Geeta

> -Original Message-
> From: Michael McGrady [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 05, 2004 4:08 PM
> To: Struts Users Mailing List
> Cc: Struts Users Mailing List
> Subject: Re: Submit with a link
> 
> 
> I am a notice in JavaScript.  I have wondered in my brief perusal of
> JavaScript books how you tell which form is the referent of 
> the formindex 
> numbers?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
NOTA DE CONFIDENCIALIDAD
Este mensaje (y sus anexos) es confidencial, esta dirigido exclusivamente 
a las personas direccionadas en el mail y puede contener informacion (i)de 
propiedad exclusiva de Interbanking S.A. o (ii) amparada por el secreto 
profesional. Cualquier opinion en el contenido, es exclusiva de su autor y 
no representa necesariamente la opinion de Interbanking S.A. El acceso no 
autorizado, uso, reproduccion, o divulgacion esta prohibido. Interbanking 
S.A no asumira responsabilidad ni obligacion legal alguna por cualquier 
informacion incorrecta o alterada contenida en este mensaje. Si usted ha 
recibido este mensaje por error, le rogamos tenga la amabilidad de 
destruirlo inmediatamente junto con todas las copias del mismo, 
notificando al remitente. No debera utilizar, revelar, distribuir, 
imprimir o copiar este mensaje ni ninguna de sus partes si usted no es el 
destinatario. Muchas gracias.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





RE: Submit with a link

2004-05-05 Thread Guillermo Meyer
In struts 1.0, we do as follows to determine formName for situations
like this: 
<% String formName =
((org.apache.struts.action.ActionMapping)request.getAttribute(org.apache
.struts.action.Action.MAPPING_KEY)).getName(); %>

This attribute is set in processPopulate method of ActionServlet:
//also pass the mapping through the request
request.setAttribute(Action.MAPPING_KEY,
 mapping);

And then:
Dale masa!!

I don't know if in struts 1.1 it will work, but may be you can tell me.

Cheers.
Guillermo.

-Original Message-
From: Geeta Ramani [mailto:[EMAIL PROTECTED] 
Sent: Miércoles, 05 de Mayo de 2004 05:06 p.m.
To: Struts Users Mailing List
Subject: RE: Submit with a link


Michael:

I think "forms" stands for the list (array?) of all forms in that
document. So the form which appears (physically) first on the document
has index 0, the next one has 1, etc.  Is this what you are asking..?

Geeta

> -Original Message-
> From: Michael McGrady [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 05, 2004 4:08 PM
> To: Struts Users Mailing List
> Cc: Struts Users Mailing List
> Subject: Re: Submit with a link
> 
> 
> I am a notice in JavaScript.  I have wondered in my brief perusal of
> JavaScript books how you tell which form is the referent of 
> the formindex 
> numbers?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

NOTA DE CONFIDENCIALIDAD
Este mensaje (y sus anexos) es confidencial, esta dirigido exclusivamente a las 
personas direccionadas en el mail y puede contener informacion (i)de propiedad 
exclusiva de Interbanking S.A. o (ii) amparada por el secreto profesional. Cualquier 
opinion en el contenido, es exclusiva de su autor y no representa necesariamente la 
opinion de Interbanking S.A. El acceso no autorizado, uso, reproduccion, o divulgacion 
esta prohibido. Interbanking S.A no asumira responsabilidad ni obligacion legal alguna 
por cualquier informacion incorrecta o alterada contenida en este mensaje. Si usted ha 
recibido este mensaje por error, le rogamos tenga la amabilidad de destruirlo 
inmediatamente junto con todas las copias del mismo, notificando al remitente. No 
debera utilizar, revelar, distribuir, imprimir o copiar este mensaje ni ninguna de sus 
partes si usted no es el destinatario. Muchas gracias.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Submit with a link

2004-05-05 Thread Geeta Ramani
Michael:

I think "forms" stands for the list (array?) of all forms in that document. So the 
form which appears (physically) first on the document has index 0, the next one has 1, 
etc.  Is this what you are asking..?

Geeta

> -Original Message-
> From: Michael McGrady [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 05, 2004 4:08 PM
> To: Struts Users Mailing List
> Cc: Struts Users Mailing List
> Subject: Re: Submit with a link
> 
> 
> I am a notice in JavaScript.  I have wondered in my brief perusal of 
> JavaScript books how you tell which form is the referent of 
> the formindex 
> numbers?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Submit with a link

2004-05-05 Thread Michael McGrady
I am a notice in JavaScript.  I have wondered in my brief perusal of 
JavaScript books how you tell which form is the referent of the formindex 
numbers?

At 10:37 AM 5/5/2004, Henrique VIECILI wrote:
you can use javascript to do this job...

like this:

Enviar 
Formulário

where  is the index of the form you want to submit (starts in 0 -
zero)
Henrique Viecili

- Original Message -
From: "cacau_braga" <[EMAIL PROTECTED]>
To: "user" <[EMAIL PROTECTED]>
Sent: Wednesday, May 05, 2004 2:17 PM
Subject: Submit with a link
Hi All,

   I need a help. I have a page that contains many forms
   each form represents a record of database.
   I am need to submit that information when a user
click on link, because i can´t use the buttons
(
My code (a part of):
. 
__ 
Acabe com aquelas janelinhas que pulam na sua tela. AntiPop-up UOL - É 
grátis! http://antipopup.uol.com.br/ 
- To 
unsubscribe, e-mail: [EMAIL PROTECTED] For additional 
commands, e-mail: [EMAIL PROTECTED] 
- To 
unsubscribe, e-mail: [EMAIL PROTECTED] For additional 
commands, e-mail: [EMAIL PROTECTED]


Re: Submit with a link

2004-05-05 Thread Daniel H A Lima
Cacau, you must use a javascript function to submit
your form. You can render a link like :



or using 


 --- cacau_braga <[EMAIL PROTECTED]> escreveu: >
thanks... but my problem is with the atributtes of
> form, like codUf, operacao, that parameteres don´t
> go
> to the action when i use the html:link.
> 
> Do you know, how do i submit that parameters ?
> 
> Regards,
> 
>  Henrique, are u a brazilian ? - eu sou (i am.)
> 
>  
>
__
> Acabe com aquelas janelinhas que pulam na sua tela.
> AntiPop-up UOL - É grátis!
> http://antipopup.uol.com.br/
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>  

__

Yahoo! Messenger - Fale com seus amigos online. Instale agora! 
http://br.download.yahoo.com/messenger/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Submit with a link

2004-05-05 Thread cacau_braga
thanks... but my problem is with the atributtes of
form, like codUf, operacao, that parameteres don´t go
to the action when i use the html:link.

Do you know, how do i submit that parameters ?

Regards,

 Henrique, are u a brazilian ? - eu sou (i am.)

 
__
Acabe com aquelas janelinhas que pulam na sua tela.
AntiPop-up UOL - É grátis!
http://antipopup.uol.com.br/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Submit with a link

2004-05-05 Thread Henrique VIECILI
you can use javascript to do this job...

like this:

Enviar Formulário

where  is the index of the form you want to submit (starts in 0 -
zero)

Henrique Viecili

- Original Message - 
From: "cacau_braga" <[EMAIL PROTECTED]>
To: "user" <[EMAIL PROTECTED]>
Sent: Wednesday, May 05, 2004 2:17 PM
Subject: Submit with a link


Hi All,

   I need a help. I have a page that contains many forms
   each form represents a record of database.
   I am need to submit that information when a user
click on link, because i can´t use the buttons
(
   

   
  
  ">

  
  

   
.

__
Acabe com aquelas janelinhas que pulam na sua tela.
AntiPop-up UOL - É grátis!
http://antipopup.uol.com.br/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Submit with a link

2004-05-05 Thread Glenn Wilson
Hi,

The only way I've heard of to submit via a hyperlink would be some javascript call.  
You could try:



This would work only if the form in question was the first form on the page.

Since there are many different ways to get to the form you want to submit through the 
DOM, you may also find something like this also works:



But this would probably require you to change your  tag to have some form 
of a name attribute.

And to be exhaustively thourough, be sure you don't have an element (input button, 
text field, submit, etc.) in the form that has the name "submit".  It will make the 
javascript choke.

HTH,
Glenn


-Original Message-
From: cacau_braga [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 05, 2004 10:18 AM
To: user
Subject: Submit with a link


Hi All,

   I need a help. I have a page that contains many forms
   each form represents a record of database.
   I am need to submit that information when a user 
click on link, because i can´t use the buttons 
(
   

   
  
  "> 

 
  
  
   
.
 
__
Acabe com aquelas janelinhas que pulam na sua tela.
AntiPop-up UOL - É grátis!
http://antipopup.uol.com.br/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


===
This email message is for the sole use of the intended recipient(s) and may contain 
confidential and privileged information. Any unauthorized review, use, disclosure or 
distribution is prohibited. If you are not the intended recipient, please contact the 
sender by reply email and destroy all copies of the original message. If you are the 
intended recipient, please be advised that the content of this message is subject to 
access, review and disclosure by the sender's Email System Administrator.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Submit with a link

2004-05-05 Thread cacau_braga
Hi All,

   I need a help. I have a page that contains many forms
   each form represents a record of database.
   I am need to submit that information when a user
click on link, because i can´t use the buttons 
(
   

   
  
  ">

  
  
 
   
.
 
__
Acabe com aquelas janelinhas que pulam na sua tela.
AntiPop-up UOL - É grátis!
http://antipopup.uol.com.br/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]