Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 51
Search took 0.10 seconds.
Search: Posts Made By: Prime8
Forum: JavaScript programming 01-04-2013, 05:52 PM
Replies: 54
Views: 954
Posted By Prime8
you need an event listener on your checkboxes....

you need an event listener on your checkboxes. Something like this:

<td id="Obj2009" class="Not_Done" onchange='myfunction()'>2009 Objectives</td>

Then you use javascript or some other...
Forum: JavaScript programming 01-04-2013, 05:24 PM
Replies: 26
Views: 751
Posted By Prime8
I cleaned up some things I realized weren't doing...

I cleaned up some things I realized weren't doing anything in my php.


<?php
$TNimgDir = "./img/tn/*";
$imgDir = glob('./img/*');
foreach (glob($TNimgDir) as $image)
{...
Forum: JavaScript programming 01-04-2013, 04:54 PM
Replies: 26
Views: 751
Posted By Prime8
Hello, this helped me a lot as I was doing...

Hello, this helped me a lot as I was doing something similar. I have a question, maybe it will help the OP as well.

I have a gallery which is basically working, but it works much slower than I...
Forum: MySQL 12-15-2012, 03:28 AM
Replies: 18
Views: 1,791
Posted By Prime8
It seems to work, although I don't have a table...

It seems to work, although I don't have a table that matches the data yet. I'll try to throw one together.

Note: You did have 1 typo -
while ($row = mysql_fetch_array($result)
while ($row =...
Forum: MySQL 12-14-2012, 08:42 PM
Replies: 18
Views: 1,791
Posted By Prime8
Here's my function edited to match the example: ...

Here's my function edited to match the example:

function theAfunction()
{
var afil = 0;
var thS0 = document.getElementById('A');
$("tr.rowhid").attr("class","rowfil");...
Forum: MySQL 12-14-2012, 08:14 PM
Replies: 18
Views: 1,791
Posted By Prime8
FWIW, I was able to achieve my goal (obviously...

FWIW, I was able to achieve my goal (obviously without sorting) using jquery. I don't think it would have been much more difficult using vanilla js though. I wrote a function that loops through the...
Forum: MySQL 12-14-2012, 04:13 AM
Replies: 18
Views: 1,791
Posted By Prime8
Maybe (likely) I've missed something fundamental....

Maybe (likely) I've missed something fundamental. What do you mean?
Forum: MySQL 12-14-2012, 12:58 AM
Replies: 18
Views: 1,791
Posted By Prime8
So I've added a variable that I can increment in...

So I've added a variable that I can increment in my while loop to give each <tr> and <td> a unique id and removed the calls to the php functions, I'm wondering if I can write the functions in...
Forum: MySQL 12-13-2012, 03:58 AM
Replies: 18
Views: 1,791
Posted By Prime8
Yea this is the key, I think I'm going to have to...

Yea this is the key, I think I'm going to have to write it. One of the things I want to do is filter the data without the need to send a new query to the server. I'll do some poking at it and see how...
Forum: PHP 12-11-2012, 12:15 AM
Replies: 2
Views: 302
Posted By Prime8
Your file: ltd-addcompany-01.txt starts with <?...

Your file: ltd-addcompany-01.txt starts with <? but doesn't end with ?>. You want this:

<?php
.
.
.
?>
Also, in ltd-addcompany-02.txt it looks like you comment out everything except where you...
Forum: PHP 12-10-2012, 11:58 PM
Replies: 4
Views: 301
Posted By Prime8
I'm a newb, so feel free to ignore me but I think...

I'm a newb, so feel free to ignore me but I think as you add data this will get more and more complex. My guess is a reference to the parent in the child's data set would make this easier.

edit:...
Forum: MySQL 12-10-2012, 11:43 PM
Replies: 18
Views: 1,791
Posted By Prime8
You've nailed it Old Pedant, but for the last...

You've nailed it Old Pedant, but for the last part, where I call the function is where it falls over. I could, in that function set $a = 'something' just not a $_POST[]. With php, $_POST causes the...
Forum: MySQL 12-09-2012, 06:32 AM
Replies: 18
Views: 1,791
Posted By Prime8
PHP + MYSQL filter query results dynamically (without sending back to the server)

Hello, I have a database I am trying to perform some filtering on. The default display is all of the records (working - or was before I tried what I'm about to post), and I have some inputs (drop...
Forum: JavaScript programming 05-07-2012, 02:48 PM
Replies: 4
Views: 584
Posted By Prime8
To reiterate what Philip said, js functions are...

To reiterate what Philip said, js functions are writen like this:

function functionName()
{
code to be executed;
}

You're missing brackets, it's going to give you all sorts of errors without...
Forum: PHP 04-18-2012, 01:28 AM
Replies: 13
Views: 679
Posted By Prime8
You could do it pretty easily by adding an...

You could do it pretty easily by adding an onChange function to your select, something like:


<li>You have <b><span id="mess">10</b></span> stats remaining.</li><br />
...
Forum: JavaScript programming 04-07-2012, 04:16 PM
Replies: 10
Views: 1,578
Posted By Prime8
I think so. Lets say the shadow of understanding...

I think so. Lets say the shadow of understanding is creeping up on me.

So if I create any function, like this:

function test(a,b,c);
Then I set a variable to that function like this:
var V =...
Forum: JavaScript programming 04-06-2012, 11:14 PM
Replies: 10
Views: 1,578
Posted By Prime8
That did it! Right away I see that you got...

That did it!

Right away I see that you got rid of the bindinfowindow function I had. I don't really understand how the 'html' variable in function createMarker is working, I see how it sets the...
Forum: JavaScript programming 04-06-2012, 10:17 PM
Replies: 10
Views: 1,578
Posted By Prime8
I'm developing offline, but here is the full...

I'm developing offline, but here is the full script:


var infowindow = new google.maps.InfoWindow();
var map = new google.maps.Map();
var side_bar_html = "";
var gmarkers = [];
var shortname;...
Forum: JavaScript programming 04-06-2012, 10:02 PM
Replies: 10
Views: 1,578
Posted By Prime8
I actually have been. I've been staring at the...

I actually have been. I've been staring at the source for that for days.

This isn't the first iteration I've tried unfortunately. I originally though that at least this line:
side_bar_html += '<a...
Forum: JavaScript programming 04-06-2012, 09:29 PM
Replies: 10
Views: 1,578
Posted By Prime8
I'm using it like 'i' gets used commonly. I...

I'm using it like 'i' gets used commonly. I originally had it as 'i', but tried it as 'k' to make sure it wasn't getting confused.
Forum: JavaScript programming 04-06-2012, 08:43 PM
Replies: 10
Views: 1,578
Posted By Prime8
google maps api v3 - sidebar problem

Hello, I had this working in v2, but I'm migrating to v3 and I'm having some trouble with my sidebar. I think it might be variable scope problem, but I can't find the answer.

I have a form which...
Forum: PHP 03-28-2012, 11:58 PM
Replies: 28
Views: 1,406
Posted By Prime8
You need to have your form action point to your...

You need to have your form action point to your php script. So the html of your form will look something like this:


<html>
.
.
.
<form id='form1' name='form1'...
Forum: PHP 03-28-2012, 11:49 PM
Replies: 6
Views: 513
Posted By Prime8
AFAIK you can't send cross server HTTP requests,...

AFAIK you can't send cross server HTTP requests, but I'm pretty new at this.
Forum: XML 03-14-2012, 12:54 AM
Replies: 3
Views: 854
Posted By Prime8
I should have been clearer, but your the variable...

I should have been clearer, but your the variable y should be the id of the <td> you are trying to put the nodeValue in to.
Forum: XML 03-14-2012, 12:48 AM
Replies: 3
Views: 854
Posted By Prime8
Hello, So first, something I learned (from...

Hello,

So first, something I learned (from Old Pedant in another thread) is that you can create elements like this:

src: http://www.codingforums.com/showthread.php?t=240555
function()
{
var...
Showing results 1 to 25 of 51

 
Forum Jump

All times are GMT +1. The time now is 04:03 PM.