Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
  1. #1
    Senior Member
    Join Date
    Dec 2008
    Posts
    483
    Member #
    17875
    Liked
    1 times
    is something like this possible
    var child=window.open('previewPostCardImage.html');chi ld.document.getElementById('previewPCImg').src="im ages/postcards/lg/cruise01_lg.jpg";

    previewPCImg is the ID of an img tag in the child page (previewPostCardImage.html)

  2.  

  3. #2
    Member
    Join Date
    Aug 2008
    Location
    Chicago IL, USA
    Posts
    83
    Member #
    17217
    couldn't you just open the document and pass a parameter that you can parse in the child window

    var child=window.open('previewPostCardImage.html?image =images/postcards/lg/cruise01_lg.jpg');

    then use javascript in the child window to pull that parameter and insert it into the element's src.
    drew beta - Portfolio, Blog500 - Graduate Studies Blog, WP4P - Blog, Life in Beta - Music Podcast for Nerds

  4. #3
    Senior Member
    Join Date
    Dec 2008
    Posts
    483
    Member #
    17875
    Liked
    1 times
    i COULD do that, but i hate parsing query strings and also the ?image=osakdaoskdosakdosadksaokdosad.jpg is just messy.

    this solution seemed much easier and would be completely done in 1 function with 2 lines of code.

    i hate parsing query strings with javascript, but i guess ill try it if this method is impossible

  5. #4
    Member
    Join Date
    Aug 2008
    Location
    Chicago IL, USA
    Posts
    83
    Member #
    17217
    I know that there is a jquery plugin for communication between windows, so it is possible, I've just never done it before so I couldn't tell you. I found this:

    http://www.mcli.dist.maricopa.edu/tut/tut27c.html

    but it's not exactly what you're looking for. it has the same principle though.
    drew beta - Portfolio, Blog500 - Graduate Studies Blog, WP4P - Blog, Life in Beta - Music Podcast for Nerds

  6. #5
    Senior Member
    Join Date
    Dec 2008
    Posts
    483
    Member #
    17875
    Liked
    1 times
    hey! not quite what i was lookin for, but gave me an idea.
    possibly using

    child.document.write( write out a javascript call here with the dynamic picture name )

    if this works thanks a bunch


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 05:57 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com