This seems like such an easy one, but I can't seem to figure it out or find any answers. I think I might be doing something wrong besides the obvious.
I'm trying to replace a particular variable with a string (specifically, a line break). I'm trying this:
[code=javascript]
if (flashsrc.index Of('americancul tist.com') == -1) {
document.getEle mentById('flash input').replace (embedTag, '\n');
}
[/code]
Is there an obvious reason this isn't working for me? It's kind of a mess right now, but I'm uploading the whole page anyway if you care to peruse it:
http://www.americancul tist.com/videosource2.ht ml
What I'm attempting to do here is strip out embed tags that don't come from a certain domain upon form submission. But I don't need a solution to the larger problem for now -- just wondering why this particular step isn't working.
I'm trying to replace a particular variable with a string (specifically, a line break). I'm trying this:
[code=javascript]
if (flashsrc.index Of('americancul tist.com') == -1) {
document.getEle mentById('flash input').replace (embedTag, '\n');
}
[/code]
Is there an obvious reason this isn't working for me? It's kind of a mess right now, but I'm uploading the whole page anyway if you care to peruse it:
http://www.americancul tist.com/videosource2.ht ml
What I'm attempting to do here is strip out embed tags that don't come from a certain domain upon form submission. But I don't need a solution to the larger problem for now -- just wondering why this particular step isn't working.
Comment