The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

I've been asking and asking

I've been to three other forums and they were anly able to help me a bit.

see some one gave me this code it works well but I wanted to add something else. what I added should work but wont. I got a bit of help from another forum and they were able to find out if the href value from the clicked links made it to the var retry. Turns out it's undefined unless it's window.retry

but it still seams that the player doesn't get the value.
here's the code. I was worrkied it wasnt set up right.code I was givven awile agowhat I addedthe way I was told to set it up

Can you just state what you're trying to accomplish? That code is convoluted and difficult to understand (at least for me). So if you tell us what you want to do, we can try and come up with a better and simpler method.

the object seasons find out of if a link's class is equal to linksclass2.

what iwas trying to do if have links from a particular class open a div and send their href value to a embed player. the player uses object and embed tags to be cross browser.

when I'm done I'm going to use a quicktime an windos media player detection script to switch players using an I frame so some wher in the script it will have some thing like this if (linkclasstwo && hasQt){do something}else if (linksclass2 &&hasWMP){do something else}

It's cross-browser. It sends the contents of the href attribute of the link that was clicked to the object/embed tag. If it's in an iframe, you have to target it via the iframe's name, I think. I have little experience with frames or iframes.

you should play around with this because in IE I get the error getElementsByTagName('....')[0] is null or not an object. That really getElementsByTagName('embed')[0]

in fire fox it plays the right thing. This is really strange. oh by the way in my old code it had other methods like if you want to have another link class dosomething else with out having to write out the same function so i just use more if else statements I really wish I could have turned this back in to an object but it will not work that was for some strange reason.

okay now for my last question. I have a quicktime dectection script. is there a way to attack it to the function so I can put a if statement between mP.style.display = 'block'; and the object and embed tads because i want to have it call one frame if lets say I have quicktime and another if I have WMP. here is the detection code. I'm worried I can't call another functions variable here.

Okay, okay but this will not work in IE. the last block of text is my whole page. but it's better if you download it because I've made some changes. I have no idea why it won't work. please I'm so close to having this 5 month problem fixed.

It should work correctly if it's in the <head>. That's what the window.onload { } stuff is for. If you put it in the body that's not necessary, but javascript should go in the <head> anyway. That's it's proper place.

What is mP? I have no experience referencing other frames, but I thought that if the frame has name="playerframe" doing playername.propertyis like doing window.property in that scope, so that's how you reference frames. So there shouldn't be any parent object to it (like this "mP" thing).