Waow! That's what I call very fast. Thanks! :)

Yes, that was the problem. Inded I used return = false.
By the way, is there any chance to use the values from the form in the
window?
I am thinking of sessions etc.
Normally, I could use $_GET, but I want to use large texts (textarea >
1000 chars), so get isn't an option.

The thing I wanna do, is:
- loading the form
- giving the user the option to choose between email or print
And than generating a pdf which looks different for printing or
mailing.
And all the data entered in the form (date, subject and text) has to
be forwarded to the pdf generator.
So, I guess sessions are my friend. But how can I put the value from
the form fields into a session?
Sth like
document.getelementbyid('datum').value has somehow to be put into php
$_session['date']=???

Thanks again!
tsunami


On 26 Mrz., 12:23, "T.J. Crowder" <[email protected]> wrote:
> Hi
>
> The standard action of a form submission is to send the form to the
> server and then tear down the page, replacing it with the response
> from the server.
>
> In your code, you're not cancelling the default action of the submit,
> and so although the JavaScript in your submit handler is running and
> opening the window, it's then closed as part of the tear-down of the
> page. You probably want a `return false;` at the end of your onsubmit
> string, or you want to use Prototype to hook up the submit handler and
> use `event.stop()`.
>
> HTH,
> --
> T.J. Crowder
> Independent Software Engineer
> tj / crowder software / com
> www / crowder software / com
>
> On Mar 26, 10:29 am, tsunami <[email protected]> wrote:
>
>
>
>
>
>
>
> > Dear all,
> > I am using prototype for  a little form popup (choice selection)
> > Everything works fine, as long I am using
> > something like:
>
> >  <a href="javascript:openURLWindow('emailoderdrucken.php?id=211')"
> > style="margin-left:100px;">
> > <img src="images/rechnung_generieren.gif" border="0" alt="Rechnung
> > generieren..." class="Tips4" title="Rechnung generieren..."></a>
>
> > I am trying to use it now when submitting a form:
>
> >   <form name="nachrichtsenden" action="emailoderdrucken_schreiben.php"
> > onsubmit="openURLWindow('emailoderdrucken_schreiben.php')";>
>
> > The small popups blinks and then come up maximisez as a normal window.
> > No effect, no resize.
>
> > A simple alert("test"); brings up the test popup-alert. How I call the
> > javascript should not matter, shpuldn't it?
> > Best
> > tsunami

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to