Re: Change the Form action
From: MichaelK (michaelk_at_gomobile.com)
Date: 01/30/05
- Next message: Nic Roche: "Re: Change the Form action"
- Previous message: Nic Roche: "Re: Change the Form action"
- In reply to: Nic Roche: "Re: Change the Form action"
- Next in thread: Nic Roche: "Re: Change the Form action"
- Reply: Nic Roche: "Re: Change the Form action"
- Reply: Bob Barrows [MVP]: "Re: Change the Form action"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 30 Jan 2005 14:37:26 -0800
Sorry Nic. I really didn't want to hurt your feelings.
You just wanted to help me, and I really thankful.
And I really like to learn any new things, and I'm not making any
assessments.
Unfortunately very often people who like to tech don't have any development
experience.
Just a few comments to your example.
It works indeed, but only when you have id attribute in the form or input
tags.
Unfortunately I just wanted to make a few quick fixes to existing pages,
which don't have them
(ofcourse I could add).
But again it also works only when you have <script language="VBScript">,
and not working on asp pages when using just <% %> blocks of the code.
But here was my fault I wasn't clear about what I was looking for. I just
hate
to use <script language="VBScript">, because it's available on the page
source
for anybody.
And the last even I add the id attribute and use <vbscript...> it doesn't
work in
Netscape at all.
But again I think you are experienced enough and know all this.
Regards,
Michael.
"Nic Roche" <nicroche@hotmail.com> wrote in message
news:urYVxAlBFHA.3708@TK2MSFTNGP14.phx.gbl...
>> I'm looking for a proper format in "VBSCRIPT" how to refer to the form
>> action and field value.
>
> That is VBSCRIPT!
>
> <html>
> <head>
> <title>Untitled</title>
> <script language="VBScript">
> Sub DoIt
> self.document.all( "FieldID" ).Value = "Some Value"
> self.document.all( "FormID" ).Action= "somenewurl.asp"
> self.document.all( "FormID" ).Submit
> End Sub
> </script>
> </head>
> <body>
> <form action="xxx.asp" method="post" id="FormID">
> <input type="text" value="cccc" id="FieldID">
> <input type="button" value="Now" onclick="DoIt">
> </form>
> </body>
> </html>
>
>
>> I'm sorry but have to ask you to don't reply anymore if don't know the
>> vbScript version of what I'm asking.
>
> Its OK to be learning MichaelK, but not to make assesssments of other
> peoples ability when you are learning...
>
>
> Nic Roche
>
> "MichaelK" <michaelk@gomobile.com> wrote in message
> news:O3QSkdcBFHA.3504@TK2MSFTNGP12.phx.gbl...
>> Thanks Nic.
>> It's again not what I'm looking. You gave the javascript formats.
>> As I indicated in my message I know how to do it in javascript.
>>
>> I'm looking for a proper format in "VBSCRIPT" how to refer to the form
>> action and field value.
>>
>> I'm sorry but have to ask you to don't reply anymore if don't know the
>> vbScript version of what I'm asking.
>> Unfortunately people may think I was helped already when see so many
>> responses,
>> and if I post again will be a duplicate posting.
>>
>> Regards,
>> Michael
>>
>> "Nic Roche" <nicroche@hotmail.com> wrote in message
>> news:eD7kdDaBFHA.1040@TK2MSFTNGP09.phx.gbl...
>>> >Seems I could do it before,
>>>
>>> Is any scripting working?
>>>
>>>> document.FormName.FiledName.Value()
>>>
>>> loose the brackets for properties
>>>
>>> self.document.all( "FieldID" ).Value = "Some Value"
>>> self.document.all( "FormID" ).Action= "somenewurl.asp"
>>> self.document.all( "FormID" ).Submit
>>>
>>>
>>> Nic Roche
>>>
>>> "MichaelK" <michaelk@gomobile.com> wrote in message
>>> news:OhYlGlZBFHA.4072@TK2MSFTNGP10.phx.gbl...
>>>>I can do submission and stuff, can do it with javascript..
>>>> I'm just looking for a proper reference to the filed value and form
>>>> action from vbScript.
>>>> Seems I could do it before, but can't get now and can't find my tests.
>>>> Need something like this :
>>>> <%
>>>> document.FormName.FiledName.Value() = "Some Value"
>>>> document.FormName.Action() = "somenewurl.asp"
>>>> document.FormName.Submit()
>>>> %>
>>>>
>>>>
>>>> "Nic Roche" <nicroche@hotmail.com> wrote in message
>>>> news:OzZlPEZBFHA.3908@TK2MSFTNGP12.phx.gbl...
>>>>>> In asp page on submit
>>>>>
>>>>> Do you want to do these actions clientside (will all of the users
>>>>> boxes have scripting enabled - no IE6 SP2)?
>>>>>
>>>>> If not, maybe:
>>>>>
>>>>> submit to a page (even itself) that validates, changes fields if it
>>>>> has to (reshowing the form) and if the valuess are OK Server.Transfer
>>>>> to a persist page.
>>>>>
>>>>>
>>>>> Nic Roche
>>>>>
>>>>> "MichaelK" <michaelk@gomobile.com> wrote in message
>>>>> news:%23bUNRzYBFHA.3320@TK2MSFTNGP10.phx.gbl...
>>>>>> In asp page on submit I want to run the validation vbScript Sub,
>>>>>> where based on results I could :
>>>>>> 1. replace the current form action attribute.
>>>>>> 2. change the value in some fields of the form.
>>>>>> 3. submit form.
>>>>>>
>>>>>> What is the right way to do it?
>>>>>>
>>>>>> Thanks,
>>>>>> Michael
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
- Next message: Nic Roche: "Re: Change the Form action"
- Previous message: Nic Roche: "Re: Change the Form action"
- In reply to: Nic Roche: "Re: Change the Form action"
- Next in thread: Nic Roche: "Re: Change the Form action"
- Reply: Nic Roche: "Re: Change the Form action"
- Reply: Bob Barrows [MVP]: "Re: Change the Form action"
- Messages sorted by: [ date ] [ thread ]