Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 190
Search took 0.60 seconds.
Search: Posts Made By: emehrkay
Forum: JavaScript programming 05-28-2009, 01:24 PM
Replies: 6
Views: 2,128
Posted By emehrkay
Wow this is old. Lol I dont remember if I...

Wow this is old. Lol

I dont remember if I ever found a solution, but my logic was sound.

I was breaking it by blocks, so that if the page broke in the middle of a block, add a page break before...
Forum: JavaScript frameworks 03-16-2009, 10:11 PM
Replies: 1
Views: 1,388
Posted By emehrkay
var myVerticalSlide = new...

var myVerticalSlide = new Fx.Slide('vertical_slide');

To

var myVerticalSlide = new Fx.Slide('vertical_slide').hide();
Forum: JavaScript frameworks 06-26-2008, 03:38 AM
Replies: 1
Views: 2,906
Posted By emehrkay
You only need one version of MooTools, get the...

You only need one version of MooTools, get the full latest from the site and use that one only.

The scroll effect is a simple one liner:

//taken from the example site's html
//define the...
Forum: JavaScript frameworks 02-08-2008, 04:26 PM
Replies: 1
Views: 4,475
Posted By emehrkay
are you trying to do that "kwick" effect? If...

are you trying to do that "kwick" effect?

If so, it is pretty much spelled out when you look at the code.
Forum: JavaScript programming 01-24-2008, 02:07 PM
Replies: 10
Views: 1,203
Posted By emehrkay
Thank you. Those were very good reads (I actually...

Thank you. Those were very good reads (I actually stared reading about currying on Crockford's site yesterday).

My issue was with why binding works the way it does (I write a lot of JS with...
Forum: JavaScript programming 01-24-2008, 12:55 AM
Replies: 10
Views: 1,203
Posted By emehrkay
Ok, so binding an object to a method for use in...

Ok, so binding an object to a method for use in another function is basically providing a reference to that object method?

What I dont understand now is the need to return a function wrapped...
Forum: JavaScript programming 01-24-2008, 12:01 AM
Replies: 10
Views: 1,203
Posted By emehrkay
Thanks for the reply. I think that I figured out...

Thanks for the reply. I think that I figured out what was going on.

The problem with passing this.l(); as the callback function to setInterval is that the "this" would then refer to setInterval....
Forum: JavaScript programming 01-23-2008, 06:01 PM
Replies: 10
Views: 1,203
Posted By emehrkay
I found a bind method on Mozilla's site that...

I found a bind method on Mozilla's site that makes it work as expected.

Can anyone explain to me how this works


Function.prototype.bind = function(object) {
var method = this;
...
Forum: JavaScript programming 01-23-2008, 05:30 PM
Replies: 10
Views: 1,203
Posted By emehrkay
What does work, btw setInterval(x.l(),...

What does work, btw


setInterval(x.l(), 1000);
Forum: JavaScript programming 01-23-2008, 05:30 PM
Replies: 10
Views: 1,203
Posted By emehrkay
Help using apply() within an object literal on a setInterval

var x = {
i: 0,

si: function(){
setInterval.apply(this, ["this.l", "1000"])
},

l: function(){
if(this.i < 10) console.log(this.i++);
}
Forum: JavaScript programming 10-18-2007, 09:30 PM
Replies: 11
Views: 828
Posted By emehrkay
and you're not calling the same className for...

and you're not calling the same className for TotalBootCamp in the onload function
Forum: JavaScript programming 10-18-2007, 09:28 PM
Replies: 11
Views: 828
Posted By emehrkay
i changed the parseToFloat() call a little ...

i changed the parseToFloat() call a little

<html>
<head>
<title>National '08 Registration Administration</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link...
Forum: JavaScript programming 10-18-2007, 08:54 PM
Replies: 11
Views: 828
Posted By emehrkay
there is also an error in the get eles function ...

there is also an error in the get eles function


function getElesByClass(c_name){
var eles = document.getElementsByTagName('*');
var ret = [];
for(x in eles){
if(eles[x].className === c_name)...
Forum: JavaScript programming 10-18-2007, 08:50 PM
Replies: 11
Views: 828
Posted By emehrkay
try changing this <td>(TotalAttendees)</td> ...

try changing this

<td>(TotalAttendees)</td>

to

<td id="tot_att"></td>

and change the onload function to
Forum: JavaScript programming 10-18-2007, 08:16 PM
Replies: 3
Views: 859
Posted By emehrkay
you do not need a plus in your zindex. That is...

you do not need a plus in your zindex. That is the only problem that i can see
Forum: JavaScript programming 10-18-2007, 05:24 PM
Replies: 11
Views: 828
Posted By emehrkay
change the id="TotalAttendees" to...

change the id="TotalAttendees" to class="totalAttendees" because ids are supposed to be unique

try this out and let me know how it works. It will only work if the only thing in that cell is a...
Forum: JavaScript programming 10-18-2007, 05:00 PM
Replies: 2
Views: 553
Posted By emehrkay
check out this post, pretty much the same thing ...

check out this post, pretty much the same thing

http://www.codingforums.com/showthread.php?t=125965
Forum: JavaScript programming 10-18-2007, 04:58 PM
Replies: 4
Views: 598
Posted By emehrkay
You had a semicolon after "function add()" ...

You had a semicolon after "function add()"
<html>
<title>Calculator</title>
<script type="text/javascript">
function add(){
var a=document.getElementById('value1').value;
var...
Forum: JavaScript programming 10-18-2007, 04:24 PM
Replies: 4
Views: 598
Posted By emehrkay
The problem is that you do not pass the correct...

The problem is that you do not pass the correct information into your function.

I would add the id attribute to each field and reference the field by id

first number: <input ......
Forum: JavaScript programming 10-18-2007, 04:00 PM
Replies: 1
Views: 666
Posted By emehrkay
I ran this in firebug and it seems to be two...

I ran this in firebug and it seems to be two separate instances of /* EDIT parentObj*/ childObj


var parentObj={
childCount: 0,
childObj: {
id:false,
init: function()...
Forum: JavaScript programming 10-18-2007, 03:56 PM
Replies: 2
Views: 664
Posted By emehrkay
Thanks for the reply. There is a plugin "IE View"...

Thanks for the reply. There is a plugin "IE View" that allows you to create a list of sites that you want to only open in IE that works fine. I asked here because I thought that it may be possible...
Forum: JavaScript programming 10-18-2007, 03:24 PM
Replies: 2
Views: 664
Posted By emehrkay
Is it possible to have a link in FF and force it to open in IE or IE-tab?

At my job we have computers that are set up with restricted rights. Firefox 2 is the default browser (good call), but for some reason a site that the user has to visit is IE only (yeah, wtf).

We...
Forum: PHP 12-04-2006, 07:26 PM
Replies: 1
Views: 708
Posted By emehrkay
define $_SESSION['userid'] as something before...

define $_SESSION['userid'] as something before you set it.

$_SESSION['userid'] = 'NOT LOGGED IN';

then in your checking do

if($_SESSION['userid'] == 'NOT LOGGED IN' blah blah blah...){}
Forum: HTML & CSS 12-02-2006, 01:36 PM
Replies: 5
Views: 1,028
Posted By emehrkay
hey guys, thanks for your help. i figured out the...

hey guys, thanks for your help. i figured out the variable width thing with kinda a kludge, but it does work in all major browsers pc & mac. i just need to tweak it so that during a resize the left...
Forum: HTML & CSS 12-02-2006, 12:45 AM
Replies: 5
Views: 1,028
Posted By emehrkay
if i take away the width, how will the left div...

if i take away the width, how will the left div fill out the remaining area that the right one isnt takign up?
Showing results 1 to 25 of 190

 
Forum Jump

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