javascript

Will jQuery work in a javascript-disabled browser?

I really want to know: Will jQuery work in a javascript disabled browser? If so, why? ...

mootools slideshow not working with JQuery. Need help !

I am working on a site http://tapasya.co.in where i just impemented mootools slideshow. But I noticed that menubar that i was using stopped working, it was supposed to drop horizontaly but it is not being displayed now. I have used jquery for it. Please see the source of the web page. What can be the problem ? Mootools conflicting with j...

how to capture the mouseover element?

hi, i am developing an autocomplete feature.but i am facing one problem there... when i click on the suggestion box one of the results will not enter into the suggest html box... function handleOnMouseOver(oTr) { deselectAll(); oTr.className ="highlightrow"; position = oTr.id.substring(2, oTr.id.length); updateKeywordV...

Call a c# method from Javascript

Hi i want to call a C# method.. I already tryed with webmethod, but in the c# method i will not have acces to textbox or others controls. this is how i done without success.. http://www.singingeels.com/Articles/Using_Page_Methods_in_ASPNET_AJAX.aspx With static works, but i want without static, so i can access to the controls in the as...

i want to wrap the image as well text around the products like mug, t Shirt, crystals

I am working on shopping cart. pls follow the link www.photohaat.com In the mug section whenever the user upload the image i want to wrap the complete image onto the mug so that he/she will saw the final output immediately. we develop this shopping cart on PHP language. I am trying to resolve this problem but unfortunately can't get a...

Generate page numbers using javascript/jquery?

How to generate page numbers like the below using javascript/jquery? If the 5 th page is selected i have to show 3,4 and 6,7 and also 1,last page with prev,next... Any suggestion.... EDIT: How to work with json data that use these pagination div? (ie) My json data contains 50 records I want to 10 in page 1 and so on... How to paginate...

Java-script object - get variable name

Hi, To begin with, I'm not even sure, if it is the right way to do it. Let's say, i have script (jquery included) like this: foo = function() { this.bar = function() { alert('I\'m bar'); } this.test = function() { $('body').append('<a onclick="my_var.bar();">Click me</a>'); } this.test(); } var my_var = ne...

Select image iphone simulator using phonegap camera api

I'm new to Xcode and iPhone apps. I want to select an image from iPhone (camera or library) and send to php via ajax. http://wiki.phonegap.com/iPhone:-Camera-API I'm using the phonegap framework, Xcode iPhone SDK version 3.1.x. On clicking button it calls function with parameter 0 or 1, but it does not initialize camera or display the ...

Ways to keep track of dynamically created DOM elements in ASP.NET

Assume you have a page in ASP.NET where it makes sense to use JavaScript/jQuery to modify the DOM with values that will eventually be read by the server on submit. For example, you have a form that allows end users to add/remove objects (like dependents on a health insurance form or assets on a loan application). What are some ways to ...

Form Validation using Javascript inside PHP

I have a simple problem but no matter what I try I can't see to get it to work. I have a form on a php page and I need to validate the qty value on my form so that it doesn't exceed $qty (value pulled from mySQL) and is not less than zero. Sounds easy--hmm wish it were..lol! I had it checking if the value was numeric and in my attempts t...

finding visited links in a jetpack extension

Hi, Is there way in jetpack(mozilla's extension development framework) , to find the the visited links in a page? BTW: jquery's a:visited works in firebug , but not in jetpack. i'm guessing it's part of jetpack's security. ...

JavaScript implementation of a set data structure

I'm looking for a decent implementation of a set data structure in JavaScript. It should be able to support elements that are plain JavaScript objects. So far I only found Closure Library's structs.Set, but I don't like the fact that it modifies my data. Any ideas? ...

JavaScript / jQuery: is it possible to change font-size to fill a set width?

Hello there :) I am writing an application, and in it, I would like to have some h1 elements with variable font size. I use the full width (1000px) of a div as a limiter, and a script that automatically sets the font of the h1-element so that it fits the width of the div without line break. This is quite easy to do with php GD, but I ...

Javascript working in chrome but not in explorer

Hello, I am writing this code in html: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <script language="javascript" type="text/javascript"> function setVisibility(id, visibility) { document.getElement...

How to set an onClick attribute that would load dynamic content?

This code is suppose to add an onClick event to each of the a elements, so that clicking on the element would load the content of the page dynamically into a DIV. Now, I got this far - It will add the onClick event, but how can I load the dynamic content? $(document.body).ready(function () { $("li.cat-item a").each(function (i) { ...

Determine IP# of domain from client browser

Greetings all, I would very much like to determine the IP# of a domain from client script. It's for use in a testing application to determine whether or not a certain domain is set to a QA address as opposed to the address live on the . The testing machine will have it's host file set to resolve a domain to the QA address. Pinging fr...

Javascript eval function returning Octal value

Hi, when i try "eval" function as eval ("020 * 05 + 05") it is returning 85 instead off 105. Can someone explain me why eval function behave like this? Also suggest any to overcome this problem. ...

How to delete text string using JQuery?

Hi Guys, I have the following code: $('.breadcrumb:contains(",")').hide(); It does as expected and hides the entire breadcrumb, but how would I go about just remove the comma? ========== EDIT: <div class="breadcrumb"> <a href="#">Link 1</a>, <a href="#">Link 2</a> </div> ========== Thanks for any help ...

How to check If a Tel: area code is correct using jquery?

Hy I need to check if the given phone area code is correct. i created a input field, user can insert a tel area code like 0044 oder 0090 and so on. I restricted the input field to 4 chars. I need to check after the 4 chars are entered if the area code is correct. What it should do. After entering 4 number, the script should check the f...

How to initiate JavaScript Callback with MVC2 using RenderAction

I am building a dashboard where I am iterating through a list of controls to render, and I need to initiate a general callback both after each control and after they are all completed. I was curious what the best way to handle this is. I can get the control specific callback fired off by placing myUserControlCallback(); in the user co...