php-windows Digest 9 May 2007 01:44:47 -0000 Issue 3220

Topics (messages 27835 through 27843):

Form and enter key
        27835 by: Alf Stockton
        27836 by: Alf Stockton
        27837 by: Dale Attree
        27838 by: Gustav Wiberg
        27839 by: Alf Stockton
        27843 by: bedul

How to access a DLL compiled in VC++ in PHP?
        27840 by: Raghavendra V. Kulkarni

No properties
        27841 by: Alf Stockton
        27842 by: M.Sokolewicz

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message --- I have created an HTML form that contains an input type text field coded as:- <input type=text name="CardNumber" id="CardNumber" onBlur="sendRequest('.$ClientData.",".$Event.',this.value)">

This calls an Ajax script that populates the rest of the HTML form.

This fields event is currently activated, in Firefox, via the TAB but the user has requested that the activation be altered to Enter.

The problem I have is that Enter is the default action for the form and I cannot think of a way to achieve what the user requires.

Suggestions please.

--
Regards,
Alf Stockton            www.stockton.co.za

Your boyfriend takes chocolate from strangers.
My email disclaimer is available at www.stockton.co.za/disclaimer.html

--- End Message ---
--- Begin Message ---
Alf Stockton wrote:
I have created an HTML form that contains an input type text field coded as:- <input type=text name="CardNumber" id="CardNumber" onBlur="sendRequest('.$ClientData.",".$Event.',this.value)">

This calls an Ajax script that populates the rest of the HTML form.

This fields event is currently activated, in Firefox, via the TAB but the user has requested that the activation be altered to Enter.

The problem I have is that Enter is the default action for the form and I cannot think of a way to achieve what the user requires.

Suggestions please.

This means that not only do I want to "Prevent Enter From Submitting Form" but also cause enter to call Ajax.
In Ajax I can then
if (windows.event.keyCode != 13) return; or similar.


--
Regards,
Alf Stockton            www.stockton.co.za

Don't worry so loud, your roommate can't think.
My email disclaimer is available at www.stockton.co.za/disclaimer.html

--- End Message ---
--- Begin Message ---
In your opening form tag

<form onsubmit="CheckKey()">

In CheckKey, check if enter was hit, if so call your AJAX function.

If the submit button was clicked, your keycode will be blank and then you
can submit the form.

Dale

-----Original Message-----
From: Alf Stockton [mailto:[EMAIL PROTECTED] 
Sent: 08 May 2007 12:57 PM
To: php windows
Subject: Re: [PHP-WIN] Form and enter key

Alf Stockton wrote:
> I have created an HTML form that contains an input type text field coded 
> as:-
> <input type=text name="CardNumber" id="CardNumber" 
> onBlur="sendRequest('.$ClientData.",".$Event.',this.value)">
> 
> This calls an Ajax script that populates the rest of the HTML form.
> 
> This fields event is currently activated, in Firefox, via the TAB but 
> the user has requested that the activation be altered to Enter.
> 
> The problem I have is that Enter is the default action for the form and 
> I cannot think of a way to achieve what the user requires.
> 
> Suggestions please.
> 
This means that not only do I want to "Prevent Enter From Submitting 
Form" but also cause enter to call Ajax.
In Ajax I can then
if (windows.event.keyCode != 13) return; or similar.


-- 
Regards,
Alf Stockton            www.stockton.co.za

Don't worry so loud, your roommate can't think.
My email disclaimer is available at www.stockton.co.za/disclaimer.html

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php






***********************************************************************************************

The information contained in this e-mail is confidential and may be subject to 
legal privilege.
Access to this e-mail by anyone other than the intended recipient is 
unauthorised.

If you are not the intended recipient you must not use, copy, distribute or 
disclose the e-mail or any part of its contents or take any action in reliance 
on it. If you have received this e-mail in error, please notify us immediately 
by e-mail ([EMAIL PROTECTED]) or telephone (+27 11 265 4200). This message is 
free of all known viruses. It has been screened for viruses by Blockmail.

***********************************************************************************************

--- End Message ---
--- Begin Message ---
Hi!

Maybe

onEnter="Javascript.,,,,"

Or maybe

onSubmit="Javascript...."

?

Best regards
/Gustav Wiberg
 

-----Original Message-----
From: Alf Stockton [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 08, 2007 12:52 PM
To: php windows
Subject: [PHP-WIN] Form and enter key

I have created an HTML form that contains an input type text field coded 
as:-
<input type=text name="CardNumber" id="CardNumber" 
onBlur="sendRequest('.$ClientData.",".$Event.',this.value)">

This calls an Ajax script that populates the rest of the HTML form.

This fields event is currently activated, in Firefox, via the TAB but 
the user has requested that the activation be altered to Enter.

The problem I have is that Enter is the default action for the form and 
I cannot think of a way to achieve what the user requires.

Suggestions please.

-- 
Regards,
Alf Stockton            www.stockton.co.za

Your boyfriend takes chocolate from strangers.
My email disclaimer is available at www.stockton.co.za/disclaimer.html

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
Dale Attree wrote:
In your opening form tag

<form onsubmit="CheckKey()">

In CheckKey, check if enter was hit, if so call your AJAX function.

If the submit button was clicked, your keycode will be blank and then you
can submit the form.

Thank you Dale.
What I have done so far is alter the HTML FORM line to:-
<form name = 'TicketIssue' id='TicketIssue' method='get' onSubmit='return false;'> which appears to have stopped the form submitting on Enter and I have added:-
if (window.event.keyCode != 13)
        {
        window.event.keyCode = 0;
        return;
        }
to my sendRequest() in my Ajax. This, however, appears to do nothing for me.


Dale

-----Original Message-----
From: Alf Stockton [mailto:[EMAIL PROTECTED] Sent: 08 May 2007 12:57 PM
To: php windows
Subject: Re: [PHP-WIN] Form and enter key

Alf Stockton wrote:
I have created an HTML form that contains an input type text field coded as:- <input type=text name="CardNumber" id="CardNumber" onBlur="sendRequest('.$ClientData.",".$Event.',this.value)">

This calls an Ajax script that populates the rest of the HTML form.

This fields event is currently activated, in Firefox, via the TAB but the user has requested that the activation be altered to Enter.

The problem I have is that Enter is the default action for the form and I cannot think of a way to achieve what the user requires.

Suggestions please.

This means that not only do I want to "Prevent Enter From Submitting Form" but also cause enter to call Ajax.
In Ajax I can then
if (windows.event.keyCode != 13) return; or similar.




--
Regards,
Alf Stockton            www.stockton.co.za

Q:      What's a light-year?
A:      One-third less calories than a regular year.
My email disclaimer is available at www.stockton.co.za/disclaimer.html

--- End Message ---
--- Begin Message ---
sry OOT
----- Original Message -----
From: "Alf Stockton" <[EMAIL PROTECTED]>
To: "php windows" <[EMAIL PROTECTED]>
Sent: Tuesday, May 08, 2007 6:24 PM
Subject: Re: [PHP-WIN] Form and enter key


> Dale Attree wrote:
> > In your opening form tag
> >
> > <form onsubmit="CheckKey()">
> >
> > In CheckKey, check if enter was hit, if so call your AJAX function.
> >
> > If the submit button was clicked, your keycode will be blank and then
you
> > can submit the form.
> >
i have some problem too and related to this topic..
user type a form and then he/she enter the form that he/she will enter the
doctor name (there were 200 doctor). to small the code i use ajax, user can
click on button next to the text form. which is open new window

the main problem was i want to use shortcut. if the text form active, user
can click F6 to open new window which is same as click on the button.
==================================
>>
> > This means that not only do I want to "Prevent Enter From Submitting
> > Form" but also cause enter to call Ajax.
> > In Ajax I can then
> > if (windows.event.keyCode != 13) return; or similar.
i currios about this..
when i click F2, then new window will show up.

suggestion for TS, how about not using submit but using <a href=....
onclick=refreshAllData()>\
user can't click on submit but must click on the link to enter the data.

> --
> Regards,
> Alf Stockton www.stockton.co.za
>
> Q: What's a light-year?
> A: One-third less calories than a regular year.
> My email disclaimer is available at www.stockton.co.za/disclaimer.html
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
Hello,

Please provide pointers to access a DLL compiled by us (so, we have access to the source code) in VC++ in PHP pages.

Regards,
Raghu



##############################################################################################################################################
The information transmitted is intended for the person or entity to which it is 
addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination, copying or other use of, 
or taking any action in reliance upon, this information by
persons or entities other than the intended recipient is prohibited. If you 
have received this in error, please contact the sender and delete
the material from your system. Accord Software & Systems Pvt. Ltd. (ACCORD) is 
not responsible for any changes made to the material other
than those made by ACCORD or for the effect of the changes on the meaning of 
the material.
##############################################################################################################################################

--- End Message ---
--- Begin Message ---
Please tell me why :-
if (window.event.keyCode != 13))

Gives me :-

window.event has no properties
http://10.0.0.3/Events/js/ajax.js
Line 39

in Firebug

--
Regards,
Alf Stockton            www.stockton.co.za

You will be called upon to help a friend in trouble.
My email disclaimer is available at www.stockton.co.za/disclaimer.html

--- End Message ---
--- Begin Message ---
Alf Stockton wrote:
Please tell me why :-
if (window.event.keyCode != 13))

Gives me :-

window.event has no properties
http://10.0.0.3/Events/js/ajax.js
Line 39

in Firebug


Alf, please, you keep asking clearly JavaScript-related questions on a PHP list. Take them to a javascript list where people are sure to be of better assistance to you.

- tul

--- End Message ---

Reply via email to