|
Posted by J.O. Aho on 10/11/86 11:54
Ian Davies wrote:
> 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?
you add it to the form, when you load the page for the first time, the input
line will be there, but as long as it's not been submitted there aren't any
$_REQUEST['updated'].
>> 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.
As I don't touch javascript, this will be updated each time you submit the new
values (no dragging of text sorry).
If you want to use javascript, then you need to write a code (javascript) that
updates the input fileds, but how you have to ask the javascript group.
If would do something like this, I think I would have selected to make a JAVA
applet. http://java.sun.com/docs/books/tutorial/uiswing/components/applet.html
//Aho
Navigation:
[Reply to this message]
|