430 Posted Topics
Re: Search for "javascript countdown". | |
Re: I think that your safest bet is to set an onclick handler to those page number links, without removing the href attribute, something like this: [CODE=HTML] <a href="?page=2" onclick="location='?page=2&option='+option.checked;return false">2</a> [/CODE] In PHP, you than have $_GET['option']. Make the var 'option' in javascript the input element. | |
Re: What kind of scripts are you talking about? You're posting in Javascript, but talking about PHP. | |
Re: You can set the 'action' attribute of a form to a page on another site, such as 'http://somesite.com/login.php', if that's what you mean. | |
Re: I don't really understand what you mean with added backslashes, but in regular expressions, you need to escape them. So, to remove one or more backslashes, use: [CODE] preg_replace('/\\+/', '', $x) [/CODE] | |
Re: You'll need to change the header of the flash file, something like this should work: [code] <FilesMatch "\.swf$"> Header set Cache-Control "no-cache, max-age=0, must-revalidate" </FilesMatch> [/code] | |
Re: Nope: [url=http://www.daniweb.com/web-development/web-design/graphics-and-multimedia/28]Graphics and Multimedia[/url]. | |
![]() | Re: For reference, that thread is [url=http://www.daniweb.com/hardware-and-software/microsoft-windows/viruses-spyware-and-other-nasties/threads/366309]here[/url]. |
Re: Use code tags, don't write the question in the title, be a bit more clear about what you want and what part doesn't work. There's a { on line 6 that doesn't belong there. | |
Re: With jQuery you can use something like this: [CODE] $('#category_code option:selected').text() [/CODE] | |
Re: Same as [url=http://www.daniweb.com/software-development/vbnet/threads/307050]this[/url] thread, but take a look at: [url]http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=6694&lngWId=1[/url]. It's for wave files, though, but perhaps it helps. | |
Re: [QUOTE=blocblue]Likewise, the - character is used to specify a range in regular expressions, e.g. 0-3 or a-z. This again is escaped.[/QUOTE] The dash is used for ranges only if it is between two characters. If it is just after [ or before ] you don't need to escape it. | |
Re: Also, remove [icode]outline: 0;[/icode]. It serves no purpose other than making your site less user friendly. | |
Re: I don't exactly know what's wrong, but I wouldn't use tables for this. Just make a single <div id="messsages"/> and add a <div class="message"/> to that, and style .message in your css. | |
Re: You'll need to use some javascript. But why would you want this? It's annoying, use something else (borders, size, color, background) to highlight something. | |
Re: You're escaping things twice, remove the first one. ![]() | |
Re: CSS, definetely. Tables are meant for presenting data, CSS for layout. Every layout should be perfectly possible with CSS, it's simpler, it's easier to make changes to a layout if you use CSS (also with javascript). | |
Re: Are the letters optional? Do you want to match all the parts of this? If both not, and if you want case-insensitivity, use something like: [CODE] /^[a-z]\d{2}[a-z]\d{3}[a-z]\d{2}[a-z]$/i [/CODE] | |
Re: Why don't you want to reboot? How long does that take!? | |
Re: Does this code work for you? If so, is the question how to port this to javascript? You can, but you will need ActiveXObject which works only in IE. | |
Re: Is there a place where you have this live? | |
Re: What doesn't work? How do your get and setCookie functions work? Assuming something like [icode]function setCookie(name, value, expire)[/icode], you'll need to use [icode]setCookie('viewed', 'hidden', 12);[/icode] on the end. | |
Re: About the last example, you can also do this: [CODE] var keys2 = [], i = 0; for (keys2[i++] in items) {} console.log(keys2); [/CODE] | |
Re: Such things are written in javascript. For example: [url]http://jsbin.com/udije4/10/[/url]. | |
Re: Perhaps Android or iOS or something else asks this automatically if you try to add a bookmark in javascript? | |
Re: If the status is 200, it means that you've got a successful response. If not, there's a problem and most likely the response is useless. | |
Re: Can you show the site / code? It might be that you ran into a bug in IE, or there might be a problem with your code. Edit: oops, too late :) | |
Re: POST requests should not be cached. You might want to do some logging, what data does the server get, does it respond correctly? | |
Re: Inside onsomething attributes, you need not prefix code with javascript:. | |
Re: You could use a cookie for this, but the question is, why? Isn't it nicer to change the image after, say, two seconds? | |
Re: You'll have to do some logging: what does work, what doesn't? Do you get back the correct data? If so, are you sure $.fancybox can deal with that data? If not, how do you give it back anyway? | |
Re: If you want to open a seperate window, you'll have to create a page (in php, for example) that views the info you throw at it via GET. I don't really recommend this, though, because there's a limit on how many characters you can send with GET (and especially on … | |
Re: Personally I don't really like Black And Yellow, but that's taste. | |
Re: What did you try? It sounds like the loans are going down and down :) | |
Re: Are you sure you're looking for abksms.com, and not apksms.nl? | |
Re: Generally, this is not possible. What you could try, however, is to make a page on your own server, that gets the page from facebook you want (the login page), and add a script tag that does something like this: [code] self.onunload = function() { window.resizeTo(500, 700); }; [/code] Didn't … | |
Re: Could you at least use code tags and some identation? Also, what does and what does not work? Be a bit more specific in what you want to know. | |
Re: You need to put that function call in window.onload. | |
Re: Margin values are not comma-delimited. Use [icode]margin: 90px 70px;[/icode] if you want 90px on top and bottom and 70 left and right. | |
Re: [icode]a:hover ~ img[/icode]? | |
Re: AJAX is a way of interaction between the client side (i.e., the browser), and the server side (php, for example). In javascript, you ask the browser to request a page from your server. With this request, you can send some data. The server side can respond with text, html (xml, … | |
Re: I'm not really sure what you're trying to do, but perhaps you want to add a break after that line (now line 60, I guess?). ![]() | |
Re: If you have strings as keys in an array, don't put quotes around them in a double-quoted string: [CODE]"Location: $_SERVER[php_self]?url=$_GET[url]"[/CODE] | |
Re: It might help if you add a proper sender name and email, send your mails plain and give them real content. | |
Re: Well, for something as complex as an online chat thing, it makes little sense to me to use a CMS (unless that CMS has a built-in messenger). A library might really help, who knows. | |
Re: You'll need to write some functions in PHP that do the mysql work. add_to_list($user), user_in_list($user), decrease_spots_left(), spots_left(). Then, you'll need to check if there's [icode]$_POST['email'][/icode] (I guess? Or something else, whatever is posted), and if so, execute those functions: [code] if(spots_left() && !user_in_list($user)) { add_to_list($user); decrease_spots_left(); } [/code] Also, [icode]if(!spots_left())[/icode] … | |
![]() | Re: Perhaps what you want is testThis.responseXML? |
Re: Remove the two display:none from the css. | |
Re: Only Opera and Chrome seem to support this. You'll have to validate this on the server side too. |
The End.