HighDots Forums  

variable in Seitenaufruf übegeben

Javascript (German) Programmiersprache JavaScript. (de.comp.lang.javascript)


Discuss variable in Seitenaufruf übegeben in the Javascript (German) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Josef Koller
 
Posts: n/a

Default variable in Seitenaufruf übegeben - 03-30-2008 , 11:39 AM






Hallo,

ich möchte den Wert einer Variablen in einen Seitenaufruf übergeben:


function position(element){
var pos = element.style.top;
document.Form_Pg_Standbuch_top.Zeile_oben.value = pos;
window.location.href='seitensteuerung.php?seite=1& NR=<?php echo
$_SESSION['STAND_ID'];?>&OBEN=120';
}
statt der 120 soll dort der Wert von pos hinein.

Mit OBEN=pos wird lediglich pos übergeben, nicht der Inhalt.

Wie macht man das denn richtig?

danke.

Josef


Reply With Quote
  #2  
Old   
Martin Honnen
 
Posts: n/a

Default Re: variable in Seitenaufruf übegeben - 03-30-2008 , 11:56 AM






Josef Koller wrote:
Quote:
Hallo,

ich möchte den Wert einer Variablen in einen Seitenaufruf übergeben:


function position(element){
var pos = element.style.top;
document.Form_Pg_Standbuch_top.Zeile_oben.value = pos;
window.location.href='seitensteuerung.php?seite=1& NR=<?php echo
$_SESSION['STAND_ID'];?>&OBEN=120';
}
statt der 120 soll dort der Wert von pos hinein.

Mit OBEN=pos wird lediglich pos übergeben, nicht der Inhalt.
window.location.href = 'seitensteuerung.php?seite=1&NR=<?php echo
$_SESSION['STAND_ID'];?>&OBEN=' + pos;


--

Martin Honnen
http://JavaScript.FAQTs.com/


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.