Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 271
Search took 0.57 seconds.
Search: Posts Made By: JohnKrutsch
Forum: PHP 04-13-2008, 03:35 PM
Replies: 9
Views: 1,082
Posted By JohnKrutsch
That does not seem to work as using the filesize...

That does not seem to work as using the filesize function on the url I am working with chokes. My app works fine with file unless a user has cyrillic fonts on their page but this app needs to work...
Forum: PHP 04-13-2008, 01:52 PM
Replies: 9
Views: 1,082
Posted By JohnKrutsch
Those options are only available in php6 but yes...

Those options are only available in php6 but yes that is what I need. Is there a way to do it in php5?
Forum: PHP 04-13-2008, 06:00 AM
Replies: 9
Views: 1,082
Posted By JohnKrutsch
file function and utf-8

I am running php5 and need to bring a file in as utf-8 (the file is in utf-8) but php appears to change the encoding. How can I bring in the file and ensure it is in utf-8. I am using the file...
Forum: JavaScript programming 09-11-2007, 05:26 AM
Replies: 18
Views: 4,423
Posted By JohnKrutsch
Try something like this: <a href="#"...

Try something like this:

<a href="#" onclick="arrangeCards();return false">blah</a>
Forum: JavaScript programming 04-01-2006, 09:12 PM
Replies: 12
Views: 1,053
Posted By JohnKrutsch
Correct but with PHP the IDs are not important at...

Correct but with PHP the IDs are not important at all, it is the form element names that get passed through to the server-side. Perhaps the best way to do it would be the way Kor had it but modify...
Forum: JavaScript programming 04-01-2006, 06:31 PM
Replies: 12
Views: 1,053
Posted By JohnKrutsch
The problem with using dom to create or clone...

The problem with using dom to create or clone elements or nodes is that working with an actual namespace is difficult. In short in a crossbrowser situation you won't be able to create an element and...
Forum: JavaScript programming 11-24-2005, 08:30 PM
Replies: 3
Views: 4,711
Posted By JohnKrutsch
Try something like this: ...

Try something like this:

document.body.innerHTML="New HTML here";
Forum: JavaScript programming 04-19-2005, 04:02 AM
Replies: 4
Views: 11,750
Posted By JohnKrutsch
Try something like this: <script...

Try something like this:

<script type="text/javascript">
function insert(el,ins) {
if (el.setSelectionRange){
el.value = el.value.substring(0,el.selectionStart) + ins +...
Forum: JavaScript programming 04-14-2005, 12:13 AM
Replies: 2
Views: 899
Posted By JohnKrutsch
Try something like this: <script...

Try something like this:



<script type="text/javascript">
function Activate(chk_status, idea) {
if(chk_status){
alert("Activating Record " + idea);
}else{
alert("De-Activating Record...
Forum: JavaScript programming 04-13-2005, 06:17 PM
Replies: 21
Views: 6,446
Posted By JohnKrutsch
Sounds cool I will have to check it out.

Sounds cool I will have to check it out.
Forum: JavaScript programming 04-13-2005, 04:56 PM
Replies: 9
Views: 6,166
Posted By JohnKrutsch
Then just trap the keys and run the same loop: ...

Then just trap the keys and run the same loop:


<script type="text/javascript">
document.onkeydown=function(e){
if (!e) var e = window.event;
var code=e.keyCode ? e.keyCode:e.which;...
Forum: JavaScript programming 04-13-2005, 03:19 AM
Replies: 9
Views: 6,166
Posted By JohnKrutsch
Does pressing enter trigger the form submital? ...

Does pressing enter trigger the form submital? If so just loop through the elements then:

<script type="text/javascript">
function capitals(){
var txt=document.forms[0].elements;
for(var...
Forum: JavaScript programming 04-13-2005, 02:30 AM
Replies: 8
Views: 1,136
Posted By JohnKrutsch
Try making these changes: function...

Try making these changes:

function onlyElevenDigits(fld) {
if (!/^\d{11}$/.test(fld.value)) {
alert ("Only an 11-digit number is valid in this box");
fld.value = ""; // clear the field...
Forum: JavaScript programming 04-13-2005, 02:12 AM
Replies: 21
Views: 6,446
Posted By JohnKrutsch
I prefer IE for one reason, the ability to EASILY...

I prefer IE for one reason, the ability to EASILY create scripts that will work on any page through the use of the IE proprietary external.menuArguments object and the registry.

In FF I can do...
Forum: JavaScript programming 04-12-2005, 04:14 PM
Replies: 3
Views: 784
Posted By JohnKrutsch
Do you have this posted so we can see it in...

Do you have this posted so we can see it in action. Or can you show us the form code from page 1.
Forum: JavaScript programming 04-12-2005, 03:54 PM
Replies: 3
Views: 784
Posted By JohnKrutsch
Are page 1 and page 2 two totally different...

Are page 1 and page 2 two totally different pages? in any case try adding a # sign to the action of your form:

<form action="page2.htm#" ...


It seems odd that page two would load then scroll...
Forum: PHP 02-12-2005, 02:34 AM
Replies: 5
Views: 1,615
Posted By JohnKrutsch
Yeah SSH is my only option. So I would have to...

Yeah SSH is my only option. So I would have to have some sort of SSH client on the server then use exec() to call and use the client? Do you have any sample code for this?

Anyone know of a ssh...
Forum: PHP 02-11-2005, 10:29 PM
Replies: 5
Views: 1,615
Posted By JohnKrutsch
SSH using PHP

I can successfully use PHP to ftp files to a sever but now I have to do it over SSH?

One scenario is I have a web based GUI that gets login data for a different server such as URI, Username,...
Forum: General web building 08-21-2004, 04:54 PM
Replies: 30
Views: 3,128
Posted By JohnKrutsch
Here is a great article on why we should code to...

Here is a great article on why we should code to standards:

http://www.alistapart.com/articles/tohell/
Forum: General web building 08-21-2004, 04:44 PM
Replies: 30
Views: 3,371
Posted By JohnKrutsch
The more I read through this the more I get to...

The more I read through this the more I get to thinking that I started this thread in the wrong forum. I am moving it to the General Web Building forum now.
Forum: General web building 08-21-2004, 04:41 PM
Replies: 30
Views: 3,371
Posted By JohnKrutsch
This is all great stuff. As I expected there...

This is all great stuff.

As I expected there are some differing opinions out there, but what good discussion about any ethical issues won't bring out differing opinions. I especially appreciate...
Forum: General web building 08-21-2004, 05:15 AM
Replies: 30
Views: 3,371
Posted By JohnKrutsch
Willy... I wonder how many work weeks I have...

Willy...

I wonder how many work weeks I have spent trying to decode someone else's code on the job. Commenting your code is good form, especially on the job.

For personal stuff that I am just...
Forum: General web building 08-21-2004, 02:57 AM
Replies: 30
Views: 3,371
Posted By JohnKrutsch
Ethics and Client-Side Programming

I was thinking about all the things that we are able to with client-side programming. A lot of it can be down right annoying, but most of it has its place and has been perverted by irresponsible...
Forum: JavaScript programming 08-18-2004, 06:23 PM
Replies: 7
Views: 1,428
Posted By JohnKrutsch
In case anyone is interested here are the results...

In case anyone is interested here are the results of some benchmarking I did:

I loaded the same 10,000 items into each of the different array styles to test their efficiency in creating arrays. I...
Forum: JavaScript programming 08-18-2004, 05:14 AM
Replies: 7
Views: 1,428
Posted By JohnKrutsch
Yeah it is massive amounts I am concerned about...

Yeah it is massive amounts I am concerned about these are just examples to get the point across.

Do you know of any resources where I can read about the scan and extraction that the split...
Showing results 1 to 25 of 271

 
Forum Jump

All times are GMT +1. The time now is 02:23 PM.