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 4 of 4
  1. #1
    New to the CF scene
    Join Date
    May 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Submiting a from residing on a different frame

    What I知 trying to do is submit a form that resides in a different frame than the one I知 executing the command from. I have frames called left, and main. In my left frame I have a page from a different website (that I have no control over) with a form on it. From my main page I知 trying to write code that will submit the form that痴 in the left frame after a certain time expires. I知 not sure if I知 not targeting the frame right or what?

    The forms in the left frame looks like this:
    --------------------------------------------------------------------------
    <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>
    --------------------------------------------------------------------------

    I知 not even sure why there are two forms they both use the same action? But one is totally hidden and one is an actual submit button so all I really want to do is trigger the submit button from my main frame?

    I tried using this:

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

    To automatically submit the form but I get an error stating that: 鼠eft is undefined, so I must not be targeting correctly

    Any suggestions?
    I壇 appreciate any help anyone could offer thanks!

  • #2
    Regular Coder
    Join Date
    Sep 2005
    Location
    Chicago, IL
    Posts
    160
    Thanks
    0
    Thanked 0 Times in 0 Posts
    my question is why are you trying to submit a bulletin on myspace from a different website?
    I'm only telling you how I would do it, not how its supposed to be done. ;)

  • #3
    New to the CF scene
    Join Date
    May 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yeah, i figured that would come up... it's just something i'm trying to figure out... it started as kind of a challenge to myself, because of all the anoying websites that try and trick people into reposting bullitens... but they always required the user to click on a submit button. I always wondered why they didn't just make it automatic... so i tried to build it myself to see if it was even possible (which i'm starting to think it's not)... and now it's just annoying the crap out of me because i can't figure it out.

    so the reason i guess is just to kill my curiosity...

  • #4
    Regular Coder
    Join Date
    Sep 2005
    Location
    Chicago, IL
    Posts
    160
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'd try something like:

    parent.frames["left"].bulletinForm.submit();
    I'm only telling you how I would do it, not how its supposed to be done. ;)


  •  

    Posting Permissions

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