User Profile

Collapse

Profile Sidebar

Collapse
dushkin
dushkin
Last Activity: Feb 6 '12, 08:41 PM
Joined: Feb 2 '12
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Okay I have no idea how I could possibly do that, I have some new code that may be easier to understand what I mean..

    Code:
    function processServers() {
    	var amountOfServers = 5;
    	var i=1;
    	while (i <= amountOfServers) {
    		'checkServer'+i+'()';
    		i++;
    	}
    }
    instead of
    'checkServer'+i +'()';
    I need it to say
    checkServer1(), then on the next loop it would...
    See more | Go to post

    Leave a comment:


  • Do you know how I could avoid making it a string? From what you said it means I need it as a variable.

    I searched around and found a method that apparently works, it said to use "window" and some square brackets, although I do not know how I would implement this into my script, can you help me with this please?
    See more | Go to post

    Leave a comment:


  • dushkin
    replied to Javascript
    If you are asking "How do I make a text field invisible upon the page loading?" then instead of a plain <body> tag, use <body onload="hideFie ld()">

    If your not asking that, and your asking "How do I make a text field disappear when I press the button" use the code I gave you above
    <input type="button" id="hideField" onclick="hideFi eld()" />
    See more | Go to post

    Leave a comment:


  • dushkin
    replied to Javascript
    A simple google search turned up with this link
    http://www.webmasterworld.com/forum91/441.htm

    In case you don't know where to look on that page, I'll paste the code onto here

    Code:
    <script language=javascript type='text/javascript'>
    function hideField() {
    if (document.getElementById) { // DOM3 = IE5, NS6
    document.getElementById('textField').style.visibility = 'hidden';
    }
    else {
    ...
    See more | Go to post

    Leave a comment:


  • AJAX sending wrong information - any idea why?

    I have a question that you will probably be able to answer in a snap, though it has been a constant issue of mine for over a day.

    With my PHP script, I produce a variable

    Code:
    var information1 = 'ip=127.0.0.1&port=80';
    When I try to use this variable in my AJAX script, this is the result being sent to my server -

    checkStatus.php ?information1

    Now, as far as I can see, that isn't supposed...
    See more | Go to post
    Last edited by Dormilich; Feb 5 '12, 10:07 AM. Reason: Please use [CODE] [/CODE] tags when posting code.

  • Oh okay, I seem to have overused the term AJAX, I've been reading multiple tutorials on AJAX/Javascript and can't find a single one that teaches me how to;

    Send one piece of data to my server, recieve a response and then send the next piece of data, this would loop until all the data has received a response from the server.

    Do you have any idea of how to do the above task? The data are just stored in simple variables such...
    See more | Go to post

    Leave a comment:


  • I'm sorry I didn't clarify myself enough...

    I have no AJAX code, I have no knowledge of AJAX, I posted here simply for a step in the right direction, or if someone is kind enough, some code I could work from.

    I basically need -

    Some partial code that tells me
    A) How to tell AJAX what data to send to the server
    B) How to tell AJAX to parse the data individually, sending the data one by one.
    See more | Go to post

    Leave a comment:


  • dushkin
    started a topic Perform one AJAX request one after another.

    Perform one AJAX request one after another.

    I'm new to the whole concept of using AJAX in my PHP scripts and I have stone-walled.

    What I am looking to do is this;

    Once the page loads, my AJAX script will start to send data to my server so that it can verify the data, after it recieves a response from my server of either a "0" or a "1", it then goes on to send another request to my server and wait for a response, it'll carry on doing this until...
    See more | Go to post
No activity results to display
Show More
Working...