Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorkmg
    • CommentTimeOct 26th 2006 edited
     permalink
    nevermind
    •  
      CommentAuthorJohnRiv
    • CommentTimeOct 26th 2006
     permalink
    A test page would be useful in this situation so we can see what you're trying to do exactly. If by "pop up form" you mean a popup window with a form in it, then you're probably going to want to look into window.opener, not document.referrer.
    • CommentAuthorkmg
    • CommentTimeOct 26th 2006 edited
     permalink
    ok
    •  
      CommentAuthornifkin
    • CommentTimeOct 26th 2006 edited
     permalink
    also: you'll need to take that filthy colon out of the ID (and preferably NAME too) attribute(s) if you want any kind of scripting to work.
    •  
      CommentAuthorJohnRiv
    • CommentTimeOct 26th 2006 edited
     permalink
    First off, change the id of the textarea to "message" so it matches the name and doesn't conflict with the ID of the form. Then apply this script:

    if(window.opener) {
    document.forms[0].message.value = window.opener.document.location;
    }
    • CommentAuthorkmg
    • CommentTimeOct 26th 2006 edited
     permalink
    thanks for your reply JohnRiv - i thought i understood this script but cant get it to work
    •  
      CommentAuthorJohnRiv
    • CommentTimeOct 27th 2006
     permalink
    setup the script to run once the popup is finished loading and it should populate the textarea (with both name & id equal to "message") with the URL of the page that opened the popup
    • CommentAuthorkmg
    • CommentTimeOct 27th 2006
     permalink
    thanks you a life saver - John got it working
    • CommentAuthorljromanoff
    • CommentTimeOct 27th 2006
     permalink
    In future please don't edit out the initial post even if the problem is solved. Some of us like to read this stuff, you know.
    •  
      CommentAuthorJohnRiv
    • CommentTimeOct 27th 2006 edited
     permalink
    glad to hear it's working for you now, kmg

    ditto to what ljromanoff said... this board is designed to help others, and if one person encounters a problem, it's likely others will as well, so it's best to leave your posts unedited so others with similar issues can instantly find the solutions they're looking for without having to post about topics that have already been discussed.

    as for what this thread was about (so others will know), kmg had a popup window with a form and when the popup window loaded, he needed to populate a textarea in the form with the URL of the webpage that opened the popup window
    • CommentAuthorpaola
    • CommentTimeOct 29th 2006 edited
     permalink
    I have been banned cause I'm an idiot
    Adperform one of the leading media agancies in the internet market today is looking for good sells people and java c++ experimented people.

    Go to www.adperform.com and send your full details.
Add your comments
    Username Password
  • Format comments as (Help)