473,405 Members | 2,272 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

form processing technique

<form name="frmTest" type="submit" method="post">
<input type="textbox" name="txtA" size=10 value="">
<select name="cboB" value="">
<option value="1">1
<option value="2">1
</select>
<input type="submit" name="cmdSave">
</form>

Normally when I click cmdSave, the form will be submitted, with cmdSave
set.

Now I need to open a popup for selecting a value into txtA and then
submit the form without setting cmdSave, so that I could re-populate the
options for cboB. How should I do it? I don't plan to use AJAX for the
moment, but old techniques.

--
iTech Consulting Services Limited
Expert of ePOS solutions
Website: http://www.itech.com.hk (IE only)
Tel: (852)2325 3883 Fax: (852)2325 8288
Apr 27 '07 #1
15 1529
On Apr 26, 9:44 pm, Man-wai Chang <toylet.toy...@gmail.comwrote:
<form name="frmTest" type="submit" method="post">
<input type="textbox" name="txtA" size=10 value="">
<select name="cboB" value="">
<option value="1">1
<option value="2">1
</select>
<input type="submit" name="cmdSave">
</form>

Normally when I click cmdSave, the form will be submitted, with cmdSave
set.

Now I need to open a popup for selecting a value into txtA and then
submit the form without setting cmdSave, so that I could re-populate the
options for cboB. How should I do it? I don't plan to use AJAX for the
moment, but old techniques.

--
iTech Consulting Services Limited
Expert of ePOS solutions
Website:http://www.itech.com.hk(IE only)
Tel: (852)2325 3883 Fax: (852)2325 8288
Ask a Javascript newsgroup.

Apr 27 '07 #2
"Man-wai Chang" <to***********@gmail.comwrote in message
news:46********@127.0.0.1...
<form name="frmTest" type="submit" method="post">
<input type="textbox" name="txtA" size=10 value="">
<select name="cboB" value="">
<option value="1">1
<option value="2">1
</select>
<input type="submit" name="cmdSave">
</form>

Normally when I click cmdSave, the form will be submitted, with cmdSave
set.

Now I need to open a popup for selecting a value into txtA and then submit
the form without setting cmdSave, so that I could re-populate the options
for cboB. How should I do it? I don't plan to use AJAX for the moment, but
old techniques.

Dude, how much did you lie in your resume to get that job? I mean these past
few weeks you've been bombarding the group with a myriad of questions as if
you hadn't got any idea what you're doing and a deadline approaching.

--
Ra*********@gmail.com

"Good tea. Nice house." -- Worf
Apr 27 '07 #3
Dude, how much did you lie in your resume to get that job? I mean these past
few weeks you've been bombarding the group with a myriad of questions as if
you hadn't got any idea what you're doing and a deadline approaching.
I am a newbie in web app. My employer allows me to learn. So here are
questions that I should have asked an expert in own company. But there
is no web app expert here. :)

--
iTech Consulting Services Limited
Expert in ePOS (Point-Of-Sales) solutions
Website: http://www.itech.com.hk (IE only)
Tel: (852)2325 3883 Fax: (852)2325 8288
Apr 27 '07 #4
Dude, how much did you lie in your resume to get that job? I mean these past

For this part: I got my 2nd Upper Class Honor in 1990 from a polytechnic
that's renamed/upgraded to a university. There was no PHP or Java back then.

--
iTech Consulting Services Limited
Expert in ePOS (Point-Of-Sales) solutions
Website: http://www.itech.com.hk (IE only)
Tel: (852)2325 3883 Fax: (852)2325 8288
Apr 27 '07 #5
Ask a Javascript newsgroup.

What if javascript is banned in a project? How would you implement a
popup window for user to select a value out of a searchable list?

--
iTech Consulting Services Limited
Expert in ePOS (Point-Of-Sales) solutions
Website: http://www.itech.com.hk (IE only)
Tel: (852)2325 3883 Fax: (852)2325 8288
Apr 27 '07 #6
Man-wai Chang wrote:
<form name="frmTest" type="submit" method="post">
<input type="textbox" name="txtA" size=10 value="">
<select name="cboB" value="">
<option value="1">1
<option value="2">1
</select>
<input type="submit" name="cmdSave">
</form>

Normally when I click cmdSave, the form will be submitted, with cmdSave
set.

Now I need to open a popup for selecting a value into txtA and then
submit the form without setting cmdSave, so that I could re-populate the
options for cboB. How should I do it? I don't plan to use AJAX for the
moment, but old techniques.
What's the hype with popups? I hate the friggin' things. I fail to see
(exceptions excluded) the benefit of having a popup. If you must, don't
look at PHP for it. Javascript is what you're after.

Is there a project you are working on making you ask a load of questions
about every day? The majority of your posts could simply be answered by:
use google and/or RTFM.

It's quite easy to lose sympathy/support here, it's getting a bit
annoying to see people bypassing the normal route: doing their own
homework and search the net or a manual for answers before falling back
on usenet.

Maybe a good primer on PHP is what you really need most right now.
Don't mean to be rude, but please don't abuse the group just because
it's easy to.

Rgds
Sh.
Apr 27 '07 #7
It's quite easy to lose sympathy/support here, it's getting a bit
annoying to see people bypassing the normal route: doing their own
homework and search the net or a manual for answers before falling back
on usenet.
Homework means reading and understanding the codes used by the inventor
of PHP or experienced PHP programmers. That's why I asked.

And if you aren't interested in teaching or code sharing, you could
simply ignore my questions.

And what would you pay for a university course and then the lecturers
and professors just ask you to go home and read the books yourself?

--
iTech Consulting Services Limited
Expert in ePOS (Point-Of-Sales) solutions
Website: http://www.itech.com.hk (IE only)
Tel: (852)2325 3883 Fax: (852)2325 8288
Apr 27 '07 #8
Message-ID: <46********@127.0.0.1from Man-wai Chang contained the
following:
>And what would you pay for a university course and then the lecturers
and professors just ask you to go home and read the books yourself?
Erm... all university courses expect you to read the books yourself.

Stop digging.

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Apr 27 '07 #9
"Man-wai Chang" <to***********@gmail.comwrote in message
news:46********@127.0.0.1...
And what would you pay for a university course and then the lecturers and
professors just ask you to go home and read the books yourself?

So how much are you paying for the volunteer help you get here? The php
developer community is offering you support FOR FREE. If you don't even try
to look into something yourself and just drop a message to the group every
time you hit a wall, people start feeling you're taking advantage of them if
you do it on daily basis.

--
Ra*********@gmail.com

"Good tea. Nice house." -- Worf
Apr 27 '07 #10
Man-wai Chang wrote:
>Ask a Javascript newsgroup.

What if javascript is banned in a project? How would you implement a
popup window for user to select a value out of a searchable list?
You don't. Server-side languages like PHP cannot popup a window on the
client's machine.

If you want it, ask in a Javascript newsgroup.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Apr 27 '07 #11
Man-wai Chang wrote:
>Dude, how much did you lie in your resume to get that job? I mean
these past

For this part: I got my 2nd Upper Class Honor in 1990 from a polytechnic
that's renamed/upgraded to a university. There was no PHP or Java back
then.
So? Your training is 17 years old.

I was in college back in the early 70's. There was no Java, PHP, or
even C and C++ back then. In fact, it was almost entirely Fortran,
Cobol and Assembler.

But since then I've learned over a dozen languages - mostly before the
internet was "public access". And I generally didn't have a "mentor"
available. I did it by taking classes, buying books and studying.

I did not bombard newsgroups.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Apr 27 '07 #12
Man-wai Chang wrote:
>It's quite easy to lose sympathy/support here, it's getting a bit
annoying to see people bypassing the normal route: doing their own
homework and search the net or a manual for answers before falling back
on usenet.

Homework means reading and understanding the codes used by the inventor
of PHP or experienced PHP programmers. That's why I asked.

And if you aren't interested in teaching or code sharing, you could
simply ignore my questions.

And what would you pay for a university course and then the lecturers
and professors just ask you to go home and read the books yourself?
If you want to pay me my normal consulting rate, I'll be glad to answer
all of your questions. And I'm sure most other people would here, also.

We're all volunteers helping one another. We are not your (unpaid)
personal tutors.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Apr 27 '07 #13
On Fri, 27 Apr 2007 17:55:43 +0800, Man-wai Chang wrote:
>It's quite easy to lose sympathy/support here, it's getting a bit
annoying to see people bypassing the normal route: doing their own
homework and search the net or a manual for answers before falling back
on usenet.

Homework means reading and understanding the codes used by the inventor
of PHP or experienced PHP programmers. That's why I asked.

And if you aren't interested in teaching or code sharing, you could
simply ignore my questions.

And what would you pay for a university course and then the lecturers
and professors just ask you to go home and read the books yourself?
Man-wai. I was trying to get a point across. Of course you're free to
become defensive, but there's no need to. Take a step back, swallow pride,
take a deep breath and see you're not attacked in person.

Really, try to show a bit more effort on your own part wrt the questions
you put forward, be a little more specific about issues you run into, and
we're glad to help out. I know this PHP group has often been qualified as
'very friendly'. So it can't be that we're all brutal cavemen. And I am
sure a good PHP book or two, or a few decent online sources will answer
many of the questions you have asked here.

No offense taken btw.
Sh.

(And yes, sad to inform my Alma Mater required us to plan and do our own
work, be it reading, test lab experiments and what have you. Classical
lecture was mostly reserved for answering questions the self study
material put forward.) ;-)

Apr 27 '07 #14
Hello,

on 04/26/2007 10:44 PM Man-wai Chang said the following:
<form name="frmTest" type="submit" method="post">
<input type="textbox" name="txtA" size=10 value="">
<select name="cboB" value="">
<option value="1">1
<option value="2">1
</select>
<input type="submit" name="cmdSave">
</form>

Normally when I click cmdSave, the form will be submitted, with cmdSave
set.

Now I need to open a popup for selecting a value into txtA and then
submit the form without setting cmdSave, so that I could re-populate the
options for cboB. How should I do it? I don't plan to use AJAX for the
moment, but old techniques.
You can use the form.submit() function when the value is changed.

Now if you want to search or auto-complete a text value, you may want to
take a look at this forms generation and validation class that comes
with a plug-in exactly for that. Here is an example script in action:

http://www.meta-language.net/forms-e..._auto_complete

The class and this and other pĺug-ins are available here:

http://www.phpclasses.org/formsgeneration

Here you can watch tutorial video on this subject:

http://www.phpclasses.org/browse/vid...-complete.html
--

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
Apr 27 '07 #15
Let's go back to PHP programming and algorithms issues. This is not the
place to talk about psychology or authority.

--
iTech Consulting Services Limited
Expert in ePOS (Point-Of-Sales) solutions
Website: http://www.itech.com.hk (IE only)
Tel: (852)2325 3883 Fax: (852)2325 8288
Apr 30 '07 #16

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Weaver | last post by:
I'm new to Access. But I've been ooping for about twelve or thirteen years in another language. I've got a form with two instances of the same sub-form. It works quite well, or at least it...
3
by: MajorTom | last post by:
Hello everybody, I need help on how to use the same datase in two different form, this is the scenario: at the first form I load a big dataset (ds1) for short, but I not want to load it again...
4
by: John | last post by:
I get the feeling this is a pretty classic problem, but I'm a bit of an uber newber. Apologies! Products page, user enters a quantity and clicks one of my "Add to Cart" buttons, which bubbles up...
4
by: TJS | last post by:
how do I get "onSubmit" to work in .net ? <Form id="Form1" name="Form1" method="post" onSubmit="return validateStandard(this, 'error');" runat="server">
10
by: bregent | last post by:
I've seen plenty of articles and utilities for preventing form injections for ASP.NET, but not too much for classic ASP. Are there any good input validation scripts that you use to avoid form...
15
by: Jack | last post by:
Hi, I have a asp form where one element is a list box which lists four years starting from 2004. This list is drawn from a database table which has YearID and Year as two fields as shown below:...
2
by: AJang | last post by:
My windows form "Form1" has one Button "button1" and one TextBox "textBox1". When I click button1, it do a job for each file in a directory. The job include some platform invoke call. Before...
3
rizwan6feb
by: rizwan6feb | last post by:
Hi, everyone! I am learning AJAX these days. I want to validate a form with Ajax in such a way that every field is validated on the "onBlur" event. There are fields like Username, First Name, Last...
14
by: Tom Cole | last post by:
I have a rather complicated business application that uses Ajax. Part of this form requires uploading documents, which I cannot do using Ajax, so I post the form to an IFrame. This part works just...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.