Hallo,
Ik heb het volgende javascriptje. Mijn vraag is hoe ik een tweede php variabele aan de url kan toevoegen:
aanroep in php
de functie in javascript
Dus dan wordt mijn code in php:
en in de functie:
Iemand een oplossing? Alvast bedankt
Ik heb het volgende javascriptje. Mijn vraag is hoe ik een tweede php variabele aan de url kan toevoegen:
aanroep in php
PHP:
1
| [img]"../CSS/gfx/questionmark.jpg"[/img]');" style="cursor: hand" border=NO title="Help"> |
de functie in javascript
JavaScript:
1
2
3
4
5
6
7
8
9
10
11
12
13
| <script language="javascript1.2"> <!-- function openhelpwindow(url,helpID) { b=500 h=400 x=300 y=10 url=('help.php?helpID='+helpID) window.open(url, '', "location=no,width="+b+",scrollbars=yes,height="+h+",toolbar=0,status=0,resizeable=0,location=0,directories=0,left="+x+",top="+y) } //--> </script> |
Dus dan wordt mijn code in php:
PHP:
1
| [img]"../CSS/gfx/questionmark.jpg"[/img]','<?echo$var2;?>');" style="cursor: hand" border=NO title="Help"> |
en in de functie:
JavaScript:
1
2
3
4
5
6
7
8
9
10
| <script language="javascript1.2"> <!-- function openhelpwindow(url,var1,var2) { b=500 h=400 x=300 y=10 url=('help.php?helpID='+var1....... en dan???? </script> |
Iemand een oplossing? Alvast bedankt