For Programmers: Free Programming Magazines  


Home > Archive > ASP > April 2007 > Javascript question









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Javascript question
Man-wai Chang

2007-04-26, 3:55 am

I have a form formABC that has a textbox plus a button. On clicking the
button, window.open() a popup window for user to select a value. The
value will then be passed back to formABC's textbox.

Now I want formABC to submit itself *AFTER* the textbox got a value. How
could I do it?


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

2007-04-26, 7:55 am

Man-wai Chang wrote on 26 apr 2007 in
microsoft.public.inetserver.asp.general:

> I have a form formABC that has a textbox plus a button. On clicking the
> button, window.open() a popup window for user to select a value. The
> value will then be passed back to formABC's textbox.
>
> Now I want formABC to submit itself *AFTER* the textbox got a value. How
> could I do it?


1 - Do you think "Javascript question"
is an informative subject line in a Javascript NG?

2 - show your code [the relevant working part, that is]


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Evertjan.

2007-04-26, 7:55 am

Evertjan. wrote on 26 apr 2007 in
microsoft.public.inetserver.asp.general:

> Man-wai Chang wrote on 26 apr 2007 in
> microsoft.public.inetserver.asp.general:
>
>
> 1 - Do you think "Javascript question"
> is an informative subject line in a Javascript NG?
>
> 2 - show your code [the relevant working part, that is]


Sorry, it is not even a javascript NG, but the ASP NG.

3 - is this an ASP related question, and if so why?

Show your code!


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Man-wai Chang

2007-04-26, 7:55 am

> Sorry, it is not even a javascript NG, but the ASP NG.
>
> 3 - is this an ASP related question, and if so why?


There is no javascript newsgroup in msnews. so I guess ASP people could
answer the question. :)

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

2007-04-26, 7:55 am

> 2 - show your code [the relevant working part, that is]

Thank you first. The textbox:

<td><input type="text"
id="txtItem_no{$xx}"
name="txtItem_no{$xx}"
value="{$dtl_array.$ileft.item_no}"
size="10"
onchange="this.form.submit();" />
<a href="#"
onclick="window.open('cnst_141.php?varname=txtItem_no{$xx}',
'cnst_141','width=700,height=550,left=10
,top=20');"
class="button">?</a>

My current solution in the popup (cnst_141) window after the selected
value was clicked:

function returnitem(thevarname, thevalue) {
var parentform = window.opener.document;
var thevar = parentform.getElementById(thevarname);
if (thevar) {
thevar.value=thevalue;
thevar.form.submit();
}
window.close();
}

I am wondering whether there is a better way out...

--
iTech Consulting Services Limited
Expert of ePOS solutions
Website: http://www.itech.com.hk (IE only)
Tel: (852)2325 3883 Fax: (852)2325 8288
Bob Barrows [MVP]

2007-04-26, 7:55 am

Man-wai Chang wrote:
>
> There is no javascript newsgroup in msnews. so I guess ASP people
> could answer the question. :)



The closest is m.p.scripting.jscript

You would have a better chance of an answer there, especially once you've
shown them your code.
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


Man-wai Chang

2007-04-26, 9:55 pm

> The closest is m.p.scripting.jscript

thanks.

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

2007-04-27, 3:55 am

Man-wai Chang wrote on 27 apr 2007 in
microsoft.public.inetserver.asp.general:

> Subject: Re: Javascript question
> Date: Fri, 27 Apr 2007 09:28:15 +0800
> From: Man-wai Chang <toylet.toylet@gmail.com>
> Newsgroups: microsoft.public.inetserver.asp.general
>
>
> thanks.
>


however you will miss the wealth of info available on
the much more active NG:

comp.lang.javascript

[and it's FAQ.]

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Andrew Murray

2007-04-28, 3:56 am

What about comp.lang.javascript? - maybe you ISP hosts this group? Or
Google Groups might.


"Man-wai Chang" <toylet.toylet@gmail.com> wrote in message
news:eUZMdtGiHHA.4872@TK2MSFTNGP03.phx.gbl...
>
> thanks.
>
> --
> iTech Consulting Services Limited
> Expert of ePOS solutions
> Website: http://www.itech.com.hk (IE only)
> Tel: (852)2325 3883 Fax: (852)2325 8288



Trevor L.

2007-04-28, 3:56 am

Andrew Murray wrote:
> What about comp.lang.javascript? - maybe you ISP hosts this group? Or
> Google Groups might.


I wish mine would. (It doesn't support any news groups.) I almost feel like
going back to iinet (which of course is a W.A. firm ). If you see my reply
to another post, I woudl like to access news groups other than MS groups
through OE6. And I don't trust Google - will it protect my email address
from spam?
--
Cheers,
Trevor L.
[ Microsoft MVP - FrontPage ]
MVPS Website: http://trevorl.mvps.org/
----------------------------------------

Evertjan.

2007-04-28, 7:55 am

Trevor L. wrote on 28 apr 2007 in
microsoft.public.inetserver.asp.general:

> Andrew Murray wrote:
>
> I wish mine would. (It doesn't support any news groups.) I almost feel
> like going back to iinet (which of course is a W.A. firm ). If you see
> my reply to another post, I woudl like to access news groups other
> than MS groups through OE6.


Don't use OE for usenet!

If you are not content with your ISP's news server, use another one.
There are free ones, and there are payed ones.

I use a Dutch payed one of my pre-cable ISP, which also gives me many other
services.

> And I don't trust Google - will it protect
> my email address from spam?


That, meseems, is your own job.
You could make a seperate address for usenet, if you are paranoid enough.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Bob Barrows [MVP]

2007-04-28, 7:55 am

Evertjan. wrote:
> Trevor L. wrote on 28 apr 2007 in
> microsoft.public.inetserver.asp.general:
>
>
> Don't use OE for usenet!


Personal preference, Evertjian. I have no problem using OE to access
multiple news servers.


--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


Bob Barrows [MVP]

2007-04-28, 7:55 am

Trevor L. wrote:
> And I don't trust Google - will it
> protect my email address from spam?


Pretty much the same way OE does ...

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


Trevor L.

2007-04-29, 3:55 am

Evertjan. wrote:
> Trevor L. wrote on 28 apr 2007 in
> microsoft.public.inetserver.asp.general:
>
>
> Don't use OE for usenet!
>
> If you are not content with your ISP's news server, use another one.
> There are free ones, and there are payed ones.
>
> I use a Dutch payed one of my pre-cable ISP, which also gives me many
> other services.
>
>
> That, meseems, is your own job.
> You could make a seperate address for usenet, if you are paranoid
> enough.
>
> --
> Evertjan.
> The Netherlands.
> (Please change the x'es to dots in my emailaddress)


Hmm,
Thanks, Evertjan

This seems like a losing battle. I ask many questions and get conflicting
answers.

Some queries/comments:
Why should one NOT use OE for Usenet?
What newsgroups are on Usenet?
(e.g. is comp.lang.javascript on Usenet?)
For that matter, what defines/comprises Usenet?
I can't use my ISP's news server. As stated before : It doesn't support any
news groups.
Does any one know of free news servers which will allow read/write
operations (in partcular to c.l.j. but to any specific group for that
matter) AND which will operate inside OE6?
Will Google store my email address in such a way that it is accessible to
spammers? (That is why I said: I don't trust Google)
Should I be paranoid? (After all, something started my 100+ spams a day, and
if Google adds to it, then perhaps I should be right to be so)

--
Cheers,
Trevor L.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com