SitePoint Sponsor

User Tag List

Results 1 to 16 of 16
  1. #1
    SitePoint Member
    Join Date
    Oct 2004
    Location
    Vitoria (Spain)
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation Post method to pass parameters avoiding javascript :xeye:

    Has anyone any idea about using post method to pass hidden parameters keeping accessibility and avoiding javascript?

  2. #2
    SitePoint Member
    Join Date
    Oct 2004
    Location
    Vitoria (Spain)
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question How to use post method without javascript (or dhtml) keeping accessibility?

    Has anyone any idea about using post method to pass hidden parameters keeping accessibility and avoiding javascript?

  3. #3
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,236
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    ???

    Care to explain a little more?

  4. #4
    SitePoint Member
    Join Date
    Oct 2004
    Location
    Vitoria (Spain)
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ok, i'll try to...

    What I'm looking for is a technique to pass hidden parameters between pages but in such a way that a javascript disabled browser can be used without problems...

    I hope I've explained it well (excuse me for my english...).

  5. #5
    SitePoint Addict
    Join Date
    Nov 2003
    Location
    Malmoe, Sweden
    Posts
    265
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    <form method="post"...>
    ?!?

    You better do some heavy work on your "explaining capabilities".

  6. #6
    SitePoint Member
    Join Date
    Oct 2004
    Location
    Vitoria (Spain)
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question

    I guess you are right... I've forgotten something...:

    I want to pass parameters from a page to another, but by clicking in the anchor tags..., I mean, not by a submit form button...

    And not by a querystring, but by post method... (hidden parameters...).

    But if I do it with javascript (or by form.submit() within the onclick attributte) it doesn't work in a JAVASCRIPT-DISABLED BROWSER (used by blind people, for instance, like Braille Surf or Lynx...).

    How can I resolve it???

    Thanks.
    Last edited by arcepablo; Oct 28, 2004 at 03:21.

  7. #7
    SitePoint Addict
    Join Date
    Nov 2003
    Location
    Malmoe, Sweden
    Posts
    265
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You canīt. There are two possibilities in HTTP to use in this case. GET or POST. Canīt do both. Using GET will reveals all data sent to the server in the URL. Using post just hides that information behind a sheet. Users can always (being a little computer wise) look that information up (that is, look behind the sheet).

    You could use cookies but then your back to the what-happen-to-user-agents-with-cookies-and-or-JavaScript-disabled?
    Last edited by andrin; Oct 28, 2004 at 04:03.

  8. #8
    SitePoint Member
    Join Date
    Oct 2004
    Location
    Vitoria (Spain)
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question I mean...

    I want to pass parameters from a page to another, but by clicking in the anchor tags..., I mean, not by a submit form button...

    And not by a querystring, but by post method... (hidden parameters...).

    But if I do it with javascript (or by form.submit() within the onclick attributte) it doesn't work in a JAVASCRIPT-DISABLED BROWSER (used by blind people, for instance, like Braille Surf or Lynx...).

    How can I resolve it???

    Thanks.

  9. #9
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,236
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    You can't. Use a submit button. If need be, remove the borders and backgrounds and change the text color/decoration with CSS to make the submit button look like a link.

  10. #10
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,236
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Please don't cross-post arcepablo.

  11. #11
    SitePoint Member
    Join Date
    Oct 2004
    Location
    Vitoria (Spain)
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Ok, excuse me...

    ... and thanks

  12. #12
    SitePoint Wizard silver trophy kyberfabrikken's Avatar
    Join Date
    Jun 2004
    Location
    Copenhagen, Denmark
    Posts
    6,157
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    is there any particular reason for why you don't want to use GET for passing parameters ?

  13. #13
    SitePoint Member
    Join Date
    Oct 2004
    Location
    Vitoria (Spain)
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Mmm, I have to (or I should) pass them hidden.

    Well, I guess i'll pass them using GET but I had to know if exists a "quasiperfect" way to do it using POST.

  14. #14
    SitePoint Addict markchivs's Avatar
    Join Date
    Oct 2004
    Location
    Malvern Hills, UK
    Posts
    233
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do you have to use hidden fields if your users are blind? soz bad joke.

  15. #15
    SitePoint Wizard
    Join Date
    Mar 2001
    Posts
    3,537
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  16. #16
    SitePoint Member
    Join Date
    Oct 2004
    Location
    Vitoria (Spain)
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    my users are all people, including blind


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
  •