Jump to content

codingmasterRS

Members
  • Posts

    155
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

codingmasterRS's Achievements

Member

Member (2/5)

0

Reputation

  1. Hi guys, quick question. I have a domain mydomain.com I have a dedicated hosting account with two IPs. (IP e.g., 10.1.1.1 and 10.1.1.2) I have a third hosting account that shows a maintenance message. (IP e.g., 10.2.2.1) My question how do I setup my domain NS so that if the server is unavailable it shows the maintenance message, would my NS be NS1 = 10.1.1.1 NS2 = 10.1.1.2 NS3 = 10.2.2.1 ?? cheers in advance
  2. It needs to work like an AJAX submission, so you NEVER leave this page once the data is submitted or as it is being submitted.
  3. Current code <form action="test.php" id="shareform" method="post" name="shareform"> <textarea id="share" name="share" onDblClick="alert('double clicked');"></textarea> <a href="#" onclick="document.forms['shareform'].submit(); return false;" class="share">Share</a> </form> $("#shareform").submit(function(event) { /* stop form from submitting normally */ event.preventDefault(); /* get some values from elements on the page: */ var $form = $( this ), term = $form.find( 'input[name="share"]' ).val(), url = $form.attr( 'action' ); /* Send the data using post and put the results in a div */ $.post(url, {'share': term}); }); still NOT working
  4. I just want to post the field off to text.php for placing in a session and thats it, no auto refresh no place auto in div
  5. what would #somedivid be??
  6. okay now I have that working, now I am trying the AJAX/jQuery submit part so I have this code /* attach a submit handler to the form */ $("#shareform").submit(function(event) { /* stop form from submitting normally */ event.preventDefault(); /* get some values from elements on the page: */ var $form = $( this ), term = $form.find( 'input[name="text"]' ).val(), url = $form.attr( 'action' ); /* Send the data using post and put the results in a div */ $.post("test.php"); }); but is seems not to be working, and Im not entirely sure why FROM http://api.jquery.com/jQuery.post/ Thanks for all the help so far Alex
  7. Okay so I have this index.php <form action="test.php" method="post" name="shareform"> <textarea name="text"></textarea> <a href="#" onclick="document.['shareform'].submit(); return false;">Go</a> </form> <?php session_strat(); echo $_SESSION['text'];?> test.php <?php session_start(); $_SESSION['text'] = $_POST['text']; But its not working, even after refresh of index.php, not processing correctly. Any ideas why? Thanks for the help so far
  8. Hi, I have tried this <a href="document.['formname'].submit(); return false;">Go</a> except it is returning a Not Found, as it redirects the browser to http://mydomain.com/document.%5B%27shareform%27%5D.submit%28%29;%20return%20false;
  9. figured that out thats why I already set the this as TOPIC SOLVED
  10. Okay. yup
  11. The reason behind using AJAX is so that it updates on a very regular interval
  12. The Mozilla link is not relevant to my code. Somedays I wish people would just answer the question
  13. Hi Guys, How do I compare a stored time() in a DB to the new time(), I need it to count a diff if 5 minutes. I know how to get the data out of the DB etc, just not how to do the compare is it just a simple "-" or not?
  14. how do you mean?
  15. I have found this http://roshanbh.com.np/2008/03/call-php-ajax-every-second-jquery.html but it calls a page not a function, I need to get it to call a function
×
×
  • 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.