Jump to content

SergeiSS

Members
  • Posts

    239
  • Joined

  • Last visited

Everything posted by SergeiSS

  1. I also don't know how to ask google about this task But I can direct you, I give you an algorithm. 1. You need daemon at your server. It could be PHP daemon. 2. This daemon must receive your request to start that lengthy procedure and start it. 3. Daemon answers to browser that it has started your task. 4. Your JS script will periodically ask (via AJAX) that daemon about the state of the task. 5. While in process it returns one state, when finished it returns another state. You may use ajax or WebSocket to connect JS script and server. The second one, I think, is preferrable for this task, because server can send to the browser any information without additional requests.
  2. Everyone can remove this code and you won't get to know that script was used.
  3. I think I understand what you like to do. 1. Use normal AJAX. 2. Another possibility - iframe, hidden iframe. Just create your URL (in JS) and set iframe's SRC equal to this URL. Script will be loaded into this iframe. Moreover, you may send some JS commands from iframe to the main frame in order to get the feedback.
  4. Do you know about PrintScreen button? It's better to use it than your camera in order to show the screen About your question. Try to set style = "width: 100%;position: fixed;bottom: 0px;" for the div with id="sub_wrap". It might help you - phone and e-mail will be always at the bottom of the screen.
  5. What is the meaning of the last qoute in this line? You have incorrect syntax here Maybe this is the only problem? Also, you insert raw POST data into the MySQL. It's bad! Then... What for do you "require_once 'header.php';" in 2 places???
  6. Well... I see PNG in the data. But you try to use it as JPEG. Maybe this is a problem? Try to change header("Content-type: image/jpeg"); to header("Content-type: image/png");
  7. Just imagine - you take your phone, dial number and called subscriber answered. After that you may talk to that man. Internet connection is similar to phone call. First you need a connection and when this connection is established two programs (client and server) may talk. In other words your question is "Is it possible to talk to a remote person without making a call to his phone?" What can you answer to this question?
  8. It's easy to do 1. onsubmit="return false;" you should remove that - as it was said earlier. 2. Create a function to submit a form. Let it be form_caller(). This function have to set a special JS variable (V) and then call submit() function for a from. 3. Create second function, let's name it submit_check. It checks the state of special variable V and return true if V is set and return false otherwise. 4. Write for the form onsubmit="return submit_check()". 5. It's ready. If you press Enter, submit_check() is called and return false. Form is not submitted. If you call form_caller(), then submit_check() will return true and form will be submitted. I hope that this explanation in clear enough.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.