[ale] Javascript Question

Geoffrey esoteric at 3times25.net
Mon Sep 30 11:42:32 EDT 2002




Mike Millson wrote:
> No, there's only 1 constructor, and it takes only 1 argument - the string
> that appears inside the dialog.

You could emulate the confirm box with window.open() which will then 
permit you to place the window.

> 
> Mike
> 
> -----Original Message-----
> From: cfowler [mailto:cfowler at outpostsentinel.com]
> Sent: Monday, September 30, 2002 10:07 AM
> To: cfowler
> Cc: Kevin O'Neill Stoll; ale at ale.org
> Subject: Re: [ale] Javascript Question
> 
> 
> Is there anyway to center a confrim() box to the center of the screen?
> 
> 
> On Mon, 2002-09-30 at 10:06, cfowler wrote:
> 
>>Thanks Kevin.  That did the trick.
>>
>>On Mon, 2002-09-30 at 09:58, Kevin O'Neill Stoll wrote:
>>
>>><html>
>>><head>
>>>
>>><script type="text/javascript">
>>>function locate()
>>>{
>>>location="http://www.w3schools.com/"
>>>}
>>></script>
>>>
>>></head>
>>><body>
>>>
>>><form>
>>><input type="button" onclick="locate()" value="New
>>>location">
>>></form>
>>>
>>></body>
>>></html>
>>>
>>>
>>>
>>>--- cfowler <cfowler at outpostsentinel.com> wrote:
>>>
>>>>I'm having a blank mind trying to figure something out.
>>>>
>>>>If The user selects okay then I want to go to a URL.  The
>>>>url variable
>>>>in the script.  Can someone tell me the prpoer JavaScript
>>>>function to do
>>>>this?
>>>>
>>>>function rebootPort(p) {
>>>>       var msg;
>>>>       var url = '/cgi-bin/powercycle?reboot=1&port=' +
>>>>p;
>>>>       msg = 'Cycle power on port ' + p + '?';
>>>>       if(confirm(msg)) {
>>>>
>>>>       }
>>>>}
>>>>
>>>>
>>>>
>>>>---
>>>>This message has been sent through the ALE general
>>>>discussion list.
>>>>See http://www.ale.org/mailing-lists.shtml for more info.
>>>>Problems should be
>>>>sent to listmaster at ale dot org.
>>>>
>>>
>>>
>>>=====
>>>Kevin Stoll
>>>http://kevinstoll.org
>>>
>>>OpenSource Software...FREE!
>>>Angering Bill Gates...priceless.
>>>============================================================
>>>
>>>__________________________________________________
>>>Do you Yahoo!?
>>>New DSL Internet Access from SBC & Yahoo!
>>>http://sbc.yahoo.com
>>>
>>>
>>>
>>
> 
> 
> 
> ---
> This message has been sent through the ALE general discussion list.
> See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
> sent to listmaster at ale dot org.
> 
> 
> 
> ---
> This message has been sent through the ALE general discussion list.
> See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
> sent to listmaster at ale dot org.
> 
> 


-- 
Until later: Geoffrey		esoteric at 3times25.net

I didn't have to buy my radio from a specific company to listen
to FM, why doesn't that apply to the Internet (anymore...)?


---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list