Hi guys, ok so I am trying to dynamically create a select list using javascript, basically when someone clicks on a car make, the model select drop down needs to populate with the specific make's models, this is what I have thus far, it's very amateur, so please excuse me.
Here is my attempt at Javascript:
function makeModel(obj){
mo...
i have certain links, on mouse over of those links I am changing <div> background image
jQuery I have used is-
function imgchange()
{
$('.smenu li').mouseover( function(){
var src = $(this).find('a').attr('href');
$('.hbg').css('background-image', 'url(' + src + ')');
$(this).find('hbg').attr('title...
I have a string variable having data
4096;jpg,bmp
or
2048;flv,mpg
I want to split this string into two string in jquery on the basis of ;
...
Hi,
I am using facebook javascript sdk to retrieve logged in users info.
I am able to retrieve user's name and Id with response.id and response.name. I want to see the complete json response I get from facebook.
I am new to json. I want to be able see the entire response. I appreciate any help.
function login(){
FB.api('/me', fu...
Hi folks,
After the users have been inactive for X minutes, I need to display the number of minutes left till the session times out in ASP.NET.
For e.g. after 5 minutes, they will see 'You have been inactive for 5 minutes. You will be logged off after another 10 minutes'. Each minute after that, the message will be updated.
I found a...
Hi,
i have this simple form validation in jquery:
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript" src="http://dev.jquery.com/view/trunk/plugins/validate/jquery.validate.js"></script>
<script type="text/javascript">
window.onload = (function(){
$("#register_form").valid...
Hi,
I am using Jquery Uploadify for images upload with PHP, here i have multiple instances of uploadify and and each instance is uploading images in different folders.
I want to second instance of uplaodify will start uploading images only after first instance of uploadify uploaded selected image.
$('#listing_image').uploadifySetti...
A simple tool to store and display texts longer than a few lines.
The search button<div id="xyz">will highlight all</div> the words matching the name of objects that are members of the classes listed in searchedClasses,
itself a member of the KeySet class. The highlighted words are hypertext.
I want to retrieve characters which are su...
Hi,
This is a really strange issue, I am trying to use the Recaptcha on one of the website, and it works for all browsers tested except for IE6.
I have make a reference to the google's js:
http://www.google.com/recaptcha/api/challenge?k=the_key
and it is loaded according to fiddler2 & the 'onreadystatechange' event (which have a ready...
In my asp .net web application project,I used two ajax calendar extenders for fromdate and todate and two text boxes to display the date.I have four radiobuttons.Before,After,between,equals.I have to disable the calendar extendar in page load and when the between radio button is checked,then only that two date calendarextendar will have ...
hi my dear friends :
I want to check multiview, ActiveViewIndex with Javascript,
but in the below code, MultiView is always null:
document.onkeyup = onkeyupOfDocument;
function onkeyupOfDocument(evt) {
var evt = evt || window.event;
var MultiView = document.getElementById("MultiView1");
alert(MultiView);
}
How can i f...
Hey Guys,
I've got the following onClick function...
GEvent.addListener(map, "click", function(overlay, latLng)
{
if (latLng) {
marker = new GMarker(latLng, {draggable:true});
marker.openInfoWindowHtml(mes);
}
// display the lat/lng in your form's lat/lng fields
document.getElementById("lat").value = latLng.lat();
...
I need to link a website from my blog.
I don't want that the owner of that website know that I have linked his website.
How can I do that ?
...
Is there a way (possibly using Javascript?) of changing CSS element details when a User clicks an HTML link?
My aim here is to grey out a series of links defined as:
<a href="#" title="MyLink"><span>Link</span></a>
and a class defined as:
.Document
{
background:#000;
}
What I am after is, when the User clicks MyLink, I would l...
hello,
i.g. we have next hash
ahash = {"one": [1,2,3], "two": [4,5,6]}
is there any function, which returns me value of the first key in hash? (i don't know key name, i just want to get value of first key).
thanks
...
I'm trying to store a playlist of songs in my application. What's the most flexible and efficient way to do this? Each song has a few fields, like: song_name, song_id, song_artist etc. The playlist is sent to the client as JSON.
...
Besides of the ID, if you say, you want a unique identifier for an HTML element (let say a div).
I browsed the DOM for something (like a number or string) that is unique for each element; but the DOM is big and I failed to find that in the Internet.
Is there any property (in the DOM obviously) that is unique only to that element? (Othe...
Hello!
I have the following in javascript:
var entriesString = '';
$$('select[id=shopId]').each(function(elem, i){
shops[i] = elem.value;
entries[i] = new Array();
$$('input[id=entry'+i+']').each(function(elem, c){
if(elem.value != '') entries[i][c] = elem.value.replace(".", ...
I am using a ASP.NET(3.5) page and I have a text box called txtName.
I want to read the value with JavaScript like so but it does not work.
var Name = document.getElementById(txtName).value;
alert(Name);
Even this does not want to work:
var Name = document.FormName.txtName.Value;
alert(Name);
This work with plain HTML pages but no...
i am trying to build image roll over in javascript
were there is 2 buttons and 1 pic
when the user press button number 1 the color of the button change and and the second button stay the same and the pic change and the hyperlink for it change also
when i pres button 2 the color of the button change and the color of button 1 return to the...