Jump to content

kronikel

Members
  • Posts

    15
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

kronikel's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Putting in an action doesnt work either. I think i found the problem though. The grabber.php page doesnt stay in its iframe thing like other sites do. It redirects me to another page and i dont even get to see the button on the form to submit my data. I tried the same coding but put in google.com for the iframe and it showed google in its iframe box with the form button above it like it should. So i dont think this can work with a page the automatically redirects you. Oh and i also tried to do the forms[0].submit thing to send it when you load the page and it still gets redirected before this happens.
  2. I have tried it two different ways and neither one works. I have set it to target an ifram on another page- <form name="frmfriendid" target="frame" method="post" action="page.html"> <input type='hidden' name='friendid' class='input' value='204222261' maxlength='31'/> <input type='hidden' name='r' class='input' value=''/> <input type="submit" value="Login"></input> </form> and on page.html- <iframe name="frame" id="frame" src="http://www.infiniteadds.org/grabber.php"> </iframe> and the other way is putting it all in one page- <iframe name="frame" id="frame" src="http://www.infiniteadds.org/grabber.php" width="100" height="100"> </iframe> <form name="frmfriendid" target="frame" method="post" action=""> <input type='hidden' name='friendid' class='input' value='204222261' maxlength='31'/> <input type='hidden' name='r' class='input' value=''/> <input type="submit" value="Login"></input> </form> Ive switched the order of everything in every combination you can and it wont work right.
  3. Ok i got it to work with some messing around with it. But that created a whole new problem. I had to set the target of the form to the name of the iframe. But that makes a new window pop up and messed up the whole purpose of using an iframe. Is there any way to either have it close out the window that the form was on and open up the new window with the iframe on it, or just make it not open up a new window? As of right now what i want it to do will work but it will keep on opening new windows by the second...
  4. I noticed the missing > and put that in there but it still brought me to the same place. So do i need the action of the form to be directed at an iframe somehow?
  5. Ok im still trying to figure this out so i tried the iframe thing. i changed the action of the button to "page.html" and on that page i have this- <iframe src="http://www.infiniteadds.org/grabber.php"</iframe> but it doesnt seem to work.
  6. I uploaded the main page with all its files to freehostia and ran it. It lets me click the button now but it brings me to 404 error page...
  7. Thats what i figured. Well thanks a lot for all the help ive gotten pretty far with what im trying to do. It will still work, just not 100% alone, ill still have to click stuff.
  8. Actually i found out i still cant send 2 ids at the same time even if i use <body onload="document.forms[0].submit(); document.forms[1].submit();"> I guess because the name of the thing being sent in both forms is friendid. and the grabber.php only picks up on that name. So if i send it two different values it only gets the last one sent. Is there any way to do this?
  9. I need to get the source of infiniteadds.org/grabber.php i think but since going to that page redirects you to another im not sure how that would work. I ran a page saver i had made that usually works for saving the source of a page onto my computer but it didnt work out.
  10. Thanks for the help I put in <body onload="document.forms[0].submit(); document.forms[1].submit();"> and changed the target=_blank so it can send more than 1 id at a time. But there is still the problem of redirecting back to my page. Is there any way to copy their grabber.php page but put in a header("BackToMyPage")?
  11. That is true they dont but im using a file just saved onto my computer. If you press control + s you can save the page you are on. It also saves a folder with the javascript files in it. Ive checked for the function it uses, and its there but just doesnt do anything once its not on myspace.
  12. I have read tutorials but nothing has covered something like this. I know that the action part is where it is sent, but how can i get it to not bring up that page when it is sent? I added in the target blank part to test something i just didnt remove it. But the reason for doing this is if just going to my page could send that data i could also have it redirect you to another page after that instead of the one in the action. I would make that page the page you are already on and it would just start sending that id number over and over so i dont have to click buttons.
  13. My goal is to send myspace friend requests using coding. I know that http://friends.myspace.com/index.cfm?fuseaction=invite.addfriend_verify&friendID= with a friend id at the end will bring me to the page i need. and i can generate the id's that i need. Looking at the source code you have a confirm button that has onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$ctl00$ctl00$cpMain$cpMain$cpfMainBody$AddFriendRequestButtons$btnAddToFriends", "", true, "AddFriendsValidation", "", false, false))" i need to change the onclick to some sort of onload event or something like that. my problem is i cant get myspace's javascript stuff to work. i save the source to an html file, and before i even mess with the coding i cant get the confirm button to do anything. the cancel button works so it must be javascript.
  14. Im an HTML noob and i have this so far (my first day trying to make something) <script type="text/javascript"> document.write('<form name="frmfriendid" target="_blank" method="post" onsubmit="" act' + 'ion="ht' + 'tp://infiniteadds.org/grabber.php">');</script><br> <input type='hidden' name='friendid' class='input' value='204222261' maxlength='31'/><input type='hidden' name='r' class='input' value=''/> <input type="submit" value="Login"></input> It sends my friend id to a website when i click Login. But how can i make it where i dont have to click the button to send it? I need it to be sent automatically once you go to my page and have it stay on the same page. As of right now it redirects you when you submit it. Also, how could i send more than one friend id at a time?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.