430 Posted Topics

Member Avatar for raghujosh
Member Avatar for newbie14
Member Avatar for runeveryday

Doesn't it work if you set the [icode]title[/icode] attribute of the [icode]div[/icode] to that text?

Member Avatar for twiss
0
143
Member Avatar for ivan3510

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 รถ.

Member Avatar for twiss
0
135
Member Avatar for methuselah90

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.

Member Avatar for twiss
0
276
Member Avatar for jacksantho

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].

Member Avatar for twiss
0
104
Member Avatar for FrustratedOwner

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 …

Member Avatar for twiss
0
149
Member Avatar for branding4you

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 …

Member Avatar for branding4you
0
265
Member Avatar for abhi10kumar
Member Avatar for darkslide

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.

Member Avatar for Azmah
0
197
Member Avatar for v_sriram

You could try to use document.open('text/xml'): [url]http://bytes.com/topic/javascript/answers/94628-change-iframe-contenttype[/url]

Member Avatar for v_sriram
0
734
Member Avatar for lovell_82

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.

Member Avatar for diafol
0
539
Member Avatar for SolidSolutions

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.

Member Avatar for twiss
0
153
Member Avatar for lcfjoertoft
Member Avatar for genzoman

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 …

Member Avatar for twiss
0
161
Member Avatar for arshadshaikh
Member Avatar for twiss
0
907
Member Avatar for abhi10kumar
Member Avatar for techsavi
Member Avatar for prem2

You could make your javascript request of a page on your own domain, which then gets the contents of the page you really want.

Member Avatar for Airshow
0
191
Member Avatar for Jessurider
Member Avatar for -==Zero==-

Just click on the link below.. [url]http://developers.facebook.com/docs/plugins/[/url].

Member Avatar for twiss
0
97
Member Avatar for hermann87

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 …

Member Avatar for twiss
0
54
Member Avatar for jacob21

Use:[CODE]window.open('date_time_buy.php?site='+site+'&model='+model+'&url='+temp+'&ip='+ip, '_blank');[/CODE]

Member Avatar for twiss
0
192
Member Avatar for kimi.cena
Member Avatar for praveen_dusari
Member Avatar for dyingatmidnight

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 …

Member Avatar for twiss
0
112
Member Avatar for minart

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 (!).

Member Avatar for minart
0
160
Member Avatar for begueradj
Member Avatar for rotten69

For the second one, you'll need something like [CODE] if($_REQUEST['username'] && $_REQUEST['password'] == $users[$_REQUEST['username']]) [/CODE]

Member Avatar for vibhaJ
0
91
Member Avatar for Aamit

You can't (normally) access javascript variables form php. You'll need to write that function in javascript, and call that function.

Member Avatar for twiss
0
139
Member Avatar for phpbeginners
Member Avatar for nikita.chandra
Member Avatar for ivan3510

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.)

Member Avatar for twiss
0
748
Member Avatar for ms.rhea

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 …

Member Avatar for ms.rhea
0
127
Member Avatar for Sorcher

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].

Member Avatar for twiss
0
164
Member Avatar for kpsbhuvi

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 …

Member Avatar for tawes01
0
628
Member Avatar for Kawaljeet Kaur

Do you want to generate a random password? [url]http://lmddgtfy.com?q=random+password[/url] :)

Member Avatar for CobRalf
0
110
Member Avatar for vijaygupta

Change [icode]location.href='javascript:setCurrency({$f_currency.id_currency})';[/icode] to just [icode]setCurrency({$f_currency.id_currency});[/icode].

Member Avatar for twiss
0
94
Member Avatar for zizuno

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.

Member Avatar for twiss
0
90
Member Avatar for aidant

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?

Member Avatar for twiss
0
117
Member Avatar for devinodaniel

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 …

Member Avatar for twiss
0
165
Member Avatar for twiss

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', …

0
116
Member Avatar for jakizak

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]

Member Avatar for blocblue
0
357
Member Avatar for tactfulsaint

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.

Member Avatar for rpv_sen
0
96
Member Avatar for manish250

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]

Member Avatar for twiss
0
136
Member Avatar for Nathan Campos

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]

Member Avatar for twiss
0
119
Member Avatar for bibiki

For example: [CODE] #navigation { display:inline-block; } a { display:block; width:100%; } [/CODE]

Member Avatar for ko ko
0
78
Member Avatar for Julia25

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 …

Member Avatar for twiss
0
98
Member Avatar for newbie14
Member Avatar for Griffin54

Just give your [icode]form[/icode] a [icode]text-align:center[/icode] style and remove that [icode]p[/icode], and everything looks fine.

Member Avatar for twiss
0
242

The End.