Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 14 of 14
  1. #1
    Regular Coder
    Join Date
    Dec 2004
    Location
    Jamaica
    Posts
    592
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Send data without form methods

    Is there a possible way that I can send data to the next page without using form methods? No querystrings and no hidden form input boxes...

    Is there any possible way that I can do that?
    I'm gonna find a way to download the internet if its the last thing I do...
    Prepare to bow down to me (or my grave) and call me almighty when the algorithm is finished

  • #2
    New Coder
    Join Date
    Jan 2005
    Location
    INDIA
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thnx for starting this thread...

    i hav been searching an answer for this question for ages.
    finally, i had to use cookies.
    i wasnt able to send data as such, however i was able to send "arguments" to the next page to load.
    this is however very insecure and inefficient way.
    anyone, really, anyone who could help..

  • #3
    Regular Coder
    Join Date
    Aug 2002
    Location
    Texas
    Posts
    287
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You could set a session variable on page1 that would be available on the next page, perhaps.

    fv

  • #4
    Regular Coder
    Join Date
    Oct 2004
    Location
    In front of this computer. (Where else?)
    Posts
    442
    Thanks
    0
    Thanked 0 Times in 0 Posts
    fv's right. Session variables are the way to go. They are available on any page as long as the session is open.
    Tomorrow is the first day of the rest of your life... What have you done today?
    Tutorials
    Web: w3schools, htmldog General tips: Hardware, Networking

  • #5
    Regular Coder
    Join Date
    Dec 2004
    Location
    Jamaica
    Posts
    592
    Thanks
    2
    Thanked 0 Times in 0 Posts
    yeah... i'm familiar with the session variables and application variables.... sorry should hav made my post a lil bit clearer.

    And I was jus wondering..... anything but those variables?
    I'm gonna find a way to download the internet if its the last thing I do...
    Prepare to bow down to me (or my grave) and call me almighty when the algorithm is finished

  • #6
    Regular Coder
    Join Date
    Oct 2004
    Location
    In front of this computer. (Where else?)
    Posts
    442
    Thanks
    0
    Thanked 0 Times in 0 Posts
    No, don't think so. What do you have against the variables?
    Tomorrow is the first day of the rest of your life... What have you done today?
    Tutorials
    Web: w3schools, htmldog General tips: Hardware, Networking

  • #7
    Senior Coder
    Join Date
    Apr 2003
    Location
    England
    Posts
    1,192
    Thanks
    5
    Thanked 13 Times in 13 Posts
    duh! they are evil

  • #8
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,075
    Thanks
    0
    Thanked 256 Times in 252 Posts
    Quote Originally Posted by ghell
    duh! they are evil
    They become evil if you use them incorrectly. Just as a hammer is a good tool but if you use it to hit one's head, it becomes bad.

    jaywhy13, session variables might be the solution to the problem. But you have to explain the background of the problem to determine if indeed using session variable is the best solution.
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #9
    New Coder
    Join Date
    Jan 2005
    Location
    INDIA
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    right, session variables will work.
    i hav a function/method in one of the pages.
    so can i send am argument to it from another?

  • #10
    Regular Coder
    Join Date
    Oct 2004
    Location
    In front of this computer. (Where else?)
    Posts
    442
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by abhishek.in
    right, session variables will work.
    i hav a function/method in one of the pages.
    so can i send am argument to it from another?
    I don't think you can call a function located in another page from the page you're in presently. - unless, of course you include the page with the function. But if you are just trying to use a variable from another page, there are a number of ways to do that.
    1. Use
    Code:
    Server.Transfer("pagewithfunction.asp")
    to move from the reference page to the page with the function. When you use Server.Transfer as against response.redirect, all your variables remain in memory and you can reference them as you would normally do

    2. Use forms on the first page to send your variables to the page with the function.

    3. Use session variables. Caution: make sure you destroy the variables immediately you're through using it or else (like ghell said) the session variables might become evil.
    Tomorrow is the first day of the rest of your life... What have you done today?
    Tutorials
    Web: w3schools, htmldog General tips: Hardware, Networking

  • #11
    Senior Coder
    Join Date
    Apr 2003
    Location
    England
    Posts
    1,192
    Thanks
    5
    Thanked 13 Times in 13 Posts
    Quote Originally Posted by glenngv
    They become evil if you use them incorrectly. Just as a hammer is a good tool but if you use it to hit one's head, it becomes bad.

    jaywhy13, session variables might be the solution to the problem. But you have to explain the background of the problem to determine if indeed using session variable is the best solution.
    so.. you are saying i shudnt do that to people?... what are hammers good for then ='(

    i just stay clear of them pretty much full stop, i think there is one script on my server that stores 1 byte number on them at the moment and thats it.. they sorta crap up the server if you put any moderate amount of data in them dont they?

  • #12
    Regular Coder
    Join Date
    Dec 2004
    Location
    Jamaica
    Posts
    592
    Thanks
    2
    Thanked 0 Times in 0 Posts
    If application variables are not the way to go... due to the fact that yeah.... its evil and u sin when u over populate them with 2 much info....

    Is there a better way to exchange global data then?

    Oh, when i opened this thread... i wasn't searchin for anything in particular... rather just thinkin aloud.... and learning from you guys have to say....

    Hope I'm not charged for that.... Ur insight really helps out guys!
    I'm gonna find a way to download the internet if its the last thing I do...
    Prepare to bow down to me (or my grave) and call me almighty when the algorithm is finished

  • #13
    New to the CF scene
    Join Date
    Mar 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi!
    I am looking for something similar to this.
    I want to send a variable through POST method using javascript. is it possible?
    i found a code that gets the selected text and sent it to another page using get. that's simple: it just appends the selected text after some url:

    Code:
    location.href = 'http://www.url.com/page?var='+selectedText;
    but i have a problem with GET:
    The server here blocks a lot of words in url, so i wanted to send through post, cause the server ignore POST variables.

    moreover, this code is in a button in my firefox, so i cant use a form to host the variable and then submit it, because the button will take the selection in any open page.

    thanx in advance

  • #14
    New to the CF scene
    Join Date
    Mar 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    no answears... maybe no solution?


  •  

    Posting Permissions

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