1) window.onload = function () {formfield.focus();}
2) Meta refresh or some combination of Javascript, flush(), and
ob_flush().
On Nov 13, 2007, at 3:46 PM, "Jon Westcot" <[EMAIL PROTECTED]> wrote:
Hi all:
This may or may not be a PHP-related question, but, since I'm
coding with PHP,
At 6:52 PM -0700 11/13/07, Jon Westcot wrote:
> Here's a collection of animated wait gifs:
http://webbytedd.com/bb/wait/
Steal as you need -- I did.
Thanks. I'll check that out. I'm still wondering, though, how the
redirection works if it is supposed to occur only before any text ap
in my experience it never stops at a single focus event on a login box...
but yes, i should have replied with the simpler solution first.
On 11/13/07, tedd <[EMAIL PROTECTED]> wrote:
> At 5:49 PM -0800 11/13/07, mike wrote:
> >yeah, but adding in jquery will open up his entire world :)
>
> It cou
At 5:49 PM -0800 11/13/07, mike wrote:
yeah, but adding in jquery will open up his entire world :)
It could, but it's an overkill for a simple input field focus thing, IMO.
It's like selling a guy a Hummer because he wants to drive on the
gravel on the side of the road.
Cheers,
tedd
--
---
Hi Tedd:
> > Also, while I'm asking questions, let me ask another one: I've
> >seen several pages (frequently, pages that come up after a login
> >page has been filled out) that provide some user mollification (you
> >know, the typical "Please be patient, don't get your nylons in a
> >knot, we
Hi Mike, Chris, et al.:
Thanks for the info. I'm not certain if I'll be needing jquery, or what
benefits it might afford me with my meager little project, but I will check
it out.
In the meantime, Chris's snippet worked like a charm! Thanks!
Jon
--
PHP General Mailing List (http:
yeah, but adding in jquery will open up his entire world :)
the example below will work without jquery. personally though i try to
stick with jquery since i usually need it for more throughout my site.
On 11/13/07, Chris <[EMAIL PROTECTED]> wrote:
> It only works if you have included the jquery
Jon Westcot wrote:
Hi Mike:
you want javascript.
i'd recommend using jquery (jquery.com)
I'll look into this. Thanks.
put an id="username" on the username box.
then do
$(document).ready(function() {
$("#username").focus();
});
voila
Hmmm. It didn't work for me. Do I ne
At 4:46 PM -0700 11/13/07, Jon Westcot wrote:
Hi all:
This may or may not be a PHP-related question, but, since I'm
coding with PHP, I thought I'd ask:
When a form loads, such as a login form, I'd like to have the
cursor placed automatically in the Username field. Right now, it
req
i don't believe so. it should trigger the focus event for that element ID.
of course you did download and include jquery.js in your page... can
you send me (off list) the URL to the page? i can help you out, but it
is off topic to PHP now :)
On 11/13/07, Jon Westcot <[EMAIL PROTECTED]> wrote:
> H
Hi Mike:
> you want javascript.
>
> i'd recommend using jquery (jquery.com)
I'll look into this. Thanks.
> put an id="username" on the username box.
>
> then do
>
>
> $(document).ready(function() {
>$("#username").focus();
> });
>
>
> voila
Hmmm. It didn't work for me. Do I nee
you want javascript.
i'd recommend using jquery (jquery.com)
put an id="username" on the username box.
then do
$(document).ready(function() {
$("#username").focus();
});
voila
On 11/13/07, Jon Westcot <[EMAIL PROTECTED]> wrote:
> Hi all:
>
>This may or may not be a PHP-related questi
Hi all:
This may or may not be a PHP-related question, but, since I'm coding with
PHP, I thought I'd ask:
When a form loads, such as a login form, I'd like to have the cursor placed
automatically in the Username field. Right now, it requires me to click it
with the mouse or to tab int
* Marek Kilimajer <[EMAIL PROTECTED]>:
> Ryan A wrote:
> > Hey all,
> > Am a bit confused, from the time I learnt PHP (big thanks to this list for
> > helping me) I have used something like this
> >
> > but when reading someone elses code I sometimes stumble accross this:
> >
> > is this 100% val
>
> means the same as
>
> if short_open_tag is on
**
> It's perfectly valid PHP, I use it all the time on my own sites, but
> because it's
> one of those php.ini settings you have a 50/50 chance of
> finding on (or off!) you shouldn't rely on it unless you know the
> environment.
Hey all,
T
Yeah - it is valid. It is a short hand method for doing what you are
doing. I don't know if it is in the manual, but it is in the
certification guide.
Respectfully,
Ligaya Turmelle
---
Life is a game... so have fun.
---
www.PHPCommunity.org
Open Source, Open Community
Visit for more informatio
Ryan A wrote:
Hey all,
Am a bit confused, from the time I learnt PHP (big thanks to this list for
helping me) I have used something like this
but when reading someone elses code I sometimes stumble accross this:
is this 100% valid php?
I have not found it in the manual... (also am not sure if the
Hey all,
Am a bit confused, from the time I learnt PHP (big thanks to this list for
helping me) I have used something like this
but when reading someone elses code I sometimes stumble accross this:
is this 100% valid php?
I have not found it in the manual... (also am not sure if the above example
18 matches
Mail list logo