Jump to content

RichardRotterdam

Members
  • Posts

    1,509
  • Joined

  • Last visited

Everything posted by RichardRotterdam

  1. 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.
  2. Looks pretty similar: http://www.outcut.de/MooFlow/MooFlow.html
  3. 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);
  4. Haven't gotten my hands dirty with Comet yet but this project looks promissing http://www.ape-project.org
  5. 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
  6. 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
  7. 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>
  8. does it need an explanation? if($something==$somethingelse){ for($a=0;$a<$max;$a++){ for($b=0;$b<$max;$b++){ if($code=="crap"){ } } }
  9. 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
  10. Not sure if using domready or window.onload would do the trick but how are you using those? Can you show the code?
  11. 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
  12. 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.
  13. 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>
  14. Here is an example http://tablesorter.com/docs/ Do keep in mind that if you are using pagination of some sort that ajax would prob be a better solution. Hope it works, Rich
  15. 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.
  16. What is it you want to display? without that being clear it's hard for someone to help you out
  17. 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>
  18. 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
  19. 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" );
  20. Why not stay on the same page and update that page using ajax?
  21. 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>
  22. You could do it all with just javascript. http://phpjs.org/functions/md5:469
×
×
  • 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.