Archive

Posts Tagged ‘simple javascript’

Simple Javascript Application Needed

November 29th, 2011 Comments off

I need a simple Javascript/jQuery application made. The program is basically a sign maker. I have some examples if you would like to view them (just msg me).

I will only consider people who can send me a decent portfolio. If you have experience in jQuery that is a plus, but not a requirement.

Thanks!

Simple Javascript Validation

October 26th, 2011 Comments off

Hi

I need some javascript code adding to a file to do two things:

1. Enable it to validate a number (check that it’s the correct number of digits)

2. Display an alert box confirming user selection for a radio box selection.

You must also be able to annotate the code to explain it exactly how it operates. A simple task that will take the right person seconds.

Very Simple Javascript Fix

December 1st, 2009 Comments off

I broke my javascript and I don’t know where.

Here’s the original:
http://nces.ed.gov/COLLEGENAVIGATOR/?id=215062

When you click on “expand all” or “general information” it expands.

Here’s mine:
http://www.campuspicker.com/test2.cfm

It doesn’t expand. What did I break?

Simple Javascript 4 Expert

October 19th, 2009 Comments off

Please see PMB…………………………………………

Simple Javascript Calculator

October 7th, 2009 Comments off

I need a simple javascript calculator. I have an excel sheet with an example and I have the start of the calculator. Easy job for someone who knows javascript and math.

Simple Javascript

September 28th, 2009 Comments off

There’s a small function on a webpage I’d like to recreate. Please pm for the url.

I need this in an hour.

Very Simple Javascript Project

June 30th, 2009 Comments off

Hello,

This would be something very easy for a good Javascript coder. I have a HTML file with a form and want to append enctype=”multipart/form-data” to the form BUT from Javascript.

For example, please see attached file.

Thank you!

A Simple Javascript Snippet

June 19th, 2009 Comments off

Ok, so I am not well versed with javascript and do everything with php. But this one calls for a bit of js manipulation.

For someone who knows JS this should be a five minute job.

So, we are using openx for ad management. The problem is that placing the openx javacode all over the page is simply too annoying.

so we had created a single php function called disp_ads where it would be fed the ad_zone and another variable and then it would display the ad.

this is one it looks like:

function ad_disp_raw ($ad_zone, $ad_n) {
?>
<script type=’text/javascript’><!–//<![CDATA[
var m3_u = (location.protocol=='https:'?'/cp/adserver/www/delivery/ajs.php':'/cp/adserver/www/delivery/ajs.php');
var m3_r = Math.floor(Math.random()*99999999999);
if (!document.MAX_used) document.MAX_used = ',';
document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
document.write ("?zoneid=<?=$ad_zone; ?>");
document.write ('&cb=' + m3_r);
if (document.MAX_used != ',') document.write ("&exclude=" + document.MAX_used);
document.write (document.charset ? '&charset='+document.charset : (document.characterSet ? '&charset='+document.characterSet : ''));
document.write ("&loc=" + escape(window.location));
if (document.referrer) document.write ("&referer=" + escape(document.referrer));
if (document.context) document.write ("&context=" + escape(document.context));
if (document.mmm_fo) document.write ("&mmm_fo=1");
document.write ("'></scr"+"ipt>");
//]]>–></script><noscript><a href=’/cp/adserver/www/delivery/ck.php?n=<?=$ad_n; ?>&cb=INSERT_RANDOM_NUMBER_HERE’ target=’_blank’><img src=’/cp/adserver/www/delivery/avw.php?zoneid=<?=$ad_zone; ?>&cb=INSERT_RANDOM_NUMBER_HERE&n=<?=$ad_n; ?>’ border=’0′ alt=” /></a></noscript>
<?
}

// function ad_disp is a generic add display module from phpads
function ad_disp ($ad_zone, $ad_n) {
?>
<fieldset class=ads>
<legend>ADVERTISEMENT</legend>
<? ad_disp_raw ($ad_zone, $ad_n); ?>
</fieldset><?

}

———
So as you can see, sometimes we call the ad_disp function which displays a little fieldset around the ad or we can call the ad_disp_raw function directly if we don’t want the fieldset around the ad.

—-> the job:
we need the same methodology done but ALL is java. So, no php function but a java function PLUS the call.

So, really all one needs to do is write two js functions where one calls the other (see above php functions) and their call syntax – where all we do is call the function with the two variables.

right now the function calls look like this:

<? ad_disp{12, 1233s32); ?>
so we want a call that is as simple as this!

—> this needs to be done rightaway. so if you can’t do this in less than an hour don’t bid please.

Simple Javascript Repair

June 16th, 2009 Comments off

I have created a javascript accordian, which works great. I need to have the arrow added indicating when the heading is selected, not selected. This will be simple and fast for a coder with a working knowledge of js.

I have all of the files available for download, and the arrow(s) are in the images folder already:

https://www.yousendit.com/download/cmcxeVdrQXA4aVBIRGc9PQ

Simple Javascript Modification

June 3rd, 2009 Comments off

I need to add an action to an existing Java Script that will open a new page. Please refer to attachment for full details. Thanks.

Simple Javascript Countdown

May 31st, 2009 Comments off

I need a countdown script where a user enters a specific date in the future and counts down from the current date. The script will show the number of months and days until this date.

Simple Javascript Countdown

May 31st, 2009 Comments off

I need a countdown script where a user enters a specific date in the future and counts down from the current date. The script will show the number of months and days until this date.

Simple Javascript Date Change

May 21st, 2009 Comments off

I have a website that needs to have two JavaScript codes to automatically change the name of the month.

The pages are .html or .htm
The web site runs on windows machines IIS (Internet information services).

Will the script be able to tell how many days are in each month so it ends on the last day of each month correctly and will it be correct in future years?

JavaScript 1 Details:

The website will say:
(Let’s say the beginning date is June 1st).
This special offer is only available to new users and must be purchased by July 31st, 2009.

I need the month part (July) to change every two (2) month to that months name automatically. So when August 1st comes, it should say: This special offer is only available to new users and must be purchased by September 30th, 2009.

JavaScript 2 Details:

I also need another JavaScript code to change the month name. Here is what it will say: This special promotion runs from June 1st until July 31st.

So on August 1st it should automatically change to read: This special promotion runs from August 1st until September 30th.

Simple Javascript/php Question

May 21st, 2009 Comments off

I have the following code posted in a template in drupal. Its for a JQuery slider. Its in the template for adding a node, and works just fine, for setting the value. The problem however, is if you edit the node – the slider doesn’t show the value which already exists (even though it won’t change it if its not moved). How can I make it check to see if there is already a value?

First one to answer this gets the $

CODE:
<script type=”text/javascript”>

var slider1Value = 3;
var slider1Min = 1;
var slider1Max = 5;

$(document).ready(function(){

$(“#slider2″).slider({
min:1,
max:5,
‘minValue’: slider1Min,
‘maxValue’: slider1Max,
value: slider1Value,
‘slide’: function(e, ui){
$(‘#edit-field-sleep-value’).val(ui.value);
}
});

$(‘#edit-field-sleep-value’).blur(function(){
var slider1Value = +this.value;
if(slider1Value >= slider1Min

Simple Javascript Work

March 19th, 2009 No comments

Simple JavaScript work. Please view the attached screenshot.

Simple Javascript Work

March 18th, 2009 No comments

Simple JavaScript work. Please view the attached screenshot.

Simple Javascript Date Script

March 16th, 2009 No comments

I need a javascript that will show:

The date 30 days ago, and today’s date.

So if today is Monday, March 16 2009, the script should say:

“Sunday, February 15 2009 – Monday, March 16 2009″

Bear