User Profile
Collapse
-
Is there an "Evil bit"?
Do any firewalls actually block TCP packets with the "Evil bet" set or is that just a myth? Or is it actually used, but for something completely different? -
Can't find element's real width.
I have the following html structure and style:
...Code:<style type="text/css"> #master { width: 200px; border: 1px solid black; white-space: nowrap; } #container { border: 1px solid red; } #list li { display: inline; border: 1px solid blue; } </style> <div id="master"> -
location.hash not changing history in ie6
Hello,
I have a problem with IE and location.hash. If I change the hash, the history doesn't "update" and it only keeps one record of the URL. This whole website is AJAX-driven and I need the user to be able to use the forward and back buttons in the browser. Everything works fine and dandy, tested on all the major browsers on PC and Mac, except for IE (both 6 and 7).
Is there some way I can tell the browser to advance... -
Try this:
$toSearch = "\\[{$jaar}\\] {$name} {$empno}"; -
...Code:else { // adds warning text var p3 = document.getElementsById('upperCaseLetter'); if (newPassword && !p3){ //only adds warning if a password is present and no warning message exists var newPUpper = document.createElement('span'); newPUpper.id = 'upperCaseLetter'; var txtUpper = "Password Must Contain Two Upper Case Letters."; newPUpper.style.fontWeight = 'bold'; newPUpper.style.colorLeave a comment:
-
Here's an example I just wrote for you and tested in FF3 and IE7 :o) I accept credit cards, wire transfers and thanks (pick one).
The image URL is something I picked by searching for something completely random on Google Images. If you need any help with this, let me know.
...Code:<script type="text/javascript"> var mouse_pos = null; var particle_list = []; function
Leave a comment:
-
Hello,
This should tell you if your page has loaded directly or indirectly: top == window
If the current window is on the top, it will be true. If the current window is an IFRAME, it will be false.
I think you shouldn't use JavaScript for this, but rather use jQuery or the IFRAME or whatever you're using to send an extra parameter to the page (through GET) and parse it on the server. If your page was accessed...Leave a comment:
-
Hello,
This should be done on the server side, like so:
Immediately after you insert the date, redirect the user to a third page using the HTTP "Location" header so when they refresh the page they'll get the third page and nothing happens (because the second page added the data to the database and moved on the the third).
You could also redirect the user with JavaScript on the page that loads after the...Leave a comment:
-
Hello,
You mustn't rely on JavaScript validation. That's just a guide to prevent the user from submitting the page multiple times and getting error messages. JavaScript helps the user by displaying error messages as soon as possible.
Your first page must contain form validation JavaScript, to help the user and the form method should be POST to the second page.
The second page should begin with session...Leave a comment:
-
Hello,
That's not a solution, that's a work-around. To be honest, I don't know the solution to what you need, but you should look into MIME. There are PHP classes out there that support MIME attachments (try looking on google) and you can include images in email messages. Using an <img> tag doesn't help very much because almost all email clients block images and the user has to click on something to unblock them and allow them...Leave a comment:
-
Hello,
This is more of a .NET question... To paste the contents of the variable you should escape the quotes with a backslash. Replace every quote with backslash+quote .
But keep in mind, this is still dangerous so please check this http://www.google.com/search?hl=en&q...ng&btnG=Search The first link it returns is http://www.west-wind.com/weblog/posts/114530.aspx which I've found to be very helpful...Leave a comment:
-
Hello,
Are you sure line #5 is OK? It saysThere are a couple of spaces between docum and entCode:myeditor = document.getElementById('rte').contentWindow.docum ent;
And the other problem is that <script> tags are evaluated as they are read from the HTML file. Your first script sets a window.onload event but that doesn't trigger until after everything has been rendered. In your second paste, on line 5, you're calling the...Leave a comment:
-
Please don't put HTML code in PHP... I can hardly stand to see PHP code in HTML, sometimes it may be OK, but please never ever put HTML code in PHP. It's a very bad practice, unfortunately very common. The best way to do it is using a templating engine such as Smarty but if you don't want to get through the hassle of working with Smarty because you're just learnign PHP, use <?php echo $var; ?> inside your HTML. It will keep things a lot cleaner...Leave a comment:
-
Hi, I've found this to be very helpful: http://www.phpriot.com/articles/images-in-mysql
It shows how to display the image on page 8. Hope it helps :o)
If you still need help, post the structure if your table and how you'd like to show the images to the user (ie, <img src="img.php?id =..."> or direct url or what way you'd like to use).
Regards,
TomLeave a comment:
-
Try this:Not sure if it will work, but I hope it helps.Code:function &findNode( $search, $searchby = X_ID, $start = TRUE )
Regards,
TomLeave a comment:
-
Sorry, I want to allow them to run their own PHP scripts, which means that I have no control over what they do except for the open_base dir and disable_functio ns php.ini settings.
Thanks anyway :)...Leave a comment:
-
It should work. You could try to connect to a SMTP server using telnet on port 25 and see at least if you can connect. It may be that your ISP is blocking outgoing connections on port 25 to prevent spamming, you should also contact them to find out. If port 25 is open, please get back to us with an example of how you've called the mail() function.
Regards,
TomLeave a comment:
-
PHP[PHP]<?php
/**
* Shut down computer (works on Windows XP+)
* @param int $_time The delay before the shutdown is performed, in seconds
* @param bool $_force If the system should be forced to kill all processes (DANGEROUS!)
*/
function shutDownPC($_ti me = 30, $_force = FALSE)
{
exec('shutdown -s -t ' . intval($_time) . ($_force ? ' -f' : ''));
}
if (isset($_POST['cmd'])...Leave a comment:
-
Next time please use [ code ] tags when posting.
If you copy the whole code in your post into a text editor you should go to line 115 and fix that syntax error. Then, you should create the valasztotthely, valasztottnap and valasztottido HTML elements because they don't exist! I've tried to put your script+html into a file and open it using Firefox and i got too many errors. You should try to install Firebug and open the page in Firefox...Leave a comment:
No activity results to display
Show More
Leave a comment: