Using JavaScript To Submit Form On Opposite iFrame [myspace]

Discussion in 'JavaScript' started by SgtShtTheFckUp, Mar 15, 2007.

Thread Status:
Not open for further replies.
  1. #1
    im a bit of a n00b at posting threads and javascript, but the bottom line is, i want to be able to open the myspace "bulletin post" page in an iFrame and have javascript automatically submit the bulletin upon entrance of the page. i have some javascript i retrieved from a seperate forum, but im not quite sure how to set up the iFrames, or where to put the Script. any help would be appreciated. if you have a myspace, you can contact me on my profile, or just post a reply

    myspace.com/164746559


    ==============================================

    this is the code in its entirety:



    <form action="http://bulletin.myspace.com/index.cfm?fuseaction=bulletin.update&Mytoken=EA13A575-144C-11F7-26E35577D78FD35821079801" method="post" onSubmit="return singleClick();" name="bulletinForm">
    <input type="hidden" name="groupID" value="0">
    <input type="hidden" name="hashcode" value="MHsGCisGAQQBgjdYA/+gbTBrBgorBgEEAYI3WAMBoF0wWwIDAgABAgJmAwICAMAECLWw7daKGmXJBBDKi+f/N8Hpa62yEvzQgKNeBDC3m6GOQKqTSjAKnYFmu3BNu8TeIqpBvzrrXaygR3OK6O8grY3ikUIjaVrdlCXPIh4=">
    <input type="hidden" name="hash" value="6308J150O169O160O160O153O168O157O162">
    <input type="hidden" name="subject" value="blah">
    <input type="hidden" name="body" value="This%20is%20my%20text">
    </form>


    <form>
    <input type="button" value="Post Bulletin" onclick="bulletinForm.action='http://bulletin.myspace.com/index.cfm?fuseaction=bulletin.update&Mytoken;bulletinForm.submit();">
    </form>




    =================

    <script language="JavaScript" type="text/javascript"><!--
    setTimeout('left.bulletinForm.submit()' ,15000);
    //--></script>

    =================

    parent.frames["left"].bulletinForm.submit();


    ===========================
    thanx in advance.
     
    SgtShtTheFckUp, Mar 15, 2007 IP
  2. JoshuaGross

    JoshuaGross Peon

    Messages:
    411
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can't manipulate sites within an iframe if the site is on a different server than the JavaScript code.
     
    JoshuaGross, Mar 15, 2007 IP
  3. SgtShtTheFckUp

    SgtShtTheFckUp Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanx JoshuaGross, but ive seen it done b4... i dont know how, and i was too stupid to grab the source code! :)
     
    SgtShtTheFckUp, Mar 15, 2007 IP
  4. JoshuaGross

    JoshuaGross Peon

    Messages:
    411
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If they were using a proxy or something on the same server, they could have done it that way. But one of the security restrictions of Javascript is what I said above. There's no way to get around it (and I did a LOT of research) unless you modify the browser itself (yeah right), use a server-side proxy (can be a pain), or incorporate Flash.
     
    JoshuaGross, Mar 15, 2007 IP
  5. SgtShtTheFckUp

    SgtShtTheFckUp Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    flash... i like that... any suggestions on how to do that? simple, or difficult??
     
    SgtShtTheFckUp, Mar 15, 2007 IP
  6. JoshuaGross

    JoshuaGross Peon

    Messages:
    411
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #6
    JoshuaGross, Mar 15, 2007 IP
  7. SgtShtTheFckUp

    SgtShtTheFckUp Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    will do... ill check them both out and see what i can do... remember i am a n00b
     
    SgtShtTheFckUp, Mar 15, 2007 IP
  8. SgtShtTheFckUp

    SgtShtTheFckUp Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    does the XML HAVE to be on the myspace server???i cant host it at freewebs or something...?

    thanx in advance for any advice...
     
    SgtShtTheFckUp, Mar 15, 2007 IP
Thread Status:
Not open for further replies.