Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 500
Search took 0.38 seconds.
Search: Posts Made By: mjlorbet
Forum: JavaScript programming 04-07-2010, 06:01 AM
Replies: 1
Views: 2,069
Posted By mjlorbet
in this particular case you're trying to call...

in this particular case you're trying to call autofill2.... which doesn't exist, the script will break, the return false will never be processed and the browser will follow the link as a result.
Forum: JavaScript programming 04-07-2010, 05:54 AM
Replies: 5
Views: 2,898
Posted By mjlorbet
this code will help get you where you're...

this code will help get you where you're going.... however, the onload event doesn't fire after the browser caches the image

<script type="text/javascript">

aImg = new Image();

aImg.src =...
Forum: Computer Programming 11-16-2008, 08:07 AM
Replies: 7
Views: 10,377
Posted By mjlorbet
sure, post your code

sure, post your code
Forum: JavaScript programming 11-16-2008, 07:55 AM
Replies: 4
Views: 674
Posted By mjlorbet
document.write("<table border='1'>"); for(var i...

document.write("<table border='1'>");
for(var i = 1; i<=12; i++)
{
document.write("<tr><td>" + i + "</td><td>" + n + "</td><td>" + i*n + "</td></tr>\n");
}...
Forum: DOM and JSON scripting 11-16-2008, 07:51 AM
Replies: 1
Views: 2,985
Posted By mjlorbet
use document.location instead of window.location...

use document.location instead of window.location or location.href

document.location.href is a good way to retrieve the location of the document you're looking at but document.location is the way...
Forum: Computer Programming 11-16-2008, 07:17 AM
Replies: 7
Views: 10,377
Posted By mjlorbet
the rules of this forum explicitly prohibit us...

the rules of this forum explicitly prohibit us from giving direct answers to homework, much less giving our past projects to use as your assignment. we can, however give you advice and help you with...
Forum: JavaScript programming 11-16-2008, 07:06 AM
Replies: 3
Views: 646
Posted By mjlorbet
actually, this should be in a server side...

actually, this should be in a server side language discussion, where the code you're looking for would be:

<script type="text/javascript" src="<%=ScriptSource%>"></script>
for asp/asp.net/jsp
...
Forum: Computer Programming 11-16-2008, 06:58 AM
Replies: 7
Views: 10,377
Posted By mjlorbet
you need an idea for a project or you need...

you need an idea for a project or you need somebody else's finished product? what version of c, what compiler are you using, are you looking for a project file for an IDE, and, if so, which one? if...
Forum: JavaScript programming 11-16-2008, 06:51 AM
Replies: 5
Views: 806
Posted By mjlorbet
Gotta say, I agree and disagree, I've been doing...

Gotta say, I agree and disagree, I've been doing this for 15 years, and I learned in very much the same way, started off tweaking the nibbles game in QBasic on DOS 4 and got into the whole gig from...
Forum: JavaScript programming 11-16-2008, 06:17 AM
Replies: 8
Views: 715
Posted By mjlorbet
sidenote ?: syntax (Condition) ?...

sidenote
?: syntax

(Condition) ? (DoIfTrue) : (DoIfFalse)

Example:
alert(i = 0 ? "i is 0" : "i is not 0");
would print "i is 0" when i = 0, and "i is not 0" for any other value of i. This...
Forum: JavaScript programming 11-16-2008, 06:08 AM
Replies: 8
Views: 715
Posted By mjlorbet
that will work too, but there is no reason for...

that will work too, but there is no reason for the for loop, the code will execute once with or without the loop as you're saying execute from i = 0 to before i = 1 incrementing i after each run. ...
Forum: JavaScript programming 11-16-2008, 05:52 AM
Replies: 8
Views: 715
Posted By mjlorbet
will just display the word "prompter();" on the...

will just display the word "prompter();" on the screen

<body onload = "prompter();">
</body>

or

inserting prompter(); before the end of the script tag will execute the call to that method....
Forum: JavaScript programming 11-16-2008, 05:38 AM
Replies: 2
Views: 798
Posted By mjlorbet
Since this appears to be homework I we can't...

Since this appears to be homework I we can't spell out the answer for you but the solution should be something like this:

var Val = prompt("Message");

while(Val != 0)
{
//LOGIC
Val =...
Forum: JavaScript programming 11-16-2008, 05:32 AM
Replies: 8
Views: 715
Posted By mjlorbet
You should be using substr(0, 1) instead of...

You should be using substr(0, 1) instead of at(0), this will return a string of length 1 from position 0 (ie. the first letter). Also, length is not a method, it is a property, so length should not...
Forum: JavaScript programming 07-24-2008, 04:16 PM
Replies: 10
Views: 1,379
Posted By mjlorbet
that code will only work in internet explorer

that code will only work in internet explorer
Forum: JavaScript programming 07-23-2008, 05:59 PM
Replies: 10
Views: 1,379
Posted By mjlorbet
xhrData.detextXhrType(); ...

xhrData.detextXhrType();



xhrData.detectXhrType();


look for spelling errors
Forum: JavaScript programming 07-23-2008, 12:28 PM
Replies: 10
Views: 1,379
Posted By mjlorbet
xhrInited: false; should be xhrInited:...

xhrInited: false;

should be xhrInited: false,

my bad
Forum: JavaScript programming 07-23-2008, 09:02 AM
Replies: 1
Views: 666
Posted By mjlorbet
y = "http://www.bungie.net" +...

y = "http://www.bungie.net" + x.replace(/http:\/\//gi, "").substr(x.replace(/http:\/\//gi, "").indexOf("/"));


although, i don't see why you wouldn't know the name of the site coming out of the...
Forum: JavaScript programming 07-23-2008, 07:57 AM
Replies: 8
Views: 2,122
Posted By mjlorbet
same domain includes port and subdomain (spent a...

same domain includes port and subdomain (spent a very very painful week on getting a workaround for the third party web app that had issues with our security cert, but that's neither here nor there)....
Forum: DOM and JSON scripting 07-23-2008, 07:52 AM
Replies: 3
Views: 1,994
Posted By mjlorbet
http://www.abdulqabiz.com/blog/archives/general/ph...

http://www.abdulqabiz.com/blog/archives/general/php_proxy_script_for.php

looks like the functions you're using are for other files/pages in your application. you need an http proxy page to...
Forum: JavaScript programming 07-23-2008, 07:45 AM
Replies: 4
Views: 747
Posted By mjlorbet
<form name = "myform"> <input name = "chkbx"...

<form name = "myform">
<input name = "chkbx" type = "checkbox" value = "Red"> RED <br>
<input name = "chkbx" type = "checkbox" value = "Blue"> BLUE <br>
<input name = "chkbx" type = "checkbox"...
Forum: ASP 07-23-2008, 07:40 AM
Replies: 7
Views: 2,228
Posted By mjlorbet
1) <%= WriteCategoryName() %> would be the...

1) <%= WriteCategoryName() %> would be the correct syntax, otherwise you're injecting a block of code for execution in the middle of the include statement instead of interjecting a value

2) I'm...
Forum: HTML & CSS 07-23-2008, 07:32 AM
Replies: 4
Views: 3,240
Posted By mjlorbet
<input type="password" id="origPWD" /> <input...

<input type="password" id="origPWD" />
<input type="hidden" id="realPWD" />
<input type="submit" onclick="document.getElementById('realPWD').value = document.getElementById('origPWD').value;...
Forum: JavaScript programming 07-23-2008, 02:09 AM
Replies: 3
Views: 926
Posted By mjlorbet
if the element is there, its innerHTML will...

if the element is there, its innerHTML will exist, regardless if you've set it before, it'll just be empty.

you can do a little cleaning with this though


function setArea(id){...
Forum: JavaScript programming 07-23-2008, 02:02 AM
Replies: 10
Views: 1,379
Posted By mjlorbet
document.getElementById("emailS") is a span and...

document.getElementById("emailS") is a span and you're trying to access the value property, it makes more sense to assign to document.getElementById("email").value, which is your text box (not where...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT +1. The time now is 10:35 AM.