java-php-java data transfer

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • unicorn
    New Member
    • Sep 2006
    • 23

    java-php-java data transfer

    I've learn PHP and now I need to use Java. I've read some books about javascript and I want to create web-site where only visible pictures will be loaded (using scroll bar applets and MySQL database). I need to know how to transmi data between PHP and aplet that gives me position of "thumb".

    I'll appriciate your help.
    thank you
  • steven
    New Member
    • Sep 2006
    • 143

    #2
    Originally posted by unicorn
    I've learn PHP and now I need to use Java. I've read some books about javascript and I want to create web-site where only visible pictures will be loaded (using scroll bar applets and MySQL database). I need to know how to transmi data between PHP and aplet that gives me position of "thumb".

    I'll appriciate your help.
    thank you
    Java is not JavaScript

    Which do you wish to use?

    Only visible pictures will be loaded? You will have to be less vague if you want help. =]

    Comment

    • unicorn
      New Member
      • Sep 2006
      • 23

      #3
      I need JavaScript for viewing images from sql. I think that it would be better if I use PHP but i dont know how. I'm using scroll applets and i wont to view (load) pictures that are visible and preload pictures that are near that area. but scroll bar has to show whole label for all pictures.

      Comment

      • unicorn
        New Member
        • Sep 2006
        • 23

        #4
        I want to load only that pictures that can be viewed in screen (for example if screen resolution is 1024x768 and i can fit only 4 pictures but i have 100 of them, I dont want to load all of them). and scrollbar should view label for all pictures. thus i'll save my traffic.

        Comment

        • steven
          New Member
          • Sep 2006
          • 143

          #5
          Originally posted by unicorn
          I want to load only that pictures that can be viewed in screen (for example if screen resolution is 1024x768 and i can fit only 4 pictures but i have 100 of them, I dont want to load all of them). and scrollbar should view label for all pictures. thus i'll save my traffic.
          Use the LIMIT clause of MySQL to limit the number of results you pull.

          You can use a count query to find out how many images you have, then use LIMIT to only get maybe 4 THUMBNAILS at a time. Then use javascript to preload the fullsize images?

          There are different ways of doing it, but I think I would explore this one first.

          Comment

          • unicorn
            New Member
            • Sep 2006
            • 23

            #6
            thanks, i know how to use MySQL in php, how to retreave lists of needed pictures. I dont know hot to transmit this list of pictures from PHP to JavaScript (applet)

            Comment

            • unicorn
              New Member
              • Sep 2006
              • 23

              #7
              okay, i can transmit my pictures sql list through php to JavaScript. how can I put this list from Javascript into APPLET?

              Comment

              Working...