Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
External link for form action
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
morellik  
View profile   Translate to Translated (View Original)
 More options 2 Nov, 11:45
From: morellik <enrico.more...@gmail.com>
Date: Mon, 2 Nov 2009 03:45:20 -0800 (PST)
Local: Mon 2 Nov 2009 11:45
Subject: External link for form action
Dear all,

I'm going crazy but I'm unable to find how can I set an external link
for a form action.
In my Pylons application I  created a form that have to be processed
by a credit card security site.
So in <form action="..."> I had put the external link directly. But it
doesn't work. When I click on the submit button, nothing happen.

How can I do that?

Thanks in advance
Enrico


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
morellik  
View profile   Translate to Translated (View Original)
 More options 2 Nov, 15:04
From: morellik <enrico.more...@gmail.com>
Date: Mon, 2 Nov 2009 07:04:22 -0800 (PST)
Local: Mon 2 Nov 2009 15:04
Subject: Re: External link for form action
I tried to create a static route in routing.py:

map.connect('credit_card', 'https://www.credit_card.com',
_static=True)

and use it in the form:

<form action="${h.url_for('credit_card')}" method="POST">

without results.

After pressing submit  I see the same page with all input fields
values in the navigation toolbar of the browser, e.g.

I see [http://localhost:5001/user/payment/] and after submit I  see
[http://localhost:5001/user/payment/?
tr_id=00000&amount=00010&email=ddd@ddd]


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Orr  
View profile   Translate to Translated (View Original)
 More options 2 Nov, 18:28
From: Mike Orr <sluggos...@gmail.com>
Date: Mon, 2 Nov 2009 10:28:58 -0800
Local: Mon 2 Nov 2009 18:28
Subject: Re: External link for form action

What does "View Source" show in the browser?  The behavior is
consistent with <form action="" method="POST" />, which could happen
if url_for returned None.  That in turn would indicate it couldn't
match the route name, and then we'd have to investigate why.

Also, what happens if you replace the h.url_for call with
``url('credit_card')``.  url_for is gradually being replaced by
pylons.url, which has a different implementation and thus may behave
differently.

Another possiblility is that a different route is matching, something
earlier in the route definitions.

As a workaround, you can use a 'c' variable for the URL.  Routes does
not provide much advantage for external URLs, other than the
convenience of defining them in the route map.

--
Mike Orr <sluggos...@gmail.com>


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jonathan Vanasco  
View profile   Translate to Translated (View Original)
 More options 2 Nov, 19:11
From: Jonathan Vanasco <jonat...@findmeon.com>
Date: Mon, 2 Nov 2009 11:11:38 -0800 (PST)
Local: Mon 2 Nov 2009 19:11
Subject: Re: External link for form action
why do you even need to handle the creditcard processing form as a
variable ?

the chances of that changing should be incredibly slim.  i'd just
hardcode the form.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
morellik  
View profile   Translate to Translated (View Original)
 More options 3 Nov, 09:13
From: morellik <enrico.more...@gmail.com>
Date: Tue, 3 Nov 2009 01:13:45 -0800 (PST)
Local: Tues 3 Nov 2009 09:13
Subject: Re: External link for form action

> What does "View Source" show in the browser?  The behavior is
> consistent with <form action="" method="POST" />, which could happen
> if url_for returned None.  That in turn would indicate it couldn't
> match the route name, and then we'd have to investigate why.

The page source is ok. The form tag is full filled.

> Also, what happens if you replace the h.url_for call with
> ``url('credit_card')``.  url_for is gradually being replaced by
> pylons.url, which has a different implementation and thus may behave
> differently.

I tried without any result.

> Another possiblility is that a different route is matching, something
> earlier in the route definitions.

> As a workaround, you can use a 'c' variable for the URL.  Routes does
> not provide much advantage for external URLs, other than the
> convenience of defining them in the route map.

Nothing happen :-((

In all cases I see "waiting for localhost" in the browser and nothing
happen.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
morellik  
View profile   Translate to Translated (View Original)
 More options 3 Nov, 09:14
From: morellik <enrico.more...@gmail.com>
Date: Tue, 3 Nov 2009 01:14:35 -0800 (PST)
Local: Tues 3 Nov 2009 09:14
Subject: Re: External link for form action

On Nov 2, 8:11 pm, Jonathan Vanasco <jonat...@findmeon.com> wrote:

> why do you even need to handle the creditcard processing form as a
> variable ?

> the chances of that changing should be incredibly slim.  i'd just
> hardcode the form.

It's the first thing that I tried. Put the address directly into the
form.
But nothing works.

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
morellik  
View profile   Translate to Translated (View Original)
 More options 3 Nov, 09:48
From: morellik <enrico.more...@gmail.com>
Date: Tue, 3 Nov 2009 01:48:14 -0800 (PST)
Local: Tues 3 Nov 2009 09:48
Subject: Re: External link for form action

On Nov 3, 10:14 am, morellik <enrico.more...@gmail.com> wrote:

> On Nov 2, 8:11 pm, Jonathan Vanasco <jonat...@findmeon.com> wrote:

> > why do you even need to handle the creditcard processing form as a
> > variable ?

> > the chances of that changing should be incredibly slim.  i'd just
> > hardcode the form.

> It's the first thing that I tried. Put the address directly into the
> form.
> But nothing works.

I'm very stupid and blind!!!!
I started from another template and tomorrow checking the source of
the page, I had see that there was another form tag
(<form action="">) before the correct tag. So the behaviour of Pylons
was correct.

Sorry.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google