Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

HTTP callback ??

  • 20-08-2010 9:50pm
    #1
    Registered Users, Registered Users 2 Posts: 2,236 ✭✭✭


    Hi Guys,

    I'm not sure if "HTTP Callback/Postback" is the correct term for what I want to do..

    I'm developing an application where I would like a small new browser window to open to select a person from a list. I then want to be able to select that person and send the selected value to a form item in the parent (main) window.

    What exactly is this process called and how is it achieved? Will I need javascript?

    Cheers..


Comments

  • Registered Users, Registered Users 2 Posts: 515 ✭✭✭NeverSayDie


    Yeah, achieving this is just a basic Javascript thing, nothing to do with HTTP posts or callbacks and the like.

    Far as I recall, you can reference an "opener" document/object in your Javascript, which will refer to the window that created the current window. In your case, you can use that in your child window to reference controls on your parent (main) page, and pass data into them. A google for "Javascript child window to parent" or some such should turn up plenty of tutorials.


  • Registered Users, Registered Users 2 Posts: 7,518 ✭✭✭matrim


    You could also try something like thickbox \ jquery to do similar. It's not opening a new window but a form or similar in a in iframe popup. See the ajax examples here for details. In particular the Ajax content - Login Modal example


  • Closed Accounts Posts: 18,163 ✭✭✭✭Liam Byrne


    You don't even need a window or a thickbox.

    Just use jQuery to do a $.get.....it'll return the output of the script in a variable, and you can write that variable to an existing div on the page.


  • Registered Users, Registered Users 2 Posts: 2,236 ✭✭✭techguy


    Three interesting approaches. I'll look into them all.

    Cheers!


Advertisement