ive tried a number of variations on order, placing the code directly in the page, placing it in a file and linking to the file... nothing works... but other javascript functions work correctly......
Type: Posts; User: thenajsays; Keyword(s):
ive tried a number of variations on order, placing the code directly in the page, placing it in a file and linking to the file... nothing works... but other javascript functions work correctly......
I'm having an issue with prototype...
I have the following code that I want to execute:
Event.observe(window, 'load', function(){
$('mesTour1').hide();
$('mesTour2').hide();...
SOLVED
$$('.rate').each(function(element,i){
element.addEvent('mouseup', function(){
var myStyles = ['nostar', 'onestar', 'twostar', 'threestar', 'fourstar', 'fivestar'];
var newPosition;...
ok, ive made some serious headway... it updates the database and i know it has the ability to update the rating correctly... for some reason its not and i cant quite figure out what im missing......
a lil more info... i know how to structure an ajax server request, both traditionally and via mootools... its making this code dynamic that im having a problem with
im trying to add a star rating system to a website. id like to do something elegant graphically instead of just using a drop down... the javascript framework im using is mootools and i found a great...
got it
ok, i have an index with a content include... with a certain content include, iit leaves off the close tags for body, html & a div tag as well as omitting another include for the footer...
here is...
thanks... completely obvious to me now! i was having a doorknob moment! :) sorry!
that doesnt really make sense to me? heres my script:
<?php
$action = $_REQUEST['action'];
//$id = $_REQUEST['id'];
echo "<h2>Edit Listing Type</h2>\n";
if ($action == 'delete')
{
$id...
im having a bit of trouble working out a problem... i have a PHP form with a drop down. if the form is called to add a new record into the database, the default select option is set. if the form is...
im currently using a prototype add on for one of my sites and id like to convert it to mootools... problem is, i dont know the first thing about prototype! i stumbled upon this before i learned any...
anyone know a script that can detect IE8?
yup... i believe all you need to do is save the file with a PHP extension as opposed to HTML (or JS) and then it should work... i did something similar to this on a contact form... theres an ajax...
no problem! cheers!
got it:
<!--
var backgroundImages=new Array();
backgroundImages[0]="http://images2.wikia.nocookie.net/lostpedia/images/d/df/Jackseason5.jpg";...
hmmmm... im gonna have to think about this...
OH! ok... so then you start off with a slightly modified version of your first code:
<!--
var backgroundImages=new Array(9);
backgroundImages[0]="html-homeimages/bk1.jpg";...
you tried something similar...
math.floor(Math.random) * 9 + 1 creates a random number... you want to click through an array of images... do you want to click through them in order? then you wouldnt...
you could do ifs, like this:
randNum= Math.floor(Math.random()* 9+1 );
if (randNum == 0){
do something
}
else if (randNum == 1){
do something else
add an id to the cell, then add an onblur event to the rate field, like this:
<td id="pcost"></td>
and
<input type="text" name="qty" id="qty">
<input type="text" name="rate" id="rate"...
hmmmm can i see your code again?
photo id is right, but it needs to be in quotes...
<a href="alterations.htm" target="iframe1" onClick="document.getElementById('photo1').src= 'images/alterationstop.jpg'">alterations</a>
i...
<a href="alterations.htm" target="iframe1" onClick="document.getElementById(photo id goes here).src= 'images/newimage.jpg'">
i dunno what i was thinking about the innerHTML example... that wont...