Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 500
Search took 4.30 seconds.
Search: Posts Made By: Spudhead
Forum: JavaScript programming 03-01-2013, 08:26 AM
Replies: 7
Views: 281
Posted By Spudhead
You don't say what the actual issue is. Are you...

You don't say what the actual issue is. Are you seeing the above HTML injected into a site you're working on? If so, either your computer, or the server that's hosting the site, or both, has been...
Forum: JavaScript frameworks 10-03-2012, 05:24 PM
Replies: 3
Views: 515
Posted By Spudhead
Hi, First, take the onclick handlers out of...

Hi,

First, take the onclick handlers out of your HTML. It's bad practice.

Update your links to look like:

<a class="load_inline"...
Forum: JavaScript programming 07-11-2012, 03:34 PM
Replies: 6
Views: 333
Posted By Spudhead
For starting with HTML and CSS, try the HTMLDog...

For starting with HTML and CSS, try the HTMLDog tutorials (http://htmldog.com/guides/). The Mozilla Developer Network (https://developer.mozilla.org/en-US/learn) is also an excellent resource, both...
Forum: JavaScript frameworks 07-09-2012, 04:40 PM
Replies: 3
Views: 624
Posted By Spudhead
You don't even need to do the...

You don't even need to do the looping-event-attaching thing, do you? Why not just:

$(function() {

$(".hover-element").on('mouseover', (function() {

...
Forum: JavaScript frameworks 06-08-2012, 03:15 PM
Replies: 1
Views: 408
Posted By Spudhead
You don't need (and shouldn't have) the onclick...

You don't need (and shouldn't have) the onclick as an HTML attribute.

(using jQuery 1.7.2):
​$(function(){
$('td:nth-child(1) span').on('click', function(){
...
Forum: JavaScript frameworks 05-30-2012, 04:41 PM
Replies: 2
Views: 417
Posted By Spudhead
(I'm assuming the "10" is meant to be seconds, in...

(I'm assuming the "10" is meant to be seconds, in which case you'll need to change it to be "10000" - setTimeout() ticks by in milliseconds.)

You're setting your setTimeout() timers all at the...
Forum: Apache configuration 04-05-2011, 12:05 PM
Replies: 1
Views: 1,626
Posted By Spudhead
getting virtual host working accross network under xampp

I've got xampp running on my local (Win7) dev machine.

I'm using virtual hosts to get various dev sites running under that. So relevant bits from my apache/conf/extra/httpd-vhosts.conf look like:...
Forum: JavaScript frameworks 02-25-2011, 02:57 PM
Replies: 2
Views: 1,016
Posted By Spudhead
$('input[type=text]').blur(function(){ ...

$('input[type=text]').blur(function(){
$('<span>').text(($(this).val()=='the_right_answer') ? 'Correct' : 'Wrongamundo').insertAfter($(this));
});



Cross-posting is generally frowned upon....
Forum: JavaScript programming 02-25-2011, 02:39 PM
Replies: 6
Views: 1,611
Posted By Spudhead
What you want is more easily offered by...

What you want is more easily offered by server-side includes. Does your hosting support PHP? If you're paying for it, the answer is probably "yes". With a PHP include you can have one file that...
Forum: JavaScript frameworks 02-23-2011, 04:53 PM
Replies: 1
Views: 416
Posted By Spudhead
I'm guessing that the hu: 'images/' bit means...

I'm guessing that the hu: 'images/' bit means it's looking in your "images" folder for those jpgs - try putting one in there.
Forum: JavaScript programming 02-23-2011, 04:38 PM
Replies: 1
Views: 1,062
Posted By Spudhead
It's gonna be hard to say what's going wrong...

It's gonna be hard to say what's going wrong without seeing the source code. Are you getting any javascript errors on the page?
Forum: JavaScript programming 02-23-2011, 12:13 PM
Replies: 7
Views: 1,168
Posted By Spudhead
<a href="#"...

<a href="#" onClick="changeAction('thispage.php?mode=2');return false;">link2</a>

function changeAction(link) {

document.form2.action = link;
document.forms["form2"].submit();
}
Forum: JavaScript programming 02-21-2011, 04:52 PM
Replies: 8
Views: 1,364
Posted By Spudhead
Piece of cake with jQuery: <!DOCTYPE HTML> ...

Piece of cake with jQuery:

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
<style type="text/css">...
Forum: JavaScript programming 02-21-2011, 04:35 PM
Replies: 1
Views: 545
Posted By Spudhead
Ok, you've got a few basic errors, and a few...

Ok, you've got a few basic errors, and a few areas that can be made a bit simpler. If you haven't already, install Firebug (http://getfirebug.com/) for Firefox and get familiar with using it to track...
Forum: Ajax and Design 02-21-2011, 03:43 PM
Replies: 4
Views: 765
Posted By Spudhead
Isn't it just a case of taking that noteid...

Isn't it just a case of taking that noteid variable out of the save() function (and the JS that gets dropped in via php) and making it global? Then you don't need to pass it into your...
Forum: Ajax and Design 02-21-2011, 02:34 PM
Replies: 4
Views: 765
Posted By Spudhead
I think we need to see what your AJAX functions...

I think we need to see what your AJAX functions are doing, and what these variables are that need to be updated each time the div is.
Forum: General web building 02-21-2011, 12:57 PM
Replies: 2
Views: 902
Posted By Spudhead
I'd give it a "search" button. ...

I'd give it a "search" button.

:cool::thumbsup:
Forum: JavaScript programming 02-21-2011, 12:48 PM
Replies: 1
Views: 1,187
Posted By Spudhead
Well, good luck.

Well, good luck.
Forum: JavaScript frameworks 02-21-2011, 12:23 PM
Replies: 6
Views: 1,565
Posted By Spudhead
$( function(){ ...

$( function(){
$('.image_swap_button').click(function(){
event.preventDefault();
var target_image = $(this).data('target-image');
$('#blaf').BgImageTransition( 'img/' + target_image );...
Forum: PHP 02-21-2011, 11:29 AM
Replies: 12
Views: 625
Posted By Spudhead
http://dev.mysql.com/doc/refman/5.1/en/string-func...

http://dev.mysql.com/doc/refman/5.1/en/string-functions.html#function_length

LENGTH() is the correct function - although I'd get a bit worried if I was running string comparison functions on big...
Forum: JavaScript programming 02-21-2011, 11:03 AM
Replies: 4
Views: 386
Posted By Spudhead
Because you've got line breaks in there - JS...

Because you've got line breaks in there - JS doesn't like variables that split over multiple lines, it tries to interpret each new line as JS.

Either remove all the line breaks or, if you'd like...
Forum: Ajax and Design 02-18-2011, 02:56 PM
Replies: 1
Views: 704
Posted By Spudhead
What does your current code look like?

What does your current code look like?
Forum: PHP 02-18-2011, 12:32 PM
Replies: 1
Views: 785
Posted By Spudhead
You need to change the part that says "width". ...

You need to change the part that says "width".

<td valign="top" width="<?php echo intval(100 / $this->params->get('num_columns')) ?>%" class="article_column<?php echo $divider ?>">

say, to:
...
Forum: PHP 02-18-2011, 12:29 PM
Replies: 1
Views: 638
Posted By Spudhead
I think you've got two choices: change your URL...

I think you've got two choices: change your URL structure, or use javascript to move to the required spot on the page.
Forum: JavaScript frameworks 02-16-2011, 09:36 AM
Replies: 6
Views: 2,043
Posted By Spudhead
There's a couple of ways, one might be to use the...

There's a couple of ways, one might be to use the data() (http://api.jquery.com/jQuery.data/) function to store whether the panel is open or not, something like this:

$(".flip").click(function(){...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT +1. The time now is 11:30 PM.