Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. It might simply be how your using split. The regex does not need to be within quotes: var parts = $(this).attr('class').split(/\-/);
  2. Doh, it should also be..... jQuery('#content-'+parts[1]).html();
  3. Put.... console.log(jQuery('content-'+parts[1]).html()); In your code then look at the console.
  4. Is #message_qr a textarea? Try.... jQuery("#message_qr").val(jQuery('content-'+parts[1]).html()); I am sure that jQuery('content-'+parts[1]).html() is returning the data, you should check it in firebug.
  5. Facebook actually uses it's own compiler, calledHipHop. But like thorpe stated PHP scales well for big applications. Yeah, I'm aware of that. Didn't realize so much of there base is now in it though.
  6. Typo. $("#message_qr").html($('content-'+parts[1]).html());
  7. Ok, Ive had a bit of a play around. Your markup is terrible, and doesn't really make the job easy. This should work for you, buts its not the most elegant approach. If your markup was more organized I;'m sure it could be simplified. $(document).ready(function() { $('img[class^="quick_quote"]').click(function() { var parts = $(this).attr('class').split(/\-/); $("#message_qr").html($('content-'+parts[1]); animatedcollapse.toggle('quick_reply'); }); }); You'll need to change quick_quote339 to quick_quote-339 & content339 to content-339 in your markup.
  8. $(document).ready(function() { $('img[class^="quick_quote"]').click(function() { $("#message_qr").html($(this).nextAll('tr td').html()); animatedcollapse.toggle('quick_reply'); }); });
  9. Better still, have you a live page I could look at?
  10. This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=321478.0
  11. Can you please just post the markup as is, don't bother putting [pre][/pre] tags in wherever, and don't separate the content from the quick_reply. Your making this pretty difficult.
  12. You you know what marklup is? We need to see the html output that goes with this Javascript.
  13. That code has syntax error and shouldn't even run. can we see the actual code, and some of the markup?
  14. You might be in the wrong board. Considering....\ If you want functionality tested, look at the beta test board.
  15. Your going to need to show more code and try and explain your problem better. Some of the markup wouldn't hurt either.
  16. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=321698.0
  17. trq

    404 handling

    if the requested php file is missing, your php handler never gets to see the request.
  18. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=321687.0
  19. More than likely because there not sure what there talking about. Facebook is written in PHP, they don't get much bigger.
  20. The validator actually thinks your trying to put <p> tags right there where the js is. Move your js into an external file and the problem should go away.
  21. Think about how HTTP works.
  22. You may as well go all out and get the contents I suppose <?php function getPNContents($path) { if ($dh = opendir($path)) { while(false !== ($file = readdir($dh))) { if (is_dir("$path/$file")) { if (substr($file, -3) == '.pn') { return scandir("$path/$file"); } else { getPNContents("$path/$file"); } } } } } ?>
×
×
  • 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.