Jump to content

r4v37t

Active Members
  • Posts

    99
  • Joined

  • Last visited

Posts posted by r4v37t

  1. I do this into my CPanel account, I just want to learn and to know how hack into CPanel.

    My reason for to do this is if I have forgot username and password for login.

    It's possible to hack into CPanel to get my username and password back, if in this case I have already upload C99 phpshell into my account?

    *CPanel version 11

    Regards,

  2. I dont know why my link doesnt work for swf.

    <a href="panorama1.html" style="cursor:pointer;" >
      <object width="560" height="100" data="./adm_panorama/start.swf" type="application/x-shockwave-flash" >
         <param name="src" value="./adm_panorama/start.swf" />
      </object>
    </a>
    

    please help to solve this problems :)

  3. its problems with this code:

                    if (window.XMLHttpRequest){ // Mozilla, Safari
                            httprequest=new XMLHttpRequest();
                            if (httprequest.overrideMimeType){
                                    httprequest.overrideMimeType('text/xml');
                            }
                    }else if (window.ActiveXObject){ // IE
                            try {
                                    httprequest=new ActiveXObject("Msxml2.XMLHTTP");
                            }catch (e){
                                    try{
                                            httprequest=new ActiveXObject("Microsoft.XMLHTTP");
                                    }catch (e){}
                            }
                    }
    

    that return MimeType to 'text/xml' maybe that cause every return as 'text/xml' in client-side except server-side code.

  4. Thanks again Jason :)

    but one more question still about ajax, why when I get "responseText" from ajax from any file resource with contain javascript inside, why that javascript is not running well?

    example:

            function call_one(){
                    var link="http://localhost/first.php";
                    getData(link,'targetDIV_one');
            }
    

    which inside 'first.php' :

    <script>
        alert("Hello World");
    </script>
    <?php
        echo "Example of Ajax";
    ?>
    

    why when 'call_one()' execute the result just show "Example of Ajax" without an alert from javascript?

  5. Your problem is actually coming from a combination of two asynchronous call with just one httprequest object. Here is a quick walk through of what is happening.

    call_one uses the global httprequest object to request a GET method to retrieve some data. The http request will take a while so the code continues to run relying on the onreadystatechange event handler to call the function to handle the returned data.

    As your code is still running call_one finishes and call_two is then called. This uses the same httprequest object to make a different request using the GET method. The httprequest object forgets about its old request and just remembers the new request. Again as it is asynchronous your code continues to run relying on the eventhandler to call your function when the request completes.

    There is nothing else for your code to do after call_two, so the next thing that happens is the result from the first request comes back. Unfortunately the httprequest object has thrown away the details for that request so it ignores it. Then the result from the second request comes back and for some reason httprequest calls its onreadystatechange event handler twice with the result of the second call.

    The first event handler call uses the scope of call_one, so the obj variable points to targetDIV_one. The second event handler call uses the scope of call_two, so the obj variable points to targetDIV_two.

    thanks for that explain, i have ready solve this with adding code for check readyState this solve like this:

            function getData(dataSource,id){
                    if (window.XMLHttpRequest){ // Mozilla, Safari
                            httprequest=new XMLHttpRequest();
                            if (httprequest.overrideMimeType){
                                    httprequest.overrideMimeType('text/xml');
                            }
                    }else if (window.ActiveXObject){ // IE
                            try {
                                    httprequest=new ActiveXObject("Msxml2.XMLHTTP");
                            }catch (e){
                                    try{
                                            httprequest=new ActiveXObject("Microsoft.XMLHTTP");
                                    }catch (e){}
                            }
                    }
                    if(httprequest){
                            var obj=document.getElementById(id);
                            httprequest.open("GET",dataSource);
                            httprequest.onreadystatechange=function(){
                                    if(httprequest.readyState==4 && httprequest.status==200){
                                            obj.innerHTML=httprequest.responseText;
                                    }
                            }
                    }
                    httprequest.send(null);
            }
            function call_one(){
                    var link="http://localhost/first.php";
                    if(httprequest.readyState==4||httprequest.readyState==0){ //check if httprequest in idle
                       getData(link,'targetDIV_one');
                    }else{
                       setTimeout('call_one()',1000); //if httprequest busy retry again in 1 second
                    }
            }
            function call_two(){
                    var link="http://localhost/second.php";
                    if(httprequest.readyState==4||httprequest.readyState==0){ //check if httprequest in idle
                       getData(link,'targetDIV_two');
                    }else{
                       setTimeout('call_two()',1000); //if httprequest busy retry again in 1 second
                    }
            }
    

    it's running well :)

  6. I would recommend that you use JQuery rather than rolling your own ajax handlers. It makes your life easier and you can concentrate on your code rather than the code to speak to your the server. Also it makes it nice and easy to choose if you want to do an asynchronous call or not (in other words do you want your code to wait till you get response or do you want it to get on with other things while waiting). Also its asynchronous calls use a separate httprequest object for each call which avoids the problem you have encountered.

    thanks for recommend but I want learn how ajax running :)

  7. This ajax code:

    	function getData(dataSource,id){
    		if (window.XMLHttpRequest){ // Mozilla, Safari
    			httprequest=new XMLHttpRequest();
    			if (httprequest.overrideMimeType){
    				httprequest.overrideMimeType('text/xml');
    			}
    		}else if (window.ActiveXObject){ // IE
    			try {
    				httprequest=new ActiveXObject("Msxml2.XMLHTTP");
    			}catch (e){
    				try{
    					httprequest=new ActiveXObject("Microsoft.XMLHTTP");
    				}catch (e){}
    			}
    		}
    		if(httprequest){
    			var obj=document.getElementById(id);
    			httprequest.open("GET",dataSource);
    			httprequest.onreadystatechange=function(){
    				if(httprequest.readyState==4 && httprequest.status==200){
    					obj.innerHTML=httprequest.responseText;
    				}
    			}
    		}
    		httprequest.send(null);
    	}
    	function call_one(){
    		var link="http://localhost/first.php";
    		getData(link,'targetDIV_one');
    	}
    	function call_two(){
    		var link="http://localhost/second.php";
    		getData(link,'targetDIV_two');
    	}
    

    in html code:

    <html>
    <head>
    </head>
    <body onload="call_one(); call_two();">
    <div id="targetDIV_one">
    </div>
    <div id="targetDIV_two">
    </div>
    </body>
    </html>
    

    but the result in "targetDIV_one" and "targetDIV_two" just show result of function "call_two()", how this problems solve???

  8. ...what? Can you be more descriptive?

    Google have 2 case,

    Case 1:

    1--> start type www.google.com in url

    2--> then type ajax in search

    3--> then *like a magic* of course ajax do it, the content have change to it search then the url change to http://www.google.com/#hl=en&expIds=17...5790a4486b7f45f

    4--> then I want to see next result the URL show on next link http://www.google.com/search?q=ajax&hl...art=10&sa=N without symbol '#'

    5--> but when I click that link the url change to http://www.google.com/#q=ajax&hl=en&am...ddd74dd827ab059

    Case 2:

    1--> using google search use google search bar on firefox

    2--> I type ajax on google search bar on firefox

    3--> the URL show like this http://www.google.com/search?q=ajax&ie...GGLL_en___ID397

    4--> then I want see next result the URL show on next link http://www.google.com/search?q=ajax&hl...art=10&sa=N

    5--> but when I click that link *like a magic again ajax do it*, without refresh the page the URL have change again to http://www.google.com/search?q=ajax&ie...ddd74dd827ab059

    that's all.

    I think this is answer of my topic at Get Referring Page From Ajax Apps, Can it to do? How?

  9. After I had watch "the social network" movie, I see there "facebook" had involved now and I so interesting with "facebook" technology today.

    Then after I had view the "facebook" page source, how surprise me there just 'javascript' and 'html' tags.

    How it's working?????

    and

    When I had view for link in "facebook" like this:

    [my url now]--> http://www.facebook.com/home.php

    [link]-->Home

    [link show]--> http://www.facebook.com/?ref=home

    [when link click my url change to]--> http://www.facebook.com/home.php#!/

    [but when I refresh my page, my url change to]--> http://www.facebook.com/

    How it's working???

  10. This video has nothing to do with detecting fire with a camera, but it does however have motion detector. Which you could replace with a heat detector and perhaps have a camera hooked to it.

    It should give you some ideas.

    This link on the other hand, has some Infra Red cameras

    http://www.directindustry.com/cat/detectio...AB-562-_31.html

    You could redesign them, in such a way that when it detects heat it could alert you via an SMS or Email.

    Most chip cameras are infrared sensitive and have an IR blocking filter so they are not overloaded,.

    Its usually quite straight forward to remove it (warranty=void) and replace it with black exposed film to create an visible blocking, IR pass filter, and Fanny's your aunt! you have an IR camera. B)

    Thanks for suggestion first but I want to build it from normal webcam.

  11. Why would you want two windows to have focus at once?

    there is one game that I played and I used a cheat program, which allows me to play in two windows at once, but after the game was on the update now I can not play in two windows at once, but I still cheat program can be used but only be active if the focused window.

×
×
  • Create New...