![]() |
|
#1
|
||||
|
||||
Passing parametersthis works
JAVA Code:
this doesn't work.......... whY???? please help JAVA Code:
__________________
Xrum! |
||||
|
#2
|
||||
|
||||
Re: Passing parametersThat's actually Javascript as you probably know... and someone in the Miscellaneous languages forum might could help you better (as Javascript is quite different from Java). However, if you go into a little more depth as to what it's doing and what you are expecting it to do... maybe I can help. I have a little (and I emphasize "little") experience with Javascript.
It looks like you are calling everything properly? When you call the function, does an alert box come up printing the URL that is being passed? That should at least work. And why is that in there by the way... were you just using it for testing purposes? __________________
If practice makes perfect and nobody's perfect... why practice? Homepage: http://www.treywhite.com Blog: http://www.treywhite.com/blog.php Web Design Company: http://www.ewebproductions.com |
|
#4
|
||||
|
||||
Re: Passing parametersThis should get you started:
I did have to change a few things: 1. in the script tag, I changed 'language' to 'type' 2. in window.open, scrollbars should have yes or no 3. I used a docString variable to build a string to then use the write function once. This was necessary to get the passed-in url to the 'src' value of the embed tag. I could have use a string to simply build the embed tag, but it seemed a little easier to build it all at once [yes, some of those could have been combined to make it shorter]. Place another alert before the write, passing docString as the argument, to view the string. Also, notice the escape sequence \" before and after the url assignment to get those in place around the url string passed assigned to src. Code:
Last edited by LuciWiz : 05-Mar-2006 at 07:17.
Reason: Edited code tags (on Poster's request)
|
|
#5
|
||||
|
||||
Re: Passing parametersHey Turbo... Javascript does have the += operator doesn't it
__________________
If practice makes perfect and nobody's perfect... why practice? Homepage: http://www.treywhite.com Blog: http://www.treywhite.com/blog.php Web Design Company: http://www.ewebproductions.com |
|
#6
|
||||
|
||||
Re: Passing parametershello,
it's me again another problem.... if i click on a video - it works, but then if i try to play another one it breaks, and gives me an error this is the errors:"The calle(server[not server applicaton]) is not available and disappeared; all connections are invalid. The call did not execute" so for me to play the other video, i have to refresh the main site,and then it works. why does it do that? here is my code: Code:
__________________
Xrum! |
|
#7
|
||||
|
||||
Re: Passing parametersHave you tried using the OBJECT HTML tag as opposed to the EMBED tag?
__________________
If practice makes perfect and nobody's perfect... why practice? Homepage: http://www.treywhite.com Blog: http://www.treywhite.com/blog.php Web Design Company: http://www.ewebproductions.com |
|
#8
|
||||
|
||||
Re: Passing parametershello,
it's me again i keep finding new ways of doing this, and every time i do it, i get a new problem. now - everything is peachy with the wmv files, but the mpg don't play. does anyone know of a good (free) program tha would let me convert mpg to wmv? or is that even possible? __________________
Xrum! |
|
#9
|
||||
|
||||
Re: Passing parametersI've never used this before... it was just first on a google search, but it looks like some good software. It has a 15-day free trail. See if it does what you want.
http://www.blazemp.com/convert_mpeg_to_wmv.htm __________________
If practice makes perfect and nobody's perfect... why practice? Homepage: http://www.treywhite.com Blog: http://www.treywhite.com/blog.php Web Design Company: http://www.ewebproductions.com |
|
#10
|
||||
|
||||
Re: Passing parametersI think that Javascript has += and ++ operators.
|
Recent GIDBlog
Not selected for officer school by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| passing parameter | likeit | C Programming Language | 4 | 27-Jul-2005 07:33 |
| Trouble passing STL into a function | Clive73 | C++ Forum | 5 | 10-May-2005 18:00 |
| parameter passing? | jheron | C++ Forum | 15 | 02-Mar-2005 05:04 |
| Passing referance and passing pointer | Poolan | C++ Forum | 6 | 29-Oct-2004 07:18 |
| passing parameters between forms | eeschumann | MySQL / PHP Forum | 4 | 31-Oct-2003 00:12 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The