Jump to content

Chud37

Members
  • Posts

    43
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Chud37's Achievements

Member

Member (2/5)

0

Reputation

  1. Okay so: I've been writing an application that has a standard AJAX call. But AJAX isnt the problem. For the last 3 month my application has been working perfectly, however today (the first day that the app was launched publicly) it stops calling the ajax function all together. The code was thus: Onclick=\"register();\" Suddenly today in chrome this function stopped working, and i could not figure out why, eventually i changed te function name and all was working. But how rediculous, the register() function works fine in IE??? It literally suddenly stopped working, and so i changed the function to preBooked(); and its fine now. Can anyone explain this at all? It is really bugging me. Thanks in advance, Richard();
  2. Got it. I had referenced a function in the .JS file above my .click functions that wasnt working, at it was bombing out there. I removed that to see and it works fine.
  3. Hello, I have an external jquery.shop.js file, and there are three pages where I need a donation box to popup. I built it on the first page, and it works fine, looks beautiful, etc. But when I implement the same code on the other two pages, it refuses to popup. I know the jquery file is referenced correctly and loading, because other functions in there are performing on the other pages too. But i cannot get any response out of it. It confuses me, because the code is the same, both in the HTML and the Jquery. What is stopping the [.click] function from performing? here is the code: $('#donateButton').click(function(){ alert('hello'); if(popupStat==0) { popupStat=1; $('#donationPopup').center(); $('#donationPopup').fadeIn('slow'); $('#content').fadeTo('slow', 0.2); } }); $('#closeButton').click(function(){ if(popupStat==1) { popupStat=0; $('#donationPopup').fadeOut('slow'); $('#content').fadeTo('slow', 1); } }); I put the alert hello in there to try and debug somewhat, and again, i get the alert on the first page, but the second and third pages are not showing anything at all. I am fairly new to jQuery, but not to programming. But this seems to be a re-occuring problem for me. Does it make a difference in what order my functions are placed in the .JS file? how could i further debug this? Can anyone help? Thanks, ~Richard
  4. I need to match (Click to Enlarge) WITH the brackets. Its at the bottom of thumbnails and I want to remove it. I cannot work out what REGEX to use, Im new to it! So far i've got: {\(Click to Enlarge\)} But that is returning nothing. Could someone please tell me what the best thing to use is and why!
  5. Topic solved, after much frustration. The answer was to NOT use http://www.mydomain.com and just use index.php. So now my .htaccess file looks like: Options +FollowSymlinks RewriteEngine on RewriteOptions MaxRedirects=10 AddType "text/html; charset=UTF-8" html AddType "text/plain; charset=UTF-8" txt RewriteRule ^series/([^/]+)/([^/]+)$ "index.php?language=$1&m=$2" [NC] RewriteRule ^play/([^/]+)$ "index.php?p=$1" [NC] RewriteRule ^browse$ "browse.php" [NC] RewriteRule ^browse/$ "browse.php" [NC] RewriteRule ^help$ "help.php" [NC] RewriteRule ^help/$ "help.php" [NC] Hope this helps anyone.
  6. Topic solved, after much frustration. The answer was to NOT use http://www.mydomain.com and just use index.php. So now my .htaccess file looks like: Options +FollowSymlinks RewriteEngine on RewriteOptions MaxRedirects=10 AddType "text/html; charset=UTF-8" html AddType "text/plain; charset=UTF-8" txt RewriteRule ^series/([^/]+)/([^/]+)$ "index.php?language=$1&m=$2" [NC] RewriteRule ^play/([^/]+)$ "index.php?p=$1" [NC] RewriteRule ^browse$ "browse.php" [NC] RewriteRule ^browse/$ "browse.php" [NC] RewriteRule ^help$ "help.php" [NC] RewriteRule ^help/$ "help.php" [NC] Hope this helps anyone.
  7. hello; I have the following .htaccess file: Options +FollowSymlinks RewriteEngine on RewriteOptions MaxRedirects=10 AddType "text/html; charset=UTF-8" html AddType "text/plain; charset=UTF-8" txt RewriteRule ^series/([^/]+)/([^/]+)$ "http://www.mydomain.com/index.php?language=$1&m=$2" [NC] RewriteRule ^play/([^/]+)$ "http://www.mydomain.com/index.php?p=$1" [NC] RewriteRule ^browse$ "http://www.mydomain.com/browse.php" [NC] RewriteRule ^browse/$ "http://www.mydomain.com/browse.php" [NC] RewriteRule ^help$ "http://www.mydomain.com/help.php" [NC] RewriteRule ^help/$ "http://www.mydomain.com/help.php" [NC] We have recently moved servers, and this .htaccess file was working fine on our old server but now moving over and using the above .htaccess file it seems to be doing something different. For instance, If I goto www.mydomain.com/browse - I should be redirected to browse.php, and the user shouldn't know any better. The browser is doing the first part right, it redirects it to the correct page, but it is not hiding the browse.php from the address bar in the clients web-browser. So the redirects are working, but it is also giving away our pages aswell. If a user goes to www.mydomain.com/series/english/my-series, I DONT want them to see www.mydomain.com/index.php?language=english&m=my-series can someone help please? Its a new server I have WHM access and Cpanel obviously. What can it be? ~Chud37
  8. hello; I have the following .htaccess file: Options +FollowSymlinks RewriteEngine on RewriteOptions MaxRedirects=10 AddType "text/html; charset=UTF-8" html AddType "text/plain; charset=UTF-8" txt RewriteRule ^series/([^/]+)/([^/]+)$ "http://www.mydomain.com/index.php?language=$1&m=$2" [NC] RewriteRule ^play/([^/]+)$ "http://www.mydomain.com/index.php?p=$1" [NC] RewriteRule ^browse$ "http://www.mydomain.com/browse.php" [NC] RewriteRule ^browse/$ "http://www.mydomain.com/browse.php" [NC] RewriteRule ^help$ "http://www.mydomain.com/help.php" [NC] RewriteRule ^help/$ "http://www.mydomain.com/help.php" [NC] We have recently moved servers, and this .htaccess file was working fine on our old server but now moving over and using the above .htaccess file it seems to be doing something different. For instance, If I goto www.mydomain.com/browse - I should be redirected to browse.php, and the user shouldn't know any better. The browser is doing the first part right, it redirects it to the correct page, but it is not hiding the browse.php from the address bar in the clients web-browser. So the redirects are working, but it is also giving away our pages aswell. If a user goes to www.mydomain.com/series/english/my-series, I DONT want them to see www.mydomain.com/index.php?language=english&m=my-series can someone help please? Its a new server I have WHM access and Cpanel obviously. What can it be? ~Chud37
  9. So does that mean for client side file references (i.e. javascript includes etc) I can use a '/' and for the server side - I can use $_SERVER['DOCUMENT_ROOT']?
  10. You MUST be changing it somewhere before hand. When you echo it, are you echoing it at the very begining of the php page?
  11. I have recently discovered the mod_rewrite, and so now i've got rewrite settings on my server where by it will not map /series/english/myseries to index.php?q=english&series=myseries; Which is all very well and good and works nicely. However, When I am trying to load say a Javascript file inside Index.php now, or include a PHP file, I have huge problems, because it is trying to look at my 'relative' path of 'js/jquery.js' and cant find it from the pseudo directory 'series/english/myseries'. What is the best way to compensate for this problem? For the PHP includes i've started using $_SERVER['DOCUMENT_ROOT']; which seems to map files okay. But i can't do the same with JS. I dont know what to do
  12. Aha, After testing I realised that my work domain where I was sending test emails to is the problem, for some reason that domain and that domain only isnt recieving my emails. I will close this thread, thank you!
  13. I dont own the server, It is being hosted with a company, and they use the eXtend control panel. Whilst I prefere cPanel, I dont have a choice - and I cannot see anywhere in the eXtend control panel to view mail server logs..
  14. Hello, I have been using the mail() command for a while now, but for some reason It has just stopped functioning all together. I have added an OR DIE rule to the end of it and had no response. To all intents and purposes that mail is being sent - there are no errors whatsoever - just the mail is not getting delivered. I cannot think of anything I've done or changed that would stop it from being delivered, I haven't even been near the function that does it in a while. Here is the code: function sendMail($to,$ref) { $subject = 'Booking Confirmation'; $file = "receipts/$ref.htm"; $fh=fopen($file, "r"); $message = fread($fh, filesize($file)); fclose($fh); $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From: Company <noreply@company.co.uk>' . "\r\n"; mail($to, $subject, $message, $headers); } I have taken out the public names involved, but otherwise thats the code. It has worked absolutely fine in the past, and even If I strip out all of the filehandling part of it, and just use a simple $from - $to - $message, it still seems not actually send the mail. It wouldnt be so bad If I at least had an error to go on, but I dont I am just simply not getting the mail. Please help! ~Chud37
  15. Alright, hash passwords are good and all. But what about the actual login process? Are sessions acceptable, or is there another method?
×
×
  • 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.