SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Mar 2005
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to pass variable to popup windows

    Good days to all of you!

    Any one can teach me how to pass the variable from page to popup windows and without showing the address(third party URL)?

    it is possible to do that?

    Actually i'm sending sms from webpage to mobile phone but the thing is i'm using third party server to send the SMS so once i click the button to process then the page will automatically jump to third party URL.

    I want to do the vb/java script pass the variable which is the mobile phone number from SQL server and send it. But i don't know how to pass the variable.

    Somebody help pls!!!

  2. #2
    SitePoint Evangelist SpaceFrog's Avatar
    Join Date
    Jan 2005
    Location
    Outerspace
    Posts
    511
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    just discovered one possibility is to lean on navigator by assinging navigator objects ...


    assign variable to navigator objetc in main window:
    Code:
    navigator.var1="my first variable"
    retrieve variable in popup
    Code:
    alert(navigator.var1)
    I have not tested crossbrowserness of this though ...

  3. #3
    SitePoint Evangelist SpaceFrog's Avatar
    Join Date
    Jan 2005
    Location
    Outerspace
    Posts
    511
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have to precise this is far from being the classic way of doing it but I find it awesome !


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
  •