Forum

Posts

RECENTLY INDEXED PROGRAMMING SOLUTIONS OF JavaScript


Help with Javascript on homepage - JavaScript Help  

Hello, I have a script running on my homepage and i would like it to be identical for all people at the same time. Meaning the script runs fins when i open the site. then another user opens the site and the script runs fine for them but it is not in sync. how can i sync it so we are both... Continue Reading
Views : 76
Wednesday 2nd of January 2013

Javascript XMLHttpRequest cache help - JavaScript Help  

I got a add friend script going into javascript. In javascript I use XMLHttpRequest and send all the variables over to a .php file which adds everything to a database.I go onto my desktop, which I do all my work on and when I click the link, it disappears but everything is... Continue Reading
Views : 48
Wednesday 2nd of January 2013

jQuery generate page help - JavaScript Help  

I'm trying to generate a small part of the page using jquery which is generating in the wrong matter even though the code looks solid. ? ? ? ? $('#stages').html(""); ? ? ? ? var stage = $("#stages");? ? ? ? ? ? ? ? var L = $('').attr('id',... Continue Reading
Views : 55
Wednesday 2nd of January 2013

onClick doesn't work - JavaScript Help  

To View The Problem1. http://www.oddim.com/2. Login as test/test3. Hit Update Status4. Notice how when u click the red x the onclick... Continue Reading
Views : 51
Wednesday 2nd of January 2013

Canvas Re-Draw For Animation - JavaScript Help  

HiHere is the updated code. Here you can see the bird is re-drawn by clearing the rectangle, so that it animates the bird moving.The issue i have now is when the bird is cleared it also clears anything else in the scene where the bird currently is. So if you see... Continue Reading
Views : 68
Wednesday 2nd of January 2013

retrieving form option value and option text - JavaScript Help  

i am working on a registration form for a school. in it, i've got a series of four selects which i'd like to use for two bits of information:Class Title ... $650 + $25... Continue Reading
Views : 59
Wednesday 2nd of January 2013

Javascript/ajax auto logout mechanism - JavaScript Help  

I have coded a site architecture that creates a file when a client contacts the site. It is created as a php script so values can be retrieved withinclude() or require(). My problem is detecting when the client has left the site so the file associated with the client can be deleted, or... Continue Reading
Views : 44
Wednesday 2nd of January 2013

how to change value of hidden field using javascript - JavaScript Help  

I have tried the following but it is not working.what is the correct way to do this?document.getElementById('MyHiddenField').value = "1"; Continue Reading
Views : 68
Wednesday 2nd of January 2013

Creating 2D Array from AJAX response - JavaScript Help  

Hello All,I am currently stuck on a problem and haven't got a clue what to search, I've looked at most articles related to 2D arrays and AJAX. Sorry if this is in the wrong section of the forum, it related to JQuery, AJAX but mainly... Continue Reading
Views : 58
Wednesday 2nd of January 2013

Javascript Drop Down Navigation Menu - JavaScript Help  

I need help with my drop down navigation menu. I'm using it on a website (http://exechouseholdstaffing.com). On the home... Continue Reading
Views : 56
Wednesday 2nd of January 2013

appendChild not working in IE6 or 7 - JavaScript Help  

I am having a problem getting appendChild to work in IE6 and 7.It works fine in firefox, chrome, safari and surprisingly IE8, but not 6 or 7var odd = true;function... Continue Reading
Views : 42
Wednesday 2nd of January 2013

Is it possible to set up a mask in the browser - JavaScript Help  

I'm trying to figure out a way to do this: say I have a fixed position element (div) that's 300x 300 pixel, 100px off the left margin of the window, 100px off the top. Beneath that I have another div whose height will be random based on the number of images loaded into it. Is there... Continue Reading
Views : 57
Wednesday 2nd of January 2013

seting text to a text box with javascript - JavaScript Help  

Hi guys,i want to make a small html editor for a new updater, basicaly somthink the same as what am writing in now. For example if i wanted to add an image for a href to the post i would have button aside from the text box which would insert the tag "// Continue Reading
Views : 30
Wednesday 2nd of January 2013

iframe design mode focus - JavaScript Help  

I have an iframe that is in design mode, when a user selects text and presses the bold button for example, how can I make it keep the focus after the user bolds the text? Continue Reading
Views : 56
Wednesday 2nd of January 2013

javascript instance update - JavaScript Help  

So I'm writing a javascript code that will control a quicktime video. To do this I'm using the quicktime plug in. One of the tools provided to me is variable that always contains the current time/position of the video. I want to write a script that will show that value in a text field. Does any... Continue Reading
Views : 72
Wednesday 2nd of January 2013

jquery can not select multiple .siblings - JavaScript Help  

Hi, I am new to JQuery and can not get the code below to select multiple siblings, If I remove the siblings for "label" and "#TrsAssignmentName" + nextIndex + "Risk" it works fine????$(".removeEmployee").live("click", function(removeEvent){ removeEvent.preventDefault(); Continue Reading
Views : 62
Wednesday 2nd of January 2013

Displaying URL Parameters - JavaScript Help  

I have a page with a link:Show me the ParameterOn 'grab.html' i want to display the 'myParameter' prameter which should be "hotel"Can anyone show me howi can display the parameter from the URL please. Continue Reading
Views : 55
Wednesday 2nd of January 2013

2 problems, why won't alert box work and why won't image change - JavaScript Help  

function toggleBg(plus) { if (document.getElementById(plus).style.background=="url('/images/plus.png')"{? document.getElementById(plus).style.background="url('/images/minus.png')"; }else{?... Continue Reading
Views : 148
Wednesday 2nd of January 2013

My first javascript function (pllease don't laugh ;) - JavaScript Help  

Hi all? ::)Sorry in advance for my ignorance, but I just started learning java script today.I wrote a little script with a condition. If the condition is true the stuff inside a element should be altered, but For some reason I can't see how to do this I looked up for the... Continue Reading
Views : 85
Wednesday 2nd of January 2013

encodeURIComponent - JavaScript Help  

Can explain to me what this does exactly? Also, what are reserved characters in a URI do anyways? Continue Reading
Views : 43
Wednesday 2nd of January 2013

using a calendar script, how to prevent old date selected - JavaScript Help  

I have this code which is a calendar popup script.How do I prevent a user from selecting an old date.How can the old date numbers be disabled?// Continue Reading
Views : 55
Wednesday 2nd of January 2013

Resize image - JavaScript Help  

I have a wysiwyg editor that I made, I have it so I can insert an image, but is it possible to have it where I can resize the image using handles on the image? Continue Reading
Views : 51
Wednesday 2nd of January 2013

Image as Link - JavaScript Help  

Hello,I'm using an image as a link, and I basically create a new image element, set its source, create an "a" element, set it's href, and then I append the image as a child to the link. However, what I get is a button with a blue outline, as links are blue, and it automatically... Continue Reading
Views : 43
Wednesday 2nd of January 2013

Run js_function() if ajax response = "1" ( please read, you may be able to help ) - JavaScript Help  

Hi Guys,I have a question..I have the below html5 code that will show a html5 notification:? ? ? ? ? ? function RequestPermission (callback) {? ? ? ? window.webkitNotifications.requestPermission(callback);? ? }? ? ? ? function... Continue Reading
Views : 70
Wednesday 2nd of January 2013

how i can disable a list of checkboxes using js - JavaScript Help  

I got a list of items with checkboxes and i wan to be able to disable all of them if a certain checkbox is selected.... Continue Reading
Views : 63
Wednesday 2nd of January 2013

What is the difference between # and #! - JavaScript Help  

what's the difference of the hashes in urls?"#"and"#!"What's the benefit or whatever of the !? Continue Reading
Views : 40
Wednesday 2nd of January 2013

replace using variables - JavaScript Help  

Im trying to replace words in a string, I can do it like this..var output = "hello bob";output = output.replace(/hello/g, "goodbye");But when I try using variables, I cant get it to work :/var output = "hello... Continue Reading
Views : 34
Wednesday 2nd of January 2013

Array within an array dropdown - JavaScript Help  

I've been trying to display the information from the selected index of a dropdown list, but after I try to access an array within an array I have trouble. Currently I am using this as my json saveJson({ "classes": [? ? {? ? ? "class_name": "eecs131", "enrolled": [ ... Continue Reading
Views : 45
Wednesday 2nd of January 2013

JavaScript [w/jQuery] - Post a page request - JavaScript Help  

Hey,So. I wanted to post to an external script (cross-domain) in Javascript. This is not my domain, though it's a partner.I figured it would be SO MUCH easier to just post using jQuery's $.post() method, and problem solved. Well done! The problem was solved, until I ran... Continue Reading
Views : 67
Wednesday 2nd of January 2013

update fields - JavaScript Help  

i have some javascript which should show the messages at the side of the input but they arent and i dont know where im going wrong.$(document).ready(function(){$("#fullname").blur(function(){//remove all the class add the... Continue Reading
Views : 50
Wednesday 2nd of January 2013