Results 1 to 2 of 2

Thread: Ajax page loaded in DIV push value back

  1. #1
    Join Date
    Nov 2007
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Ajax page loaded in DIV push value back

    SCRATCH THIS REQUEST. I used the Ajax Basic GET & POST techniques instead and have tighter control over what i'm trying to do.

    1) Script Title: Dynamic Ajax Content

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...jaxcontent.htm

    3) Describe problem: I'm using CodeCharge to build this with DD scripts in the mix. I have a listbox that calls the ajax page in the DIV and passes a parameter properly. The parameter is used to look-up a database value and present it in a form on the called page.

    What I'd like to do next is take the values in the fields of the looked-up form and push them back to the calling page/div using an on-load event of an element on the called page.

    I don't know the format for this in javascript to refer back to the calling ?page?

    is it

    document.form.MyForm.TargetFieldName.value=
    document.form.LookedUpForm.SourceField.value

    or does it need 'parent' in front ? or do i need a div with an id in the calling page to refer back to and how?

    thanks to anyone who can help out - the script works great for calling the results page and passing the parameter to it

    Kevin
    Last edited by ddadmin; 11-15-2007 at 10:28 PM.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Are you actually dealing with two separate pages here, or just one physical page, with the contents of another fetched via Ajax (so the previous page is never navigated away from)? With the former, you'll actually have to either rely on cookies or URL parameters to pass info from one page to the next.

Bookmarks

Posting Permissions

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