Jump to content

Who8MyFish

Members
  • Posts

    28
  • Joined

  • Last visited

    Never

Everything posted by Who8MyFish

  1. The problem was in the html. the ' in "you'll" was somehow being switched to a doublequote and so the elemnt looked a little like this. <a href='#' title='Dream as if you'll live forever, Live as if you"ll die today'>Link</a> A simple htmlspecialchars($myString, ENT_QUOTES); took care of that reallll quick. Thanks for the help though, spot on!
  2. one shotted my problem like a total baws! Thanks man I've literally been at this one bug for 3 hours non stop.
  3. So i'm trying to make a play/pause toggle button for a slideshow gallery I'm making right. When turned on the slideshow should perfoerm the function goForward() every 5000ms. I can successfully start the interval but when trying to clear it all it seems to do is start the interval again and create a new set of intervals so my images start scrolling twice as fast. LINKSAUS: http://www.lojiki.com/slider/ $("#play-pause-button").click(function(){ if(timer == null){ var timer = setInterval(goForward, 5000); $("#play-pause-button").html("<img src='http://www.rogercpareview.com/media/images/layout/play-iconB2_small.png'>").load(function(){ $("#play-pause-button").val("on"); }); return false; }; if(timer != null){ clearInterval(goForward); var timer = null; $("#play-pause-button").html("<img src='http://www.spalook.com/resources/assets/product/player_pause_button.jpg'>").load(function(){ $("#play-pause-button").val("off"); }); }; });
  4. So I'm using simplexml_load_file($url) to load up a client's XML file so I can use it with a jQuery slide show right. My problem is that some of the strings within the xml files are often times sentences and when I echo, for example... echo $xml->images->categories->category[$gallery]->images->image[0]->description[0] ; I should see Dream as if you'll live forever, Live as if you'll die today but all I'm getting is Dream as if you It appears as though php is getting confused when it sees those little single quotes. Anyone?
  5. So heres le deal. I'm building a slide show and the images I'm working with are all different sizes and will often change sizes as the owner of the slide show populates the gallery with XML. The images scale with some pretty basic CSS however I'm left with the task of vertically centering this image after I load it. The fact that vertical centering STILL requires javascript is crazyness in my mind... I feel like it should be a basic part of CSS but wadyagonnadooooooooo? Here is a pastebin to my code: http://pastebin.com/bFHV7ubd Here is a link to a live version of the slider: http://www.lojiki.com/slider/
  6. Been away for a sec, did you still need help with this?
  7. What separates pros from amateurs is that the former group often needs to reassure themselves and that they are not the latter group by being unnecessarily condescending to the former group. Anyone else sick of admins and their over the top hubris? You passed on a perfect opportunity to help someone learn something so you could lay down that half assed troll. Douche bag.
  8. So I use a homebrew media player for my .mp3 files (iTunes blows OMHO) and the only problem I have yet to tackle is that this upload field I use to move songs onto the server eats up ALLL my upload bandwidth and prettymuch cripples whatever network I happen to be on until I'm finished uploaing my stuffs. Anyone know of a technique to throttle upload speed?
  9. Hey, just looking for a little advise here. I have a couple questions and PHP freaks is packed full of smart people so I thought I'd head here after trying Google. at what file size you think mod_gzip/mod_deflate are useful and at what file size do you see a sort of diminishing return in load speeds? I stream .mp3 files with HTTP from this server, does mod_deflate or mod_gzip compress ALL traffic or just text files? .html .php .js etc. any other little pro tips I should know? Thanks!
  10. Put everything in here and post us the link after you update (aka save) http://jsfiddle.net/ Your css appears to be legit but the HTML surrounding the css is super important.
  11. ohhhhh. I assumed the OP was asking about the XY of the mouse. Moving the cursor is super possible. http://www.htmlgoodies.com/beyond/javascript/article.php/3471131/Jump-Focus-with-Form-Elements.htm
  12. So just to clear things up/ You want the hidden <input>'s value to reflect the value of your text <input> am I right? If so check this out, its a simple jQuery that literally changes the html of your page when click the submit button. http://jsfiddle.net/RqsjN/
  13. Pretty sure you can do this with visual basic but not JS. I feel like if this were possible we'd all have Live Jasmin / Google ad sense walpapers on our desktop hahaha.
  14. Thank you for your help, this worked perfectly. I'm wondering why the syntax is different from your typical JavaScript if(this){do this}? http://www.w3schools.com/js/js_if_else.asp
  15. ok so I've checked my syntax and everywhere I checks says I'm right so I thought I'd ask one of you folks. So load this up and click the little black <div>, it should deincrement to a max of -4 and then reset to 0 but it just deincrements without end. http://jsfiddle.net/xyLfP/
  16. OK great! I suspected that was the problem... I've updated my code a little and I'm still having the problem. http://pastebin.com/jPMSUMG7
  17. So I've only recently started using jQuery / ajax and so forgive me if this is in the wrong place but.. I'm having a tough time with an instant search I built into this project. It query's a database and then echoes a <table>with the results in. For the most part this search works beautifully BUT unfortunately the DOM behaviors that I set up are not working on the returned table rows. My jQuery: http://pastebin.com/zrFMbPcL search.php: http://pastebin.com/9HS28ZyL Search results are presented here: http://pastebin.com/ePfRnxsR tl;dr When I double click a <tr class='play'> in the main part of the app the DOM behavior works fine but when I double click <tr class='play'> that was generated with php/ajax nothing happens. I've only tested this in Google Chrome and Firefox.
  18. epic. Thanks guys this is exactly what I'm looking for.
  19. So I have been avoiding this for some time but it seems I can dodge this no longer haha. I need to be able to create pages dynamically and give each page it's own URL. I'm not really looking for a lesson here but if someone could point me in the direction of some reading materials or at least tell me what i should be looking for I could probably find them myself. Let me explain... So I built a site for a chain of antique malls in the mid west. I built a page for managers and vendors so they could easily upload images and post items they are trying to sell to the companies web site. I use a SQL database and a WHILE LOOP to display the contents of the database on the main page and am currently trying to incorporate a Facebook "like" button for each and every item on the page. Currently every item listed in the database is displayed on Shopping.php I need the server to be able to create a page with a unique address for each item in the database so that the "like" buttons don't all link back to the Shopping.php page. What I am imagining is something like "/Shopping.php?item=0001" that will link to a page dedicated to that one single item. Thanks for your time.
  20. Are you using the exact same router? When moving your office your server's local IP address probably changed for one reason or another. You should be able to access your web server through the address bar of a browser using the server's local IP address. for example http://192.168.0.150 you can find your computers actual local address by opening a command prompt and typing ipconfig/all It should be listed near "IP Address........." Any computer connected to that same network will be able to access your server using that address.
  21. So I have been taking swings at this issue for like 3 days now and no matter what I try I can't get this to work. All I'm trying to do is create a simple picture upload form. As far as i can tell my form and script work just fine but I'm stuck on these blasted permissions errors. I've added myself to the www-data user group as suggested by another user. LAMPP server, Ubuntu 11.04. This is what happens when uploading... ------------------------------------------------- Warning: move_uploaded_file(uploads/DSC00141.JPG) [function.move-uploaded-file]: failed to open stream: Permission denied in /opt/lampp/htdocs/RedRacksDynamic/Manager/postitem2.php on line 6 Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phplgVvan' to 'uploads/DSC00141.JPG' in /opt/lampp/htdocs/RedRacksDynamic/Manager/postitem2.php on line 6 There was an error uploading the file, please try again! Array ( [image] => Array ( [name] => DSC00141.JPG [type] => image/jpeg [tmp_name] => /tmp/phplgVvan [error] => 0 => 520824 ) ) ----------------------------------------------------
  22. KA-FIXED! So the spaces in my table names are causing the problem. Alright that might explain some other problems I've had. thanks guys I'll RE RE evaluate the way my tables are managed to avoid using spaces. I'm new to php and MySQL and I'm throwing together a simple Customer Relationship Management (CRM) site as an experiment/ learning experience.
  23. I should have explained that all of the variables in the query are being posted from another page "with codes" is the name of the table. $B = addslashes($_POST['campaign_name']);
×
×
  • 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.