Everybody! This is important. In a few days, these forums will be moving over to using the totally sweet Discourse platform. To ensure this migration happens smoothly with no loss of content, these forums are currently in a read-only mode. I do apologize for the inconvenience.

There is never a good time to turn the forums off for an extended period of time, but I promise the new forums will be a billion times better. I'm pretty sure of it.

See you all on the other side in a few days, and if you have any (non-technical) questions, please e-mail me at kirupa@kirupa.com. For technical questions, try to find a tutorial that corresponds to what you are looking for and post in the comments section of that page.


Results 1 to 5 of 5

Thread: l33t Hax silently sending GET data

  1. #1
    Registered User

    l33t Hax silently sending GET data

    man I had a real hard time i needed to send GET data silently without reloading the page...ajax style... well i found out using GET data the way its intended is neverr gonna work. but a easy cool hack is

    <img src=http://www.url.com/myForm.php?name='joran'&score='55' />

    its really obvious and easy i know still took me like 3 days to stuble onto it.

    Its not a real secure way of sending stuff...may wanna use security tokens and such but i didnt need a secure method of sending...

  2. #2
    foodpk's Avatar
    ask me about being a jerk
    You can send get data with ajax. No problem.
    If you're using jQuery, you just do:
    $.get('something.php?name=something&score=something',function(data) {
        alert('this: ' + data + ' is what i got from the file');
    Last edited by foodpk; July 26th, 2007 at 04:57 PM.

  3. #3
    Registered User
    oh yeah outside the domain thats what was hard that restricts you just to your domain

    I needed a snippet of code that other sites could host

  4. #4
    YOu can still use ajax for that. You just need to change the permissions on the file so that it is executable by everyone. 755 I believe

  5. #5
    Registered User
    well ok a way without setting open permission for the whole php file....(but i didnt know you could do that....I was seriously looking for 3 days for a way to send without reloading or pulling up a page to a different domain ...

    found this and was stoked...but had i known about the permissions i prolly woulda done that...but meh...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Home About kirupa.com Meet the Moderators Advertise

 Link to Us


Copyright 1999 - 2012