HOW TO: create pop up window....

Last post 11-20-2008 1:54 PM by NC01. 8 replies.

Sort Posts:

  • HOW TO: create pop up window....

    11-20-2008, 6:52 AM
    • Member
      32 point Member
    • mlgrin
    • Member since 11-02-2008, 4:37 PM
    • UK
    • Posts 97

    Hi, I have created a pop up window using the following code:

     <a href="Index.aspx" onclick='window.open("special.aspx?id=1",null,"height=400,width=500,status=yes,toolbar=no,menubar=no,location=no");'>Take a test</a>
    this works fine, except its not actually what i want.
    what i am actually looking for is, on this forum when u type up a question there is a button called SOURCE CODE.. on the far right. that window that pops up like that is what i want to create.
    there will be a link on the home page saying TAKE A TEST and then in the pop up window will be about 5 questions.
     
    help.. Huh? 
  • Re: HOW TO: create pop up window....

    11-20-2008, 9:25 AM
    • All-Star
      20,694 point All-Star
    • A1ien51
    • Member since 05-06-2005, 6:46 PM
    • MD USA
    • Posts 3,808

    What is wrong with the code above? If you want to cancel the link action, add return false to the end.

     Eric

  • Re: HOW TO: create pop up window....

    11-20-2008, 9:35 AM
    • Member
      32 point Member
    • mlgrin
    • Member since 11-02-2008, 4:37 PM
    • UK
    • Posts 97

     hi, thanks for the response... but that doesnt change anything...

  • Re: HOW TO: create pop up window....

    11-20-2008, 9:46 AM
    • All-Star
      77,437 point All-Star
    • NC01
    • Member since 08-26-2005, 3:33 PM
    • Posts 14,442
    • TrustedFriends-MVPs

    Not sure that I understand what you want either. Please list exactly what you are trying to do in more detail.

    NC...

     

  • Re: HOW TO: create pop up window....

    11-20-2008, 1:22 PM
    • Member
      32 point Member
    • mlgrin
    • Member since 11-02-2008, 4:37 PM
    • UK
    • Posts 97

     ok, i am trying to get a pop up screen. but not a normal window like i did with the code above. i have tried finding examples, but now cannot remember any sites offhand.

    the best example is right here on this site.

     when u typing a post, click on the button called source code, by the smily toolbar...  i want a window that pops up like that..... where i will have some text and some radio buttons with yes and no text. and a close button. thats it... is it possible?

     

    thank you

      
  • Re: HOW TO: create pop up window....

    11-20-2008, 1:23 PM
    • Member
      32 point Member
    • mlgrin
    • Member since 11-02-2008, 4:37 PM
    • UK
    • Posts 97

     also the pop up screen will pop up from a link, for example

     

    click here, pop up appears (not taking the user away from their current page)... 

  • Re: HOW TO: create pop up window....

    11-20-2008, 1:36 PM
    • All-Star
      77,437 point All-Star
    • NC01
    • Member since 08-26-2005, 3:33 PM
    • Posts 14,442
    • TrustedFriends-MVPs

    You've got to create that look. There is no ready made solution to do all of that.

    NC...

     

  • Re: HOW TO: create pop up window....

    11-20-2008, 1:43 PM
    • Member
      32 point Member
    • mlgrin
    • Member since 11-02-2008, 4:37 PM
    • UK
    • Posts 97

     how do u create that look? doesnt have to be exactly like that... is there a way?

  • Re: HOW TO: create pop up window....

    11-20-2008, 1:54 PM
    • All-Star
      77,437 point All-Star
    • NC01
    • Member since 08-26-2005, 3:33 PM
    • Posts 14,442
    • TrustedFriends-MVPs

    I suggest that you start here: http://quickstarts.asp.net/QuickStartv20/default.aspx

    NC...

     

Page 1 of 1 (9 items)