Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Javascript question

Reply
Thread Tools

Javascript question

 
 
Man-wai Chang
Guest
Posts: n/a
 
      04-26-2007
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
 
Reply With Quote
 
 
 
 
Evertjan.
Guest
Posts: n/a
 
      04-26-2007
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)
 
Reply With Quote
 
 
 
 
Evertjan.
Guest
Posts: n/a
 
      04-26-2007
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:
>
>> 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]


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)
 
Reply With Quote
 
Man-wai Chang
Guest
Posts: n/a
 
      04-26-2007
> 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
 
Reply With Quote
 
Man-wai Chang
Guest
Posts: n/a
 
      04-26-2007
> 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
 
Reply With Quote
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      04-26-2007
Man-wai Chang wrote:
>> 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.



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"


 
Reply With Quote
 
Man-wai Chang
Guest
Posts: n/a
 
      04-27-2007
> 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
 
Reply With Quote
 
Evertjan.
Guest
Posts: n/a
 
      04-27-2007
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 <>
> Newsgroups: microsoft.public.inetserver.asp.general
>
>> The closest is m.p.scripting.jscript

>
> 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)
 
Reply With Quote
 
Andrew Murray
Guest
Posts: n/a
 
      04-28-2007
What about comp.lang.javascript? - maybe you ISP hosts this group? Or
Google Groups might.


"Man-wai Chang" <> wrote in message
news:...
>> 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



 
Reply With Quote
 
Trevor L.
Guest
Posts: n/a
 
      04-28-2007
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/
----------------------------------------

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about question mark in JavaScript Jimolo Javascript 2 01-20-2008 05:02 PM
Generated JavaScript vs. Manually Created JavaScript: Which one comes first? Nathan Sokalski ASP .Net 4 11-08-2007 07:24 AM
JavaScript or not JavaScript Mark Rae ASP .Net 36 09-09-2006 01:12 PM
href="javascript:func()" vs href="#" onclick="javascript:func()" CRON HTML 24 06-20-2006 08:05 PM
Javascript -> Applet: variable reset after method call from javascript?! mcdeveloper Java 1 06-13-2006 08:34 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57