You are here: Re: cross platform problem - advice needed « All PHP « IT news, forums, messages
Re: cross platform problem - advice needed

Posted by Ian Davies on 10/11/17 11:54

"J.O. Aho" <user@example.net> wrote in message
news:4j81k6F6qki9U1@individual.net...
> 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
>


Hello
Java Applets are new teritory for me. I will take a look at your link and
see what they are all about perhaps they can help.
Regarding my orginal problem. I think Ive cracked it. Its to do with
the'relative' bit in the style. it limits how widely the bits of text can be
moved arround. I found that putting <br> between each seems to help but it
still means that they can only move around within their natural order.
Unfortunately changing it to absolute will only solve the problem if one
record is dispayed. but because I have many records populating a table using
absolute dumps them all on top of each other.

Looks like I will have to use relative and allow less manipulation by the
user

Ian

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация