430 Posted Topics
Re: Try to change if to while and remove the first }. | |
| |
Re: Doesn't it work if you set the [icode]title[/icode] attribute of the [icode]div[/icode] to that text? | |
Re: You'll have to change the charset somewhere, perhaps iso-8859-1 instead of utf-8, or the other way around. What could help is just change the charset of the page in your browser, and look for which charset you get the รถ. | |
Re: You could either echo back all values (for example: [CODE]<input name="username" type="text" class="required" value="<?php echo $_POST['username']; ?>" />[/CODE]), or you could move the validating to a seperate php file and call that with ajax. | |
Re: CSV is very easy to parse, there are even two functions for it: [icode]str_getcsv[/icode] and [icode]fgetcsv[/icode]. For excel files, you could look into [url]http://phpexcel.codeplex.com[/url]. | |
Re: You'll need to create a backend script, where users can create the form. You can choose to generate an html file there, but it's probably better to save everything into a database and create a seperate (frontend) php thing that generates the form. The submit button should post everything to … | |
Re: I would do something like this: - Get all rows - Determine the highest - Print all options [CODE] <?php $sql = "SELECT * FROM `tbl_range`"; $result = mysql_query($sql); while($row = mysql_fetch_assoc($result)) $rows[] = $row; if($rows) { foreach($rows as $row) if($row['fld_priceto'] > $max) $max = $row['fld_priceto']; foreach($rows as $row) echo … | |
Re: I think you should not be worried. If someone has a copyright on a youtube video, he'll go to youtube, not your site. If the video is removed by youtube, it won't play on your site, too. | |
Re: You could try to use document.open('text/xml'): [url]http://bytes.com/topic/javascript/answers/94628-change-iframe-contenttype[/url] | |
Re: Also, are you sure that your hostname ends in .net? It could be, of course, but normally it's just localhost. And, do you need to use this class? There are [B]really[/B] strange functions in it. Take a look at mysqli, for example. ![]() | |
Re: On my computer IE9 crashes on both pages. I don't know what causes this exactly, but chrome renders the pages pretty slow already, and it's 5000 lines of source. | |
Re: Do you want to create an excel file? | |
Re: The problem is, that with .not(), you don't select children (which is what you want), but the elements you selected before (with [name*=form1], in this case). Also, it's more logical to use the id of the form to select it. The last thing is that, if you click the checkbox … | |
Re: What version is that ffmpeg for? And what version of PHP are you running? Those should match. | |
Re: What did you do? Did you follow some sort of guide? | |
Re: You could make your javascript request of a page on your own domain, which then gets the contents of the page you really want. | |
Re: What have you tried? What doesn't work? | |
Re: Just click on the link below.. [url]http://developers.facebook.com/docs/plugins/[/url]. | |
Re: In the second version, without return, the function is called, and noting else. In the first version, with return, the [i]return value of the function[/i] is returned. If that return value is [i]false[/i], the default action is cancelled. I don't think you can cancel onchange, but if you return false … | |
Re: Use:[CODE]window.open('date_time_buy.php?site='+site+'&model='+model+'&url='+temp+'&ip='+ip, '_blank');[/CODE] | |
Re: You're missing a { at line 17, and a } before line 21. | |
Re: You could just replace ',' with '.'. | |
Re: In other words, you want to check the user input, before a form is submitted? First, assign a submit handler: [CODE] document.getElementById('form_id').onsubmit = function() { // some validating code }; [/CODE] If I understand you right, you want to access the database, to check if the author exists? Be careful … | |
Re: The url might fail (at least in Internet Explorer) when it's longer than 2083 characters. Edit: some old versions of Firefox had this restriction too, but since at least 1.5 they supports lengths of up to 2 GB (!). | |
![]() | Re: Can you post some of the code TinyMCE produces? |
Re: For the second one, you'll need something like [CODE] if($_REQUEST['username'] && $_REQUEST['password'] == $users[$_REQUEST['username']]) [/CODE] | |
Re: You can't (normally) access javascript variables form php. You'll need to write that function in javascript, and call that function. | |
Re: Yes, window.onunload :D | |
Re: Which version of IE doesn't work? What happens? | |
Re: I believe that the second version should be just [icode]document.embeds['sound'].GetDuration() / document.embeds['sound'].GetTimeScale()[/icode], but just test it in all browsers to see if it works. (It should.) | |
Re: Do you mean that the user cannot submit your form more than 10 times? You could store a cookie with a count, or you could make a database table for it (ip, count), but in both ways the user may still submit the form, on another browser or from another … | |
Re: If you want to want the button to remain disabled if you enter a space (or 2), add [icode].replace(/^\s+|\s+$/g,'')[/icode] after [icode].value[/icode]. | |
Re: You can't access the file selected from javascript alone. Also, you can't upload a file with AJAX. You can, however, submit your form to an iframe. Than, you can check the file's contents with PHP and echo back the results (and a javascript that calls the iframe parent). Also look … ![]() | |
Re: Do you want to generate a random password? [url]http://lmddgtfy.com?q=random+password[/url] :) ![]() | |
Re: Change [icode]location.href='javascript:setCurrency({$f_currency.id_currency})';[/icode] to just [icode]setCurrency({$f_currency.id_currency});[/icode]. | |
Re: I would recommend to use a single line that handles a missing slash, and use [R=301] for your redirects (it's not temporary). Then, you can figure out more easily which parts work and don't work. | |
Re: What happens if you change [CODE]<button onclick="key(7)">7</button>[/CODE] to [CODE]<input type="button" onclick="key(7)" value="7" />[/CODE] , etcetera? | |
Re: To alter the database, you'll still need PHP. You need to write some (one or many) PHP scripts that do something with the POST data you throw at them with AJAX and give some sort of response to the javascript (for example, a success notice). A pretty good intro is … | |
Hi all, I'm trying to match all PHP reserved keywords in a string, but this string also contains a bunch of \4 characters [i]between[/i] the letters. So, for example, if I have the string [ICODE]'f\4u\4n\4c\4t\4i\4o\4n@@@some other weird characters@@@'[/ICODE] and the array [ICODE]['abstract','and','array','as','break','case','catch','class','clone','const','continue','declare','default','do','else','elseif','enddeclare','endfor','endforeach','endif','endswitch','endwhile','extends','final','for','foreach','function','global','goto','if','implements','interface','instanceof','namespace','new','or','private','protected','public','static','switch','throw','try','use','var','while','xor'][/ICODE] and I want to make 'function' match '\4f\4u\4n\4c\4t\4i\4o\4n\4', … | |
Re: Note that it's pretty usual to indeed redirect [url]http://example.com/profile.php?user=username[/url] to [url]http://example.com/username[/url] or [url]http://example.com/user/username[/url]. This is also possible with mod_rewrite. It should be something like: [CODE] RewriteEngine On RewriteRule ^profile\.php\?user=(.*) user/$1 [R=301] RewriteRule ^user/(.*) profile.php?user=$1 [/CODE] | |
Re: This is not a code snippet, just a question. What error does it throw? Please post some more of your code, just having an error doesn't mean you should change the MySQL functions you use. | |
Re: The third argument. The second is the window name, the third is the 'features': [CODE] window.open("multipleSchedule.jsp?date="+f_date+"&date1="+f_date1, "window", "toolbar=no,scrollbars=no"); [/CODE] | |
Re: It's best to use php, for example, to echo the file into the javascript var. [CODE]var text = <?php echo json_encode(file_get_contents('test.txt')); ?>;[/CODE] | |
Re: For example: [CODE] #navigation { display:inline-block; } a { display:block; width:100%; } [/CODE] | |
Re: The width of the browser width is [icode]window.innerWidth[/icode], but [b]don't[/b] test if it's 1024, etc, because even if the user's screen resolution is indeed 1024x768, the window can be resized and it will be something else. [icode]screen.width[/icode] is the width of the screen, not the browser window, but same story … | |
Re: Just give your [icode]form[/icode] a [icode]text-align:center[/icode] style and remove that [icode]p[/icode], and everything looks fine. |
The End.