SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot moshe_be's Avatar
    Join Date
    Dec 2000
    Posts
    169
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    changing action on a form not working

    I did this code:
    <input type="submit" value="Another page" onclick="document.formname.action='newpage.php'">

    On a few pages, but it refuses to work on my latest one, I have no idea why.

    I even created a special changeaction function, but I still get that object does not support this property or method...

    See the page here:
    http://lightning.centralgaming.net/page.html

    Click the Preview button... any ideas?

    And I was inspired from the edit signature on SitePoint forums
    Last edited by moshe_be; Aug 8, 2002 at 15:14.

  2. #2
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    javascript is finicky (as I'm sure you know) and the error reporting sux. Everytime I get a "object does not support this property or method" error, I develop an involuntary twitch in my colon. **pause for effect** Anyways...If you are sure that error is wrong, then it is some other little syntactical error that's setting it off.

    However, you may want to try referencing it this way:
    onClick="this.form.action='member.php?sid=&action=edit_signature';"
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev




  3. #3
    SitePoint Zealot moshe_be's Avatar
    Join Date
    Dec 2000
    Posts
    169
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah, I can't believe it, found hidden field called action too

    Well, now it works. Thanks.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •