javascript

multiple postbacks in update panel

I have an update panel containing several divs which utilize jquery ui's draggable. On drag stop i want to do a postback which only effects the update panel. This works fine, but before continuing down this road i was wondering if a second divs dragstop event occured during a previous divs postback would both postbacks be executed prope...

Creating an enum in javascript

Hi, how can I create an enumeration in javascript? ...

Understanding a sentence about starting up jQuery

What is the definition of entire page in the following line? When the entire page is included via PHP include() or require() function, make sure to put that script code inside the <body> tag and not inside the <head>, because calling jQuery script file from inside the tag doesn't work for some reason. I have had proble...

ASP.NET an expandable grid view?

I've found a lot of different examples on the internet, but nothing seems to do what I'm after. I have a DB view that generates something like this: --------------------------------------------------- Company | Code | Total | Available | Used | Needed --------------------------------------------------- One | 1 | 10 | 8 ...

Why can't javascript find and replace strings containing spaces in the url?

I'll start out by giving you the code I'm working on so that you can follow what I'm saying (sorry for the french, I realise all of you don't speak french but I'm making this website for a french-speaking school). I've edited out what I don't think is part of the problem (the actual file is 757 lines long!) photos.php <!DOCTYPE html PU...

How to check if a querystring value is present via javascript

Hi, How can I check if the query string contains a q= in it using javascript/jquery? ...

jQuery: How to capture the TAB keypress within a Textbox

I want to capture the TAB keypress, cancel the default action and call my own javascript function. ...

Is there a cross-browser way to ignore opacity when using jquery's clone()?

I'm using tables in my document, and I want to be able to have a user submit a new item to a list, then have it "automagically" appear at the top of the list (yes, this would be easier with DIVs but working with what i have). I'm using jQuery, and clone() to create a copy of the most recent table row, then using fadeIn() to display th...

How to split the image using Javascript + CSS ?

I have the image like this: I want to split it into six squares, and I can keep looping to display the animation. Do you have any ideas to split the image by JS + CSS instead of using 6 separate image files. ...

basic xmlHttp question

Hi all. I 'm having some trouble with my javascript code calling my php. Does anyone see an error in the following code? I swear I'm using code just like this on another part of the site... var xmlHttp = createXmlHttpRequestObject(); var favSongArray = []; function createXmlHttpRequestObject(){ var xmlHttp; try{ xmlHttp = new ...

JavaScript operator similar to SQL "like"

Possible Duplicate: Emulating SQL LIKE in JavaScript Is there an operator in JavaScript which is similar to the like operator in SQL? Explanations and examples are appreciated. ...

How to get round corner textbox using jquery without images

I try to get round corners for textbox. But how can i get it. Here is the class .tbox { float:left; width:200px; margin-top:10px; margin-left:10px; } when i call using jquery using $('.tbox').corners("4px"); it is not working. I already included Jquery.js and jquery.corners.js. But its not working. Any help would be appreciate...

CSS transparent background fallback when images are disabled

I have a DIV with a transparent PNG background applied to it. Is there a way (use of JS is fine) for me to: Have the transparency effect when images are enabled Apply a normal solid background color to it when images are disabled ...

on hover thumbnails play

hi i have several videos on my server and three thumbnails for every video what i want is if i put mouse on the video it shows(play) all the thumbnails of that video thanks ...

Debugging javascript functions

Is there a way in Firebug (or any other debugger) to see the functions that are being called as a page loads? Edit: Breakpoint is really not what I'm looking for- I'd like to see the functions being called with the arguments that are being passed as I work on the page - something similar to the console - where I can see Http AJAX Post m...

How do you get a javascript function to only be running one instance at any one point?

I have some code that I'd like to run on a page. My problem is that I don't want it to be run more than once at any one point. It can run multiple times, but just not while another instance of itself is running. I'm using jQuery and loading ajax content. I just need something that prevents users from clicking hundereds of times and buil...

Javascript dependency solution with arbitrary ordered includes

Hello, The problem is this, I include a script, it uses another one, but what if that dependency also needs another script to be ready ? Which means loading it is not enough, but I also need to be sure its callback for initialization has been called before executing. The order of script tags in DOM can not be correct if the dependencies...

Is this proper JavaScript syntax?

Good Saturday morning to the most helpful online community on the web! =) I have a few hundred lines of JavaScript that I'd like to reformat to make it easier for me to read. I thought before I went wasting half of my day, I'd ask my question here first. I am new to JavaScript and would like to know if my syntax below is correct? My o...

Using the SVG evenodd fill-rule in the canvas element

Does anyone know if it's possible, either natively or mathematically with javascript, to implement the evenodd fill-rule from SVG in the HTML5 canvas element? Links to projects that do this would be helpful. Thanks! ...

jQuery - Calling a function inline

I am trying to pass one variable to a jQuery function inline (ie: using an onMouseOver="function();" within the actual link (which is an area tag from an image map)). The function is only being called if I place it before the $(document).ready(function(){ line, but doing this is causing all sorts of problems with jQuery. All I want is ...