Results 1 to 5 of 5

Thread: Need help with modeless window

  1. #1
    Join Date
    Aug 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Need help with modeless window

    Is there a way to modify the modeless window script for a button rather than a text link?

    Thanks in advance.

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    <button onclick="modelesswin('http://yahoo.com',600,400)">Click Here</button>
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Aug 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ok- I'll give it a try- Thank you

  4. #4
    Join Date
    Aug 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi Twey,

    I tried your suggestion on a blank page (as I always do) and it does work but only if I leave the two statements in like this:

    <a href="javascript:modelesswin('http://yahoo.com',600,400)">Click here</a>

    </script>

    //<button onclick="modelesswin('http://www.lambdals.com/newpayplan.html',600,400)">Click Here</button>

    </script>


    which I don't mind except that when I test it, the modeless window pops up at the same time as the button does. If I close the window and click on the button, then my info box pops up as it should.

    Taking the statement:

    <a href="javascript:modelesswin('http://yahoo.com',600,400)">Click here</a>

    </script>

    out won't allow my button to show. Weird!

    I know enough about javascript that I can take a stock script and make it do what needs to be done, 'cept this time!

    Any Ideas or should I post this message to the forum?

    Thanks for your help.

    Kronos

  5. #5
    Join Date
    Aug 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hello again,

    Problem solved. I took this statement out:

    //configure URL and window dimensions (width/height)
    modelesswin("http://yahoo.com",600,600)

    Now it does what I need it to do.

    Thanks for your help

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
  •