![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Feb 2007
Posts: 6
Rep Power: 0
![]() |
var codeofheight
hi
i dont know how it works in JS but in PHP is var codeofheight = "<?php echo $codeofheight; ?>"; but i need it in JS... the opossite of this code ![]() thnx |
|
|
|
|
|
#2 |
|
Programming Guru
![]() Join Date: Apr 2005
Posts: 1,730
Rep Power: 5
![]() |
Re: var codeofheight
A cryptic question... "The opposite of this code"?
I'm going to take a wild stab in the dark, and guess you're trying to do something like... <?php $my_variable = <Something Coming From Javascript> ?>So rather than in the code you posted, where JS obtains a value from PHP. Instead, you want PHP to obtain a value from JS? Look into "AJAX". It's used to send data from Javascript to PHP. It's not as straightforward as the inverse in your first post, but it will get the job done. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| compile a var name from another var | dpsleep | JavaScript and Client-Side Browser Scripting | 6 | Oct 19th, 2007 10:52 AM |