|
Posted by Ian Davies on 10/11/37 11:54
Thanks for your response Aho
> First of all you should have some default starting points, as you already
> have. Store those into variables, as $xh1=40;, you will also need to check
if
> the page has been updated or show for the first time, you can add the
>
> <input name="updated" type="hidden" value="1">
>
> to your form
How will this value =1
remain. wont it disapear when the browser is closed. meaning that if the
user visits again it will not remember him? or have I missuderstood?
> in your php you will need to make a check something like
>
> if($_REQUEST['updated']==1) {
> $xh1=$_REQUEST['xh1'];
> } else {
> $xh1=40;
> }
>
> Then you have your inputs in html
>
> <input name="xh1" class="BodyText" value="<?PHP echo $xh1;>" size="1"
type="text">
>
> You should include the css code that handles the location of the text in
the
> php file, and with usage of php in the same manner that in the input tag,
you
> will dynamically change the coordinates in the css/style part of the code.
This last bit sounds interesting, but Im not clear what you mean? Do you
know how to retreive the coordinates of the position the user dragged the
text to and put them in the text boxes? The drag bit of the code I used was
taken from elswhere and my java script isnt up to much. What I really whish
to do is to have the text boxes update continuously as te text is dragged so
that it is constantly displaying the new coordinated.
Navigation:
[Reply to this message]
|