RichardRotterdam
Members-
Posts
1,509 -
Joined
-
Last visited
Everything posted by RichardRotterdam
-
With javascript alone you have a cross domain issue. A little work around is to request a local serverside script (PHP for example) and make that local script do the soap request.
-
Looks pretty similar: http://www.outcut.de/MooFlow/MooFlow.html
-
mootools set('html', response) doesn't seem to work
RichardRotterdam replied to SchweppesAle's topic in Javascript Help
Only thing wrong I can see is that you're using a dot after the dollar character change: $.('popUP').set('html', response); to: $('popUP').set('html', response); -
Haven't gotten my hands dirty with Comet yet but this project looks promissing http://www.ape-project.org
-
i want to hide and show a section in html
RichardRotterdam replied to lokesh_kumar_s's topic in Javascript Help
http://lmgtfy.com/?q=hide+show+div+javascript -
You might be looking for Comet. Also take a look at this thread http://www.phpfreaks.com/forums/index.php/topic,258102.msg1214978.html#msg1214978
-
Need Help in retreiving data from mysql using ajax
RichardRotterdam replied to doforumda's topic in Javascript Help
Here is one thing wrong: In this function you have txtCustomerId where id is with the "I" in uppercase. function requestCustomerInfo() { var sId = document.getElementById("txtCustomerId").value; console.log(sId); xhr.open("GET", url + escape(sId), true); xhr.onreadystatechange = handleHttpResponse; xhr.send(null); } in your embedded onclick event you have txtCustomerid where id is with the "i" in lowercase. <input type="button" value="Get Customer Info" onclick="requestCustomerInfo()" /> Use a javascript debugger to find these kind of typos -
Instead of trying to stop the fade animation why not create a new element with a message and fade that one out? Here is an example: <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $("#add").click(function(){ // create new div element with content var error_msg = $('<div class="error_msg">an error occured!</div>'); // add the error message to the error container error_msg.appendTo("#error_container"); // fade out the error message and remove the message from the dom when done error_msg.fadeOut(2000,function(){ $(this).remove(); }); }); }); </script> <a href=# id="add">add message</a> <div id="error_container"></div>
-
does it need an explanation? if($something==$somethingelse){ for($a=0;$a<$max;$a++){ for($b=0;$b<$max;$b++){ if($code=="crap"){ } } }
-
If you are using a ftp client to upload your files and you saved the passwords in that client, there is a possibility that a virus stole those passwords. Also try a search on this forum, you might find topics that could be of use to you. here are some: http://www.phpfreaks.com/forums/index.php/topic,268580.msg1267048.html#msg1267048 http://www.phpfreaks.com/forums/index.php/topic,252960.msg1188182.html#msg1188182 http://www.phpfreaks.com/forums/index.php/topic,249837.msg1170921.html#msg1170921
-
java applet load only when DOM got loaded
RichardRotterdam replied to hammadtariq's topic in Javascript Help
Not sure if using domready or window.onload would do the trick but how are you using those? Can you show the code? -
Depends on what you want to use a framework for really. Maybe a comparison chart will help you to decide which one you want to test like the one that can be found on: http://en.wikipedia.org/wiki/Comparison_of_web_application_frameworks
-
Looking at just the first few lines it looks like it's injecting php code into that php file from a different domain. However I suggest you search for what's causing this rather then what's doing it.
-
PHP Question, Images, please help
RichardRotterdam replied to justinchrono's topic in PHP Coding Help
take a look at glob -
Hide object dependant on browser
RichardRotterdam replied to liamloveslearning's topic in Javascript Help
I wouldn't rely on it but it works like: <script type="text/javascript" src="browserdetect.js"></script> <script type="text/javascript"> BrowserDetect.init(); alert("You're using " + BrowserDetect.browser + " " + BrowserDetect.version + " on " + BrowserDetect.OS); </script> -
help removing body.style.background;
RichardRotterdam replied to meomike2000's topic in Javascript Help
What's the complete code you use to set/unset the background color and wich version of ie do you mean? ie 7 and lower has a few issues with the style attribut. -
how to get random value from array 2 dimentions
RichardRotterdam replied to sacox's topic in PHP Coding Help
What is it you want to display? without that being clear it's hard for someone to help you out -
I notice you're using the word hidden in your js. If your element is indeed hidden the height will be simply 0. <script type="text/javascript"> window.onload = function() { var hiddendiv = document.getElementById('hiddendiv'); var height = hiddendiv.offsetHeight; alert(height); } </script> <div id="hiddendiv"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas ullamcorper hendrerit est, in eleifend orci volutpat eget. Integer tellus risus, mattis sed venenatis nec, faucibus a ligula. Quisque in sem eget diam semper venenatis. Sed ut est neque, imperdiet iaculis augue. Nulla lacinia eros at felis pharetra sodales interdum dolor bibendum. Integer enim nulla, tristique et mollis eu, commodo et lectus. Vivamus tempus feugiat luctus. Curabitur interdum pharetra odio vitae fringilla. Vestibulum tortor odio, eleifend nec faucibus ac, fringilla sit amet enim. Nullam blandit urna non turpis aliquet aliquam. Donec dignissim rutrum facilisis. Etiam interdum, felis et tincidunt consectetur, dui lacus convallis elit, vitae blandit massa tellus ut ipsum. Curabitur ultrices interdum tristique. Nam orci dui, ornare eu imperdiet et, varius in dui. Quisque vel ante urna, ut convallis libero. Duis sit amet mauris at felis dignissim faucibus sed id orci. Donec lorem diam, dignissim sed dignissim in, porta sed diam. </div>
-
From the looks of your code it seems you're trying to create a multi column gallery of some sort. have you looked at the following? http://www.phpfreaks.com/forums/index.php/topic,95426.0.html
-
how to get random value from array 2 dimentions
RichardRotterdam replied to sacox's topic in PHP Coding Help
Did you mean that you have an array like the following (regardless of how the code is written) <?php $arr = array( 1 => "A", 2 => "B", 3 => "C", 4 => "D", 5 => "E" ); -
passing elements between pages...how??
RichardRotterdam replied to firdous_kind86's topic in Javascript Help
Why not stay on the same page and update that page using ajax? -
can this be done somehow with prototype? here is an example of prototype + scriptaculous <script type="text/javascript" src="js/prototype.js"></script> <script type="text/javascript" src="js/scriptaculous.js"></script> <script type="text/javascript" src="js/effects.js"></script> <script type="text/javascript"> document.observe("dom:loaded", function() { $("fadein").appear({ duration: 3.0 }); }); </script> <div id="fadein" style="display:none"> This content is hidden when the page loads </div>
-
You could do it all with just javascript. http://phpjs.org/functions/md5:469