430 Posted Topics

Member Avatar for Gel

You can also use AJAX for that. Than the database is altered in the background, without the need to refresh the page.

Member Avatar for diafol
0
219
Member Avatar for RazorRamon

This won't work. In PHP, you can access variables outside a function only if you make them global or pass them in as arguments (the latter is probably what you want). [CODE=PHP] function greeting($occupancy, $greeting) { if($occupancy < 1) return "Nobody is home"; if($greeting == 'hello') return "Hello"; else return …

Member Avatar for twiss
0
324
Member Avatar for Julia25

Take a look at line 37 and 52 - 56 of the demo page source. If you already have a wrapper for the images, you can just remove 37 & 39, otherwise you can change it into a div. Line 52 can be changed into a div and you'll need …

Member Avatar for twiss
0
84
Member Avatar for bibiki

It does appear, to the right below #right. To place it below #main, give it a [icode]clear:both[/icode] style.

Member Avatar for twiss
0
216
Member Avatar for jatin.jain
Member Avatar for ivan3510
Member Avatar for HelenLF

What have you tried? Look into [icode]new Date().getDay()[/icode], [icode]document.createElement[/icode] and [icode]element.appendChild[/icode].

Member Avatar for twiss
0
61
Member Avatar for aaraf

Don't want to do it. Let the user decide where he wants to go and what he wants to do.

Member Avatar for Troy III
0
101
Member Avatar for 12jony34
Re: HTML

No professional web developer will recommend w3schools. You can read a good summary of all wrong and misleading information on w3schools on [url]http://w3fools.com/[/url]. [url]http://htmldog.com/[/url] has much better tuts for html and css.

Member Avatar for twiss
0
132
Member Avatar for abhi10kumar
Member Avatar for LogicWeb

You could add a container div in the iframe with height:185px; overflow:scroll.

Member Avatar for twiss
0
61
Member Avatar for ivan3510

There are two functions in PHP that return the difference of two strings. The faster and probably better one is levenshtein: [CODE] levenshtein('ab', 'abc'); // 1 levenshtein('abc', 'a'); // 2 levenshtein('abc', 'ac'); // 1 [/CODE] The other one is similar_text, that uses Oliver's description: [CODE] similar_text('ab', 'abc'); // 66.6667 % …

Member Avatar for ivan3510
0
123
Member Avatar for Sanket_s
Member Avatar for mushget

Take a look at [url]http://stackoverflow.com/questions/649614/xml-parsing-in-javascript[/url].

Member Avatar for twiss
0
75
Member Avatar for Rishikeshan

There are several recursive glob functions out there, for example: [url]http://code.google.com/p/hm2k/source/browse/trunk/code/php/functions/rglob.php[/url]

Member Avatar for mschroeder
0
95
Member Avatar for Irishgeezah

First of all, lenght should be length. Also, it is not a function, but a property. If it is 16, it can never be 0. !> should be < and !< should be >. So, the first function can be rewritten to: [CODE] var serial = prompt("Please Enter A Credit …

Member Avatar for twiss
0
75
Member Avatar for rahulephp

It doesn't really make sense to support German or Swedish or any other language that (mostly) uses the Latin alphabet. It is meant to provide an easy way to input non-Latin characters, with a normal keyboard. Characters such as ß can be added using control+alt+s on most layouts, anyway.

Member Avatar for twiss
0
99
Member Avatar for Cap'nKirk

The problem is [ICODE]<div =id="imgsleft">[/ICODE]. It should be [ICODE]<div id="imgsleft">[/ICODE].

Member Avatar for Cap'nKirk
0
76
Member Avatar for MrCapuchino

Chrome does not support local cookies. If you upload your script to a server, it works. ([url]http://www.google.com/support/forum/p/Chrome/thread?tid=23fd2349855c0f17&hl=en[/url])

Member Avatar for MrCapuchino
0
11K
Member Avatar for reygcalantaol
Member Avatar for twiss
0
74
Member Avatar for azegurb

[CODE] $meta = $stmt->result_metadata(); while ( $field = $meta->fetch_field() ) { $parameters[] = &$row[$field->name]; } call_user_func_array(array($stmt, 'bind_result'), $parameters);[/CODE] First, it gets the metadata of your query. Then, it gets all field names, and adds a [I]reference[/I] to the value in the array $row with the key $field->name to $parameters. Normally, …

Member Avatar for twiss
0
116
Member Avatar for debasishgang7
Member Avatar for TheVendor

You could use PHP or another server side scripting language to print that value to javascript: [CODE] <script type="text/javascript"> var i = <?php echo $_GET['nItems']; ?>; ... </script> [/CODE] [QUOTE]I know this is wrong[/QUOTE] I don't know what you know is wrong, but realize that more() should contain a window.location …

Member Avatar for TheVendor
0
1K
Member Avatar for ray-ann
Member Avatar for dietdew12z

This is definitely a javascript running on the site, it is called Inline Text Ads or Content / Context Links. Hiding them doesn't make sense, just remove the script generating them. If the site is hosted on a free hosting, it could be that that hosting places them, take a …

Member Avatar for twiss
0
211
Member Avatar for guif

It is impossible to know the percentage of the image that is loaded, but you can use some preloader image.

Member Avatar for twiss
0
65
Member Avatar for sha1023012

If this code does what you want for fish #1, you could try something like: [CODE] var fishPositions = {}, horizontal = []; for(var fillPosition = 50; fillPosition < 500; fillPosition += 10) horizontal[] = fillPosition; function fishSwim(id) { document.getElementById(id).style.left = horizontal[fishPositions[id]] + "px"; fishPositions[id]++; if (fishPositions[id] == 49) fishPositions[id] …

Member Avatar for twiss
0
124
Member Avatar for tohobaby

Use font-weight: [CODE] radgroup[r].parentNode.style.fontWeigth = radgroup[r].checked ? 'bold' : 'normal'; [/CODE]

Member Avatar for twiss
0
196
Member Avatar for hindu times

Could you try it without the html entities, and also, try to register a handler within you script tag, it's more readable and handy for the quotes. [CODE] <script> FB.init({ appId: '123456789', cookie: true, status: true, xfbml: true }); function shareProduct(captionvar, descriptionvar, picturevar) { FB.ui({ method: 'feed', link: 'http://www.facebook.com/rjthompsonmusic?sk=app_123456789', name: …

Member Avatar for twiss
0
138
Member Avatar for cj101

Instead of disabling Control+Alt+Delete, you can just disable the Task Manager. In HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System, you can add a "DisableTaskMgr" REG_DWORD with "1" as its value. Also, take a look at gpedit.msc -> User Configuration -> Administrative Templates -> System -> Ctrl+Alt+Delete -> Remove Task Manager. Of course, you need to make …

Member Avatar for cj101
0
2K

The End.