Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 63
Search took 0.15 seconds.
Search: Posts Made By: thesam101
Forum: Java and JSP 09-26-2012, 10:39 AM
Replies: 2
Views: 978
Posted By thesam101
Hi ThetaZero You are setting the value of i...

Hi ThetaZero

You are setting the value of i relative to the size of the ArrayList, but you are removing from the array list. I haven't studied your code, but you may want to replace this:
...
Forum: JavaScript programming 12-26-2011, 12:45 AM
Replies: 2
Views: 308
Posted By thesam101
easiest way? Use JQuery: ...

easiest way? Use JQuery:

http://api.jquery.com/slideToggle/

:D
Forum: JavaScript programming 12-14-2011, 05:40 PM
Replies: 4
Views: 321
Posted By thesam101
Very true.

Very true.
Forum: JavaScript programming 12-14-2011, 04:32 PM
Replies: 4
Views: 321
Posted By thesam101
Javascript isn't 'block scope' meaning any...

Javascript isn't 'block scope' meaning any variable declared inside blocks (such as if) can be accessed outside, and vice versa.

So in short, no, in javascript, it makes no difference whatsoever....
Forum: JavaScript programming 12-13-2011, 10:19 PM
Replies: 8
Views: 446
Posted By thesam101
Hi kev3kev3 Well it really depends on a...

Hi kev3kev3

Well it really depends on a couple of things. Do you want to search for EVERY instance of the string in the array? (for example if the string appears more than once in the array do you...
Forum: JavaScript programming 12-13-2011, 09:19 PM
Replies: 4
Views: 375
Posted By thesam101
Or just do that lol, damn my lack of regex...

Or just do that lol, damn my lack of regex knowledge :o
Forum: JavaScript frameworks 12-13-2011, 03:13 PM
Replies: 2
Views: 320
Posted By thesam101
You could have addressed this all in one thread. ...

You could have addressed this all in one thread.

Worth merging:

http://www.codingforums.com/showthread.php?p=1170134
Forum: JavaScript programming 12-13-2011, 03:09 PM
Replies: 4
Views: 375
Posted By thesam101
Hi Albana_12 your script gets the last...

Hi Albana_12

your script gets the last character of the eventId, so i'm presuming in the original eventId thats passed to it, there is a string before the number? like so:

foo12

for...
Forum: JavaScript programming 12-13-2011, 02:38 PM
Replies: 10
Views: 5,359
Posted By thesam101
Hi wisar1111 Why not just use JQuery which...

Hi wisar1111

Why not just use JQuery which will do D&D for you?:

http://jqueryui.com/demos/draggable/#default

:thumbsup:
Forum: JavaScript programming 12-11-2011, 10:01 PM
Replies: 7
Views: 578
Posted By thesam101
Hi phenom01 Yes, myArray would hold the...

Hi phenom01

Yes, myArray would hold the values. :thumbsup:

Can we see the full code? (the code you are using to access it) As I suspect that is where the problem lies :eek:

P.S. I should...
Forum: JavaScript programming 11-10-2011, 09:00 AM
Replies: 6
Views: 390
Posted By thesam101
what on earth? lol Old Pedant gave you...

what on earth? lol

Old Pedant gave you constructive critisim. You expect him to pour through your undebugged code AND re-write it all for you?! That not what a forum is for, it is to offer advice...
Forum: JavaScript frameworks 11-09-2011, 04:25 PM
Replies: 3
Views: 567
Posted By thesam101
Just incase you copy and pasted it, i made a...

Just incase you copy and pasted it, i made a slight typo (which i fixed), in getElementById, it said, getElemtentById, but should getElementById
Forum: JavaScript programming 11-09-2011, 04:03 PM
Replies: 2
Views: 554
Posted By thesam101
Hi theflyingminstr apart from the fact that...

Hi theflyingminstr

apart from the fact that its prefferable to use a pure javascript window.onload event rather than onload="", I see nothing wrong with your code.

What isn't happening that you...
Forum: JavaScript programming 11-09-2011, 02:00 PM
Replies: 7
Views: 951
Posted By thesam101
Hi Kagi77 something like this?: ...

Hi Kagi77

something like this?:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">...
Forum: JavaScript frameworks 11-09-2011, 01:44 PM
Replies: 3
Views: 567
Posted By thesam101
Hi brann_ Your method is quite round-about. ...

Hi brann_

Your method is quite round-about.

Firstly I should mention, that your <script> tag should declare the type attribute, and it should be:

<script type="text/javascript">

Then...
Forum: JavaScript frameworks 11-03-2011, 08:46 PM
Replies: 6
Views: 607
Posted By thesam101
Hi fishbaitfood It depends how you are...

Hi fishbaitfood

It depends how you are dynamically creating the elements.

If you are adding them to the DOM properly, then normal value retreival methods should be fine (treat them as static...
Forum: JavaScript programming 11-02-2011, 11:41 PM
Replies: 9
Views: 476
Posted By thesam101
Hi Scriptr Its doing that becuase you are...

Hi Scriptr

Its doing that becuase you are passing it the function name here:

document.getElementById("grade").innerHTML = grade;

I'm pressuming you mean to put this:
...
Forum: MySQL 09-30-2011, 10:35 AM
Replies: 11
Views: 408
Posted By thesam101
Hi FlashDance no need for the where clause. ...

Hi FlashDance

no need for the where clause.


the query:
select id from products

by itself will return all the IDs. :thumbsup:
Forum: JavaScript frameworks 09-21-2011, 06:22 PM
Replies: 11
Views: 440
Posted By thesam101
You didnt use my code the main fix in my...

You didnt use my code

the main fix in my code was this:

window.location("your.html")

should be this:

window.location.href = "your.html";
Forum: HTML & CSS 09-21-2011, 04:43 PM
Replies: 5
Views: 481
Posted By thesam101
Hi wwwwww As the others have said, a...

Hi wwwwww

As the others have said, a server-side language like php would be required. However, if you are only doing this on a local machine, and you do not need to distinguish between the people...
Forum: JavaScript frameworks 09-21-2011, 04:33 PM
Replies: 11
Views: 440
Posted By thesam101
Hi rsines <script type="text/javascript"> ...

Hi rsines

<script type="text/javascript">
function newLocation()
{
var today = new Date();
var daynum = today.getDOY();

if ((daynum => 243)&&(daynum <= 283))
{
Forum: PHP 09-19-2011, 10:08 PM
Replies: 17
Views: 3,757
Posted By thesam101
Oh dear, i'm sorry, my freetyping seem to have...

Oh dear, i'm sorry, my freetyping seem to have struck twice, this:

while ($row = mysql_fetch_array($result)) {
echo "ids[ids.length] = $row[userid]";
}

should be this:

while ($row1 =...
Forum: PHP 09-19-2011, 08:27 PM
Replies: 17
Views: 3,757
Posted By thesam101
Hi naveendk.55 I'm very sorry, i made a...

Hi naveendk.55

I'm very sorry, i made a slight error (i did say it was freetyped lol)


This:

echo "names[names.length] = $row[userid]";

should be this:
Forum: HTML & CSS 09-19-2011, 03:41 PM
Replies: 2
Views: 476
Posted By thesam101
Hi ziggyster2007 I hope when you say...

Hi ziggyster2007

I hope when you say marquee, you do not mean you are using the marquee tag :eek: thats horribly depreciated i'm afraid :( javascript alterntives should be used. A google form...
Forum: PHP 09-19-2011, 03:37 PM
Replies: 17
Views: 3,757
Posted By thesam101
Hi naveendk.55 That <script> section I...

Hi naveendk.55

That <script> section I provided should go in the head section like I stated :thumbsup:

i.e. somewhere between the <head> and </head> tags.
Showing results 1 to 25 of 63

 
Forum Jump

All times are GMT +1. The time now is 11:19 AM.