Hi,

If you opt to receive a *digest* email, rather than individual
messages, please come to the web interface to reply -- if you reply to
the digest, you create a completely new topic thread unconnected to
the original and the threading gets all messed up. :-)

Thanks,

-- T.J.

On Mar 27, 12:06 pm, Oliver Eikel <[email protected]> wrote:
> Dear all,
> David is right. Get is limited to 256 chars (?) and not that nice. The
> prototype popup window is named a frame in Firefox. So it must be
> possible to be accessed normally? Sorry folks I am not that firm in
> js. But I am shure there is an option. The "normal" window.open has no
> effects like prototype. There are several other scripts, which are
> already using prototype. Till now it was OK to support just an id.
> But the values put in the form must be possible to use.
> e.g.
> name: textfield: Peter Rover
> subject: spring time
> text: blah, blah.....
> With onclick I opened the prototype window and wanted the values
> (peter Rover, spring time, and blah) within the prototype window.
>
> Might sessions be an option? I have no idea how. With php I cannot
> access the values, because they are not yet put in, when the site is
> loaded. I looking for sth like var subject =
> parent.getelementbyid('subject').value..
>
> Hope its clearer now!
> Best
> tsunami
>
> 2011/3/27  <[email protected]>:
>
>
>
>
>
>
>
> >   Today's Topic Summary
>
> > Group:http://groups.google.com/group/prototype-scriptaculous/topics
>
> > support vars in the popwindow [3 Updates]
> > Observe a click event [2 Updates]
> > a ... javascript:function(target.html) >link</a> works fine Onsubmit not [3
> > Updates]
> > problem with prototype.js and dashcode [3 Updates]
>
> >  Topic: support vars in the popwindow
>
> > tsunami <[email protected]> Mar 26 10:42AM -0700 ^
>
> > Dear all,
> > is there a possibillity to support vars from the parent window? Yes,
> > of course by get, but I want to support large texts.
> > So get might be a wrong decision.
>
> > Best
> > tsunami
>
> > "T.J. Crowder" <[email protected]> Mar 26 11:03AM -0700 ^
>
> > Hi,
>
> >> So get might be a wrong decision.
>
> >> Best
> >> tsunami
>
> > Not following you, can you explain more what you mean?
> > --
> > T.J. Crowder
> > Independent Software Engineer
> > tj / crowder software / com
> > www / crowder software / com
>
> > David Behler <[email protected]> Mar 26 07:19PM +0100 ^
>
> > I guess what he means is this:
> > He opens a popup and wants to access a variable that's declared in the
> > parent window.
> > He could pass the value of the variable in the url (= by get, $_GET in
> > PHP) but he wants to support large texts and might pose a problem when
> > put in the url.
>
> > Solution:
> > I don't think there is a "prototype-way" to do this, but it can still be
> > done with standard javascript:
> > opener.document.getElementById("foo").value = 'bar';
>
> > David
>
> > Am 26.03.2011 19:03, schrieb T.J. Crowder:
>
> >  Topic: Observe a click event
>
> > kstubs <[email protected]> Mar 26 11:08AM -0700 ^
>
> > I am making an element like this:
> > var a_next = new Element('a', {'Id': 'nav_slider_next', 'href':'#',
> > 'class':'next'}).update('<img src="/images/transparent.gif"/>');
>
> > I am observing the click like this:
> > a_next.observe('click', this.__navigate.bindAsEventListener(this));
>
> > In my __navigate routine, the element "clicked" is the <img> object, not the
> > <a> tag/object.
>
> > Is this expected? I'm doing:
>
> > function __navigate(e)
> > {
> > var elm = e.element()
> > ...
> > }
>
> > The elm object above is the image. I'm expecting the a tag.
>
> > kstubs <[email protected]> Mar 26 11:18AM -0700 ^
>
> > Thinking the update on the end of new Element() was causing an issue I've
> > changed my script to:
>
> > var a_next = new Element('a', {'id': 'nav_slider_next', 'href':'#',
> > 'class':'next'});
> > a_next.insert('<img src="/images/transparent.gif"/>');
>
> > I'm still not have any luck with a click of the <a> tag, it still appears to
> > the that the <img> tag is clicked.
>
> > Karl..
>
> >  Topic: a ... javascript:function(target.html) >link</a> works fine Onsubmit
> > not
>
> > tsunami <[email protected]> Mar 26 03:29AM -0700 ^
>
> > 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
>
> > "T.J. Crowder" <[email protected]> Mar 26 04:23AM -0700 ^
>
> > 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
>
> > tsunami <[email protected]> Mar 26 11:10AM -0700 ^
>
> > 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
>
> >  Topic: problem with prototype.js and dashcode
>
> > Eric Sandeen <[email protected]> Mar 26 10:59AM -0500 ^
>
> > On 3/25/11 7:24 AM, Walter Lee Davis wrote:
> >> away. Or try wrapping self.animations with $A(), which will return an
> >> extended array.
>
> >> Walter
>
> > Thanks for the suggestions; loading prototype.js just before main.js
> > doesn't help, but loading it before AppleAnimator.js in main.html does.
> > Hopefully that won't break much. ;)
>
> > Thanks,
> > -Eric
>
> > Walter Lee Davis <[email protected]> Mar 26 12:19PM -0400 ^
>
> > Yay! I've been meaning to try out Dashcode again, haven't played with
> > it since pretty much when it came out.
>
> > Walter
>
> > On Mar 26, 2011, at 11:59 AM, Eric Sandeen wrote:
>
> > Eric Sandeen <[email protected]> Mar 26 11:22AM -0500 ^
>
> > On 3/26/11 11:19 AM, Walter Lee Davis wrote:
> >> Yay! I've been meaning to try out Dashcode again, haven't played with it
> >> since pretty much when it came out.
>
> > It seems fairly slick, especially the data source binding, but I
> > can't figure out how to get quite enough control over things; for
> > example, how to reload a data source, or how to determine if it
> > was successfully retrieved. I may just be dense and/or bad
> > at javascript, I'm a kernel hacker not a web hacker.
>
> > So I'm going back and trying to hand-code things with
> > prototype.js again. :)
>
> > -Eric
>
> > --
> > 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.

-- 
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