kronikel Posted October 8, 2008 Share Posted October 8, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/127491-not-sure-how-to-get-this-working/ Share on other sites More sharing options...
RichardRotterdam Posted October 8, 2008 Share Posted October 8, 2008 are you using this on a myspace page? If so I think myspace doesn't allow inserting javascript into a page Quote Link to comment https://forums.phpfreaks.com/topic/127491-not-sure-how-to-get-this-working/#findComment-659704 Share on other sites More sharing options...
kronikel Posted October 8, 2008 Author Share Posted October 8, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/127491-not-sure-how-to-get-this-working/#findComment-659975 Share on other sites More sharing options...
kronikel Posted October 8, 2008 Author Share Posted October 8, 2008 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... Quote Link to comment https://forums.phpfreaks.com/topic/127491-not-sure-how-to-get-this-working/#findComment-660244 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.