javascript

Best jQuery Plugin For News

Hi, i have 10 images and i want to show they with numbers(1,2,3,4,5...). I am talking about image slideshow with numbers. Can you suggest me jquery plugin for this ? ...

JQuery delegate method not working

I am trying to use the delegate method on a grid that I wrap with the DataTables.Net plug-in. I originally had this code which works as expected. $("#myGrid tbody tr").click(function() { var id = $(this).children('td').eq(0).text(); alert(id); }); However, if I change the paging size then the newer rows don't h...

why is sifr3 not working?

I have redone all the steps of the "how to" on novemberborn, but still i cant get it to work. http://www.luukratief-design.nl/dump/simplefolio/ Does anyone know the answer? would appreciate it. ...

resize popup window based on content width and height

I've an html page with varying size. Based on the conditions i hide some contents. How can i get the width and height of the body with javascript, so that i can resize the window size dynamically based on the amount of contents of the page. Thanks... ...

How can get a list of the functions in a javascript file?

I'm trying to cobble together a php style include function for javascript. The route I'm taking is through a XMLHttpRequest. The included file will load, but the functions in that file aren't available as their scope is limited to the function that is calling them. I came across this article which achieves a similar goal, but requires ...

Dynamic AJAX control

Initially, my form has two dropdowns. the contents of the second dropdown is populated via ajax using dwr. The "Add another" link creates another instance of the dropdowns but it loses the ajax/dwr functionality of the first. Appreciate the help. < div id="dynamicInput"> < form:select path="schoolState" id="schoolState...

Adding a timer to existing JS slider

Hoping someone can point me in the right direction. I'm building a online shop for a client and am using the PrestaShop Moon theme (link). You'll notice in the demo that there is a slider. However, the slider doesn't change automatically every few seconds like some sliders out there (for example this one). The Moon theme uses an old s...

Javascript Regexp pattern matching

"CamelCase".replace(/[A-Z]/g, " $1") Produces >>" $1amel $1ase" How to replace all occurrence of camel cases. ...

Populate multiple fields based on select value from JSON

I am trying to populate multiple form fields with JSON data after a user makes a choice from a select box. I am very new to jquery so sorry if I am getting something elementary wrong. I don't want to include the JSON in my html because it will be changing often and it is a very large file. Here is what I have: <script type="text/java...

Automatically concat several JavaScript files in one ?

I have many js files, with some naming convention. If there any tool that concatenate all this files in one, so I don't need to include them all separately ? ...

How does Google Analytics prevent traffic spoofing

We want to embed an ajax style service into a number of our websites each with a unique api key. The problem that I can see is that because the api key is stored in the javascript file the user could potentially take the key, spoof the http referrer, and make millions of requests to the api under that api key. So I am wondering how Goog...

javascript onchange event with calendar control

I'm trying to get a javascript event to reload a page when I change a date using calendar control, but the page won't reload. Any idea how to do this? this is what i have right now <input type="text" name="start_date" onFocus="showCalendarControl(this);" value="#FORM.start_date#" onchange="changeDateReload(this.value);" /> function ...

Asynchronous call doesn't return json

I am running wamp on an xp box. I am fairly new to web programming, this is for a student project, and have run out of avenues to try to solve this problem. Problem We have client side JavaScript code that uses GDownloadUrl- from the Google api- to wrap xmlHttpRequest calls to a php server side program that is accessing our database....

Apple effect Jquery not working

Hello, I'm here again because of jquery overlay. I have an overlay that loads a normal Div into it, i want to apply the apple effect to it, but i can't, i get an javascript error "Effect no found". The code for the jquery function is written as below: <script type="text/javascript"> function pageLoad() { var trigge...

Which ui framework to select

In a windows/.net environment I currently use castle monorails with jquery to provide an administrative interface to an e-commerce application. This application works nicely, but has no real concept of ui composition. Up to now this has not been a problem, because the ui was targeted to a single user base, and a single domain object. Th...

How to convert a unicode string written in font A to font B?

Assuming all the required fonts are available on client's machine. Probably, you all could see following 'stackoverflow' word written in Indic Language script : 'स्टैकओवरफ्लो' . A quick lookup using Web Developers Tools tells that this word is written using 'Arial, Liberation Sans..' font family. Does that mean Arial font supports Indi...

how to get html element id of smartgwt widgets ?

I want get html id of input field & icon field of a TextItem widget, how can i do this ??? (no getId methos is available for TextItem widget & seems that setAttribiute("id", "foo") has no effect) ...

How do I Geocode 20 addresses without receiving a OVER_QUERY_LIMIT response?

Using the Google Geocoder v3, if I try to geocode 20 addresses, I get a OVER_QUERY_LIMIT unless I time them to be ~1 second apart, but then it takes 20 seconds before the markers are all placed. Is there any other way to do it, other than storing the coordinates in advance? ...

jQuery multiple ajax loading animations on calls

Hello, On a page I have different element which I bound yo different Ajax calls. For example one a.click is requesting x.php another one down the same page requests y.php. What I like to do is place an individual loading image for each. ajaxStart and ajaxStop won't do it since they are fired everytime, no matter which one called. So h...

Simple regex question to remove \

Hi There I have a simple question how do I remove a \ with regex? Thanks I have tried it like this .replace(/\\/ig, ''); I am using javascript and classic asp Now it works: .replace(/\\/ig, ''); somehow the first time I tried it, it were not working! - Thanks for all the quick answers! ...