Re: [PHP] Simultaneous post/get?

2006-06-12 Thread tedd
At 4:34 PM -0400 6/11/06, Lowell Allen wrote: On Jun 11, 2006, at 2:02 PM, tedd wrote: At 5:46 PM +0100 6/11/06, Stut wrote: tedd wrote: At 4:35 PM +0100 6/11/06, Stut wrote: The form, with onsubmit=return sndReq(). sndReq does the AJAX image thing (although I don't know why you're using AJAX

Re: [PHP] Simultaneous post/get?

2006-06-12 Thread Lowell Allen
On Jun 12, 2006, at 8:02 AM, tedd wrote: [snip] img id=waitimg src=/whatever.gif style=display: none; / Form... form ... onsubmit=document.getElementById('waitimg').style.display = 'block'; return true; Bingo! That works slick ! While I *think* I know css, it would have taken me a long

[PHP] Simultaneous post/get?

2006-06-11 Thread tedd
Hi gang: What I am trying to do is after the user has selected an image to upload, I want to display a gif while a file is being uploaded. (The gif can be seen at: http://xn--ovg.com/a4.php ) I am trying to use ajax to accomplish this. The following statement works great and does what I want:

Re: [PHP] Simultaneous post/get?

2006-06-11 Thread Stut
tedd wrote: I am trying to use ajax to accomplish this. The following statement works great and does what I want: input type=submit value=Submit onClick=javascript:sndReq() However, when I place the statement within a form, like thus -- form method=post enctype=multipart/form-data input

Re: [PHP] Simultaneous post/get?

2006-06-11 Thread tedd
At 3:21 PM +0100 6/11/06, Stut wrote: tedd wrote: I am trying to use ajax to accomplish this. The following statement works great and does what I want: input type=submit value=Submit onClick=javascript:sndReq() However, when I place the statement within a form, like thus -- form method=post

Re: [PHP] Simultaneous post/get?

2006-06-11 Thread Stut
tedd wrote: At 3:21 PM +0100 6/11/06, Stut wrote: The form is being submitted to the current URL which will stop any javascript executing at the time. What you need to do is prevent the form from being submitted, or control when it is submitted. Instead of using the onclick attribute on the

Re: [PHP] Simultaneous post/get?

2006-06-11 Thread tedd
At 4:35 PM +0100 6/11/06, Stut wrote: -snip- Maybe I'm not understanding what you're trying to do. I think you're trying to show an animated GIF before starting the file upload. Is that right? If it is, this is what you need to do... That's exactly what I'm trying to do. The form, with

Re: [PHP] Simultaneous post/get?

2006-06-11 Thread Stut
tedd wrote: At 4:35 PM +0100 6/11/06, Stut wrote: The form, with onsubmit=return sndReq(). sndReq does the AJAX image thing (although I don't know why you're using AJAX here, I'm using ajax because it's a method to inject an image in a DOM div without having to reload the current page. All

Re: [PHP] Simultaneous post/get?

2006-06-11 Thread tedd
At 5:46 PM +0100 6/11/06, Stut wrote: tedd wrote: At 4:35 PM +0100 6/11/06, Stut wrote: The form, with onsubmit=return sndReq(). sndReq does the AJAX image thing (although I don't know why you're using AJAX here, I'm using ajax because it's a method to inject an image in a DOM div without

Re: [PHP] Simultaneous post/get?

2006-06-11 Thread Lowell Allen
On Jun 11, 2006, at 2:02 PM, tedd wrote: At 5:46 PM +0100 6/11/06, Stut wrote: tedd wrote: At 4:35 PM +0100 6/11/06, Stut wrote: The form, with onsubmit=return sndReq(). sndReq does the AJAX image thing (although I don't know why you're using AJAX here, I'm using ajax because it's a method