Results 1 to 6 of 6

Thread: view code in new window

  1. #1
    Join Date
    Sep 2007
    Posts
    58
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Wink view code in new window

    i want part of my code from the main page(the same page where the link will be)
    will be shown in a new window...

    for example i got index.htm with 10 lines+link and 4 more lines that will be open in a new window when you will click on the link...



  2. #2
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    Code:
    <a href="/path/to/new/page" target="_blank">Link Title</a>
    is that what you were talking about?

  3. #3
    Join Date
    Sep 2007
    Posts
    58
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default no

    i don't need another page to open in the new window...

    i need the lines that will apear in the new window be on the same page...using only one page

  4. #4
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    so you want to open a page on a different part of the page?

    like in an frame? if so you jsut change the value of target to the name of the frame
    Code:
    <iframe name="something" src="defaultPage.htm>

    if that is still not what you are looking for can you post a url to an example?

  5. #5
    Join Date
    Sep 2007
    Posts
    58
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default no no no

    no i frames...
    i got to inject some how 5 lines into a new window...


    i got to enter some lines into a new window...no frames i need to use only javascript...

  6. #6
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    a new window implies that you have a new instance of the browser. if you are talking about populating a portion of the existing page well that is AJAX, and there are many tutorials out there on the basics of connecting, grabbing, populating data.
    for starters look at http://www.dynamicdrive.com/forums/s...ad.php?t=19247

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
  •