NoCoolHandle
Programmer
Hi.
I have a page that has two seperate script blocks. One contains variables I need to use in the other.
This works in IE 5,6 - Safari Windows and Mac, - Opera Windows and Mac.
In firefox it doesn't..
Basic idea below
I have a page that has two seperate script blocks. One contains variables I need to use in the other.
This works in IE 5,6 - Safari Windows and Mac, - Opera Windows and Mac.
In firefox it doesn't..
Basic idea below
Code:
[blue]<[/blue][maroon]script[/maroon] [red]type[/red][maroon]=[/maroon][blue]"text/javascript"[/blue][blue]>[/blue]
[blue]var[/blue] x = [maroon]"test"[/maroon];
[blue]</[/blue][maroon]script[/maroon][blue]>[/blue]
[blue]<[/blue][maroon]script[/maroon] [red]type[/red][maroon]=[/maroon][blue]"text/javascript"[/blue]>
[green]// this works in everthing except firefox[/green]
[blue]alert[/blue](x);
[blue]<[/blue][maroon]script[/maroon][blue]>[/blue]