- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
- Interests
- Interests, 80's music and movies. Several other tv shows.
- PC Specs
- Windows 7, Ubuntu 10.10
13 Posted Topics
Re: The code you've provided, is working fine for me (however I just tested it in plain html file and not .NET). Do you have a live link to show us what's going wrong? I assume "JScript.js" is the jQuery file? If not you also need to include jQuery for it … | |
Re: According, HTML spec an ID should only ever be used on once on the page, therefore getElementById will only access the first instance of the parameter passed to it. Your probably only going to be able to do what you need with a class or specific ids. However you may … | |
Re: Judging from the files, the ROOT_PATH would be set in data/uploads/language/config.php. And not the other config file, though it is set there, the value is in the previous config file. Edit: Forgive me I didn't notice there was a page two when replying. | |
Re: I wouldn't honestly recommend any framework let alone Zend (seen it's footprint?) [URL=http://cakephp.org/]CakePHP[/URL], [URL=http://codeigniter.com/]CodeIgniter[/URL], [URL=http://gilbitron.github.com/PIP/]PIP[/URL], [URL=http://fuelphp.com/]Fuel[/URL], [URL=http://framework.zend.com]Zend[/URL] The idea is, do you really need a framework for you project? If so do need something that's as bulky as Zend, or as simplistic/lightweight as PIP? Work out what you need, then … | |
Re: My Regex does fail me, but I think something along the lines of this should work. [CODE=php] $var = "One line\nTwo Line\nThree Line\n"; $var = preg_replace('/\b$/m', ' ', $var); echo nl2br($var); //Convert newlines to br for viewing purposes.[/CODE] | |
Re: I assume you're using a PHP backend? If so try [URL=http://php.net/stripslashes/]stripslashes()[/URL] before returning the data back via the ajax request. Possible cause (if using a PHP backend) is multiple escaping, for example [URL=http://php.net/mysql_real_escape_string]mysql_real_escape_string()[/URL] and [URL=http://php.net/addslashes]addslashes()[/URL]. If this is just simply a Javascript problem, you could try just removing the slash … | |
Re: [CODE=php]$q = 'INSERT INTO `users` VALUES (3, "user3", SHA1("pass"), "'.mysql_real_escape_string($fn).'", "'.mysql_real_escape_string($ln).'", "'.mysql_real_escape_string($email).'")';[/CODE] Remember to concatenate variables, within single-quote strings. Also what's the error you recieved? | |
Re: I'm somewhat unsure on your question, however I assume you'd like to do something like below. [CODE]<form name="someForm" action="" onsubmit="checkValues()"> <p> <label for="name">Name:</label> <input type="text" name="name" id="name" /> </p> <p> <label for="email">Email:</label> <input type="email" name="email" id="email" /> </p> <input type="submit" value="Send" /> </form> <script> function checkValues() { //Combine here and/or … | |
Re: Out of curiosity, what type of file are you using to test your upload script (in IE)? | |
Re: Escape the quotes [CODE=php] echo "<img class=\"someClassName\" />"; [/CODE] or use single quotes [CODE=php] echo '<img class="someClassName" />'; [/CODE] -MrDJK | |
Re: Generally checking a Javascript book out of your local library is a good start. Also there is plenty of ebooks on the web, and tutorial sites that can help you out. I'm not to sure on the linking policy on DaniWeb, but here is a couple of useful links. [URL="http://www.lynda.com/JavaScript-tutorials/essential-training-2007/375-2.html"]Lynda.com[/URL] … | |
Re: Forgive the indentation, something weird happens copying and pasting from notepad++. Very simple, expanding circles, could be done a lot better, but I think it gives you an idea, I also attempted to get the colours right from your attached picture, which didn't go that well. Sorry, really didn't see … | |
Re: As far as I am aware, now this could be wrong. Internet Explorer sends, image/x-png. Just a little bit of advice, checking valid types from $_FILES isn't the best idea, [URL="http://php.net/getimagesize"]getImageSize()[/URL] may be the better alternative. -MrDJK |
The End.