That did it, and makes sense, thank you for the explanation...knew it would
be something a little different needing so send the info.


Regards,

Eric

  




  _____  

From: Gyrus [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 27, 2003 12:57 PM
To: CF-Talk


At 11:52 27/09/2003 -0500, you wrote:
>HTTP 405 - Resource not allowed

This is the "Method not allowed" code:

http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.6

Not sure if it's the fact you're intercepting the onsubmit event that might
be causing trouble. If your drop-down was just a navigation element, you
should probably use a "dummy" form with the event handler on the select:

<form action="">      <select name="url"
(this.options[this.selectedIndex].value!='') location.href = "">(this.options[this.selectedIndex].value);">
           <option value="">Select a page</option>
           <option value="">--------------------</option>
           <option value="page.htm">Page</option>
           ... etc. ...
      </select>
</form>

But it looks like this is a login form and there's other stuff that needs
submitting. Maybe try using the JS to change the form's action attribute
(which is required for valid HTML in any case):

<form action="" a default in here or just leave it blank]"
name="login_form"
>;"
method="post">
...blaaaaaaaaaaaaaaahhhh...
<select name="gowhere" style="font-size: 9px; background: 400040; color:
ffffff;">
<option
value="http://vikesfans.mail.everyone.net/email/scripts/loginuser.pl"
<http://vikesfans.mail.everyone.net/email/scripts/loginuser.pl>
>Vikesfans.com</option>
<option
value="http://skolvikings.mail.everyone.net/email/scripts/loginuser.pl"
<http://skolvikings.mail.everyone.net/email/scripts/loginuser.pl>
>SkolVikings.com</option>

<option
value="http://purplepride.mail.everyone.net/email/scripts/loginuser.pl"
<http://purplepride.mail.everyone.net/email/scripts/loginuser.pl>
>Purplepride.org</option>
</select>
...blaaaaaaaaaaaaaaahhhh...
</form>

Then the form will submit to the URL selected, instead of just locating
there via location.href (using this would mean the requested page would not
received any of the other parts of the submitted form.

No need for a JS function I reckon, simple enough for inline script. Also,
your original had "login_form.gowhere.options[list.selectedIndex].value" -
not sure where the "list" part of "list.selectedIndex" is from - was that
throwing a JS error that you missed?

HTH,

Gyrus
[EMAIL PROTECTED]
http://norlonto.net/gyrus/dev/
PGP key available

  _____  


[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to