
codingmasterRS
Members-
Posts
155 -
Joined
-
Last visited
Never
Everything posted by codingmasterRS
-
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
-
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.
-
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
-
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
-
what would #somedivid be??
-
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
-
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
-
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;
-
figured that out thats why I already set the this as TOPIC SOLVED
-
The reason behind using AJAX is so that it updates on a very regular interval
-
The Mozilla link is not relevant to my code. Somedays I wish people would just answer the question
-
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?
-
how do you mean?
-
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
-
Hi guys, I have now sorted out the right click by using http://abeautifulsite.net/blog/2008/05/jquery-right-click-plugin/ and have this code $(document).ready( function() { $("#imgone").rightClick( function(e) { alert('Initiate'); }); }); however I need it to only do the IM if the <img> has class online applied to it. Now someone suggested $(document).ready( function() { $("#img.online").rightClick( function(e) { alert('Initiate'); }); }); but that does NOT work, so if anyone know how I can make this work it would be much appreciated. PS/ It needs to be a class becuase I will use jQuery addClass
-
none of this is making sense, could you clarify and make it very clear please
-
thanks for the links, but they are not all together that helpful, someone must have done this and have the code or know how to do it.
-
Hi guys, I am after some code like Twitter (and FB) that updates page content from a PHP function. I believe in need AJAX or jQuery/AJAX, so if anyone cna point me in the right direction in terms of code that would be great. Cheers PS. It needs to be done at a set interval
-
http://abeautifulsite.net/blog/2008/05/jquery-right-click-plugin/
-
$(document).ready( function() { $("img.online").rightClick(function() { alert("Works"); }); }); does not work
-
NB: It needs to work for rightclick!
-
requinix, thanks. But how do I get this to work? What do I put in the img tag?
-
thanks, much appreciated
-
NB: it must do it from a function and can use jquery NEW: <img src="avatars/21.png" class="online" onMouseDown="IM()" />