Page 1 of 1

Stumped

Posted: Tue May 15, 2007 1:25 pm
by Clumps
Everah | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


Hello all, and thanks in advance...

I have a javascript ("js.js") document that passes the following code...

[syntax="javascript"]function launchPhoto(GalleryID, PhotoID) {
  win = window.open('photo.php?GalleryID=' + GalleryID + '&PhotoID=' + PhotoID,'video', 'width=570,height=570');
  win.focus();
The code is populated from a flash SWF file (GalleryID and PhotoID refer to XML snippets). The code is PASSED to a photo.php document where the browser shows the name changes to photo.php?GalleryID=12345&PhotoID=0 (for example) but the contents of photo.php (namely

Code: Select all

    <param name="movie" value="photoviewer.swf?intGalleryID=&intPhotoID=">
    <param name="quality" value="high"><param name="BGCOLOR" value="#000000">
    <embed src="photoviewer.swf?intGalleryID=&intPhotoID=" width="560" height="560" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" bgcolor="#000000"></embed>

fail to change along with the name of the file (where 'intGalleryID=&intPhotoID' should change to 'intGalleryID=12345&intPhotoID=0 as per the name change of the file itself).

Any ideas why? I'm not sure if this is a problem with the code or what. I'm obviously inexperienced but any assistance would help.

Thanks,
"Clumps"


Everah | Please use[/syntax]

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]

Descriptive subjects

Posted: Tue May 15, 2007 5:12 pm
by feyd
Please update the thread title to be a bit more descriptive.
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:2. Use descriptive subjects when you start a new thread. Vague titles such as "Help!", "Why?" are misleading and keep you from receiving an answer to your question.
It would help us help you to see the code of this photo.php where it outputs the HTML you've posted.