473,325 Members | 2,805 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,325 software developers and data experts.

Perhaps the question was not so simple?

I asked previously, but elicited no reply, the following:

Could someone please tell me how to 'marry' these two pieces
of script so that script(A)posts the desired url selected from
the select box into a popup (B). Or am I going about it the wrong
way?

(A)
<form name="form">
<select name="links">
<option value="#" selected>View Options
<option value="../page1.htm">Page 1
<option value="../page2.htm">Page 2
</select>&nbsp;&nbsp; <input type="button" name="go" value="Go!"
onClick="window.location=document.form.links.optio ns[document.form.links.selectedIndex].value">
</form>

(B)
onClick="window.open('toolbar=no,width=300,height= 270,left=10,top=10,
status=no,scrollbars=no, resize=no');return false">
Jul 20 '05 #1
13 1417
Dick Rosser wrote:
I asked previously, but elicited no reply


.... after a whole 6 hours!

Nope, not a whole 6 hours, a few minutes short.

--
David Dorward http://dorward.me.uk/
Jul 20 '05 #2

"David Dorward" wrote
Dick Rosser wrote:
I asked previously, but elicited no reply


... after a whole 6 hours!

Nope, not a whole 6 hours, a few minutes short.


Shame, I was hoping one of the more useful members of
this NG would have responded. Perhaps, rather than
wasting bandwidth on flame (as I now appear to be
doing) you should turn your stopwatch off and go
tend your website!
Jul 20 '05 #3
On Sat, 29 Nov 2003 03:16:12 -0000
"Dick Rosser" <sp*************@aol.com> wrote:
<snip>
Shame, I was hoping one of the more useful members of
this NG would have responded. Perhaps, rather than
wasting bandwidth on flame (as I now appear to be
doing) you should turn your stopwatch off and go
tend your website!


It's a holiday weekend. If you want free help I'm afraid you'll have to
wait.

--
Then there was the man who drowned crossing a stream with an average
depth of six inches.
-- W. I. E. Gates
Jul 20 '05 #4
Lee
Dick Rosser said:

I asked previously, but elicited no reply,
You might have gotten more responses if you used a more
informative subject line. You also need to consider that
this is a holiday for most people in the US, so there
aren't as many people watching the newsgroup, so you need
to allow more time for responses.
Could someone please tell me how to 'marry' these two pieces
of script so that script(A)posts the desired url selected from
the select box into a popup (B). Or am I going about it the wrong
way?

(A)
<form name="form">
<select name="links">
<option value="#" selected>View Options
<option value="../page1.htm">Page 1
<option value="../page2.htm">Page 2
</select>&nbsp;&nbsp; <input type="button" name="go" value="Go!"
onClick="window.location=document.form.links.opti ons[document.form.links.selectedIndex].value">
</form>

(B)
onClick="window.open('toolbar=no,width=300,height =270,left=10,top=10,
status=no,scrollbars=no, resize=no');return false">


Change the onclick handler in (A) to
"window.open(this.form.links.options[this.form.links.selectedIndex].value,'popup','width=300,height=270,left=10,top=1 0')"

You should change the values to full URL's, including "http://...".
Note that you don't need to list any window options that you're setting
to "no", because that's the default if any options are listed.

Jul 20 '05 #5
JRS: In article <20******************************@tcac.net>, seen in
news:comp.lang.javascript, Albert Wagner <al******@tcac.net> posted at
Fri, 28 Nov 2003 22:41:12 :-
On Sat, 29 Nov 2003 03:16:12 -0000
"Dick Rosser" <sp*************@aol.com> wrote:
<snip>
Shame, I was hoping one of the more useful members of
this NG would have responded. Perhaps, rather than
wasting bandwidth on flame (as I now appear to be
doing) you should turn your stopwatch off and go
tend your website!


It's a holiday weekend. If you want free help I'm afraid you'll have to
wait.


It is only a holiday weekend in one country that I know of. The OP has
a UK-indicative E-address and uses a UK news service, though apparently
not at the same time. Here it is a normal weekend.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 MIME. ©
Web <URL:http://www.merlyn.demon.co.uk/> - w. FAQish topics, links, acronyms
PAS EXE etc : <URL:http://www.merlyn.demon.co.uk/programs/> - see 00index.htm
Dates - miscdate.htm moredate.htm js-dates.htm pas-time.htm critdate.htm etc.
Jul 20 '05 #6
Dr John Stockton hu kiteb:
It's a holiday weekend. If you want free help I'm afraid you'll
have to wait.


It is only a holiday weekend in one country that I know of. The OP
has a UK-indicative E-address and uses a UK news service, though
apparently not at the same time. Here it is a normal weekend.


Ah, but I suspect a disproportionately large percentage of people here
are from the USA. Or do you also expect service to temporarily disappear
on Obon, Botswana's Independance Day, and Chairman Mao's Birthday?

I'm all for slamming US-centrism where it is due, but let's not slam the
USA unnecessarily. It demeans us all.

--
--
Fabian
Visit my website often and for long periods!
http://www.lajzar.co.uk

Jul 20 '05 #7
"Fabian" <la****@hotmail.com> writes:
Ah, but I suspect a disproportionately large percentage of people here
are from the USA.
I don't know what a disproportionately large percentage is to you, but
most of the people I notice are not from the US. Maybe that's why I
notice them :)

The US has a larger population than any European country alone, a high
rate of internet connectedness (although not as high as, e.g., Denmark
and Korea), and are natively speaking the language used in this group
(so there is no national group to use instead). Taking that into
consideration, I even think people from the US are not as well
represented in this group as I should expect.

I would still peg them at around 25%, but that's a guess. Only doing
statistics will be able to tell us for sure.
Or do you also expect service to temporarily disappear
on Obon, Botswana's Independance Day, and Chairman Mao's Birthday?
No. We don't expect "service" to disappear on US holdays either.
Maybe on the 24th and 25th of December, since that holiday is so
widely celebrated (but then again, the English speaking world doesn't
celebrate on the 24th, while some of us are just relaxing on the
25th). So, only maybe.
I'm all for slamming US-centrism where it is due, but let's not slam the
USA unnecessarily. It demeans us all.


Agree.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #8
Lasse Reichstein Nielsen hu kiteb:
"Fabian" <la****@hotmail.com> writes:
Ah, but I suspect a disproportionately large percentage of people
here are from the USA.

The US has a larger population than any European country alone, a high
rate of internet connectedness (although not as high as, e.g., Denmark
and Korea), and are natively speaking the language used in this group
(so there is no national group to use instead). Taking that into
consideration, I even think people from the US are not as well
represented in this group as I should expect.

I would still peg them at around 25%, but that's a guess. Only doing
statistics will be able to tell us for sure.


Well, the US accounts for about 4% of the world's population. So having
even 10% of teh users on this group can fairly be called
disproportioantely over-represented. I didnt calculate, but assuming
your 25% is correct, we are not disagreeing.
--
--
Fabian
Visit my website often and for long periods!
http://www.lajzar.co.uk

Jul 20 '05 #9
JRS: In article <bq*************@ID-174912.news.uni-berlin.de>, seen in
news:comp.lang.javascript, Fabian <la****@hotmail.com> posted at Sun, 30
Nov 2003 09:58:57 :-
Dr John Stockton hu kiteb:
It's a holiday weekend. If you want free help I'm afraid you'll
have to wait.
It is only a holiday weekend in one country that I know of. The OP
has a UK-indicative E-address and uses a UK news service, though
apparently not at the same time. Here it is a normal weekend.


Ah, but I suspect a disproportionately large percentage of people here
are from the USA. Or do you also expect service to temporarily disappear
on Obon, Botswana's Independance Day, and Chairman Mao's Birthday?


Disproportionately to the population, yes; but probably less so than for
those in Western Europe who are reasonably capable in English.

But ISTM that the majority of the contributors here - those who give
answers rather than only asking - are not from the US. Remember,
everyone who has a two-letter Top Level Domain (other than .us) is non-
US, and so are many of those with longer TLDs. Everyone who posts from
time zones outside about -1000 to -0400 is outside the US; but many from
outside post as if from within those zones, especially -0800. Most non-
US indicate that status explicitly; only a small proportion of those in
the US admit it explicitly.

Moreover, ISTM that a very substantial proportion of users post from
home, outside office hours.

I'm all for slamming US-centrism where it is due, but let's not slam the
USA unnecessarily. It demeans us all.


That was merely stating indisputable facts. I know of only one other
country that celebrates Thanksgiving, but it does that on the second
Monday of October.

Those who believe that because it is a holiday in the USA everywhere
will shut own stand in need of being given enlightenment.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> JS maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/JS/&c., FAQ topics, links.
Jul 20 '05 #10
On Sun, 30 Nov 2003 17:29:10 +0000
Dr John Stockton <sp**@merlyn.demon.co.uk> wrote:
<snip>
It's really a shame that the OP's question was not answered as eagerly
as all this dickering about US centrism.
--
Then there was the man who drowned crossing a stream with an average
depth of six inches.
-- W. I. E. Gates
Jul 20 '05 #11
JRS: In article <20******************************@tcac.net>, seen in
news:comp.lang.javascript, Albert Wagner <al******@tcac.net> posted at
Sun, 30 Nov 2003 18:41:06 :-
On Sun, 30 Nov 2003 17:29:10 +0000
Dr John Stockton <sp**@merlyn.demon.co.uk> wrote:
<snip>
It's really a shame that the OP's question was not answered as eagerly
as all this dickering about US centrism.


You should learn, then, to think about countries other than your own
before posting parochial stupidities.

Before you posted your response, Lee had posted a solution - which
proves that the theory that (being on holiday) US contributors would be
unable to answer is not soundly based either.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 MIME. ©
Web <URL:http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.
Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
Do not Mail News to me. Before a reply, quote with ">" or "> " (SonOfRFC1036)
Jul 20 '05 #12
Lee
Dr John Stockton said:
Before you posted your response, Lee had posted a solution - which
proves that the theory that (being on holiday) US contributors would be
unable to answer is not soundly based either.


I agree that "It's a holiday weekend" wasn't appropriate in
this newsgroup.

But I feel compelled to point out that I would probably have
answered sooner if I hadn't spent the afternoon at the zoo.

Jul 20 '05 #13
On Mon, 1 Dec 2003 15:47:47 +0000
Dr John Stockton <sp**@merlyn.demon.co.uk> wrote:
JRS: In article <20******************************@tcac.net>, seen in
news:comp.lang.javascript, Albert Wagner <al******@tcac.net> posted at
Sun, 30 Nov 2003 18:41:06 :-
On Sun, 30 Nov 2003 17:29:10 +0000
Dr John Stockton <sp**@merlyn.demon.co.uk> wrote:
<snip>
It's really a shame that the OP's question was not answered as
eagerly as all this dickering about US centrism.
You should learn, then, to think about countries other than your own
before posting parochial stupidities.


Indeed, I should. Especially, as such slips inevitably evoke a such a
response from you.
Before you posted your response, Lee had posted a solution - which
proves that the theory that (being on holiday) US contributors would
be unable to answer is not soundly based either.


Not really. I did not feel confident enough to post an answer to his
question. If an honest mistake in international protocol is considered
this bad, then I certainly want to be sure that I am correct when
replying to a Javascript question.

--
Then there was the man who drowned crossing a stream with an average
depth of six inches.
-- W. I. E. Gates
Jul 20 '05 #14

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

Similar topics

124
by: 43 | last post by:
how come m$Office isn't written in .net? how come Open Office isn't written in j2ee? how come dbms systems aren't written in either? how come browsers aren't written in either? how come...
9
by: Richard | last post by:
So sweet and simple. Found this script on a board. <script type="text/javascript"> function showtext(thetext) { if (!document.getElementById) return false;...
7
by: __PPS__ | last post by:
Hello everybody, that's already not a quiz question from school :) I wanted to design simple stuff that would allow me to program cgi programs with cpp. My goal is to make reading input from user...
10
by: glenn | last post by:
I am use to programming in php and the way session and post vars are past from fields on one page through to the post page automatically where I can get to their values easily to write to a...
7
by: abcd | last post by:
I am trying to set up client machine and investigatging which .net components are missing to run aspx page. I have a simple aspx page which just has "hello world" printed.... When I request...
4
by: Vicky | last post by:
Hi, my friends and i have been confused by this problem. On a veriety of systems we have tested compiling a simple hello word applicaation to check optimisation of C++ in 2003 VS.NET. However...
10
by: Robert | last post by:
I am an attorney in a non-profit organization and a self-taught programmer. I'm trying to create a client db that will allow me to search for potential conflicts of interest based either on Social...
13
by: Eric_Dexter | last post by:
All I am after realy is to change this reline = re.line.split('instr', '/d$') into something that grabs any line with instr in it take all the numbers and then grab any comment that may or may...
0
by: Gary Herron | last post by:
Dan Yamins wrote: Because loading (and reloading) assigns values to variables (called binding a value in Python), but does not go on a hunt to find variables to *unbind*. Once a variable is...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.