javascript

What is a good javascript development environment?

Possible Duplicate: JavaScript IDEs I am looking for a good javascript development environment. Do you have any recommendations? ...

AJAX update panel problem

I have the below in a .js file that runs when I start playing a .wav file - to check for when media player has finished playing the file - and it worked before I added the Player (object id="NSPlay") etc, to an AJAX update pannel. Anyone with some suggestion on what I need to do to detect when it has finished playing the .wav file and ...

mootool set value to div

i am using mootools i have div in body with like this <div class="total-title">12</div> total-title i am using for reference. my mootools code is $('total-title').set('text', 'text goes here'); i want to change text of above div. this is not working...? Thanks ...

Use javascript variable in object name

I am using CKEditor, and, when referring to the CKEditor instance, I need to use a variable. But, since calling the instance is a object, I am really not sure how to do this. I am using: CKEDITOR.instances.textarea123.insertHtml('<p>Whatever</p>'); The issue is, I need 123 to be a variable, because I need to change the instance base...

jQuery (anti-)pattern: building selectors with string manipulation

Too often I find myself building selectors with string manipulation (split, search, replace, concat, +, join). Good or bad? ...

Best way to use jQuery's .ajax() function retrieve variables from a php script?

-I have read about json being a simple way but also read its a bad practice to use eval() once the data is retrieved. So I don't know how so use the data returned. -The only way i've been able to retrieve data from php scripts is if I echo the results already formatted (which is not very convenient). Also if there is a redirect in the p...

Alternative to google visualisation api

Is there a good (&free) alternative to goggle's visualization api? Some thing to provides support for drawing 3d charts using js and/or SVG , that also doesn't require installing new plugins on the clients browser ? ...

How do I get the ID of the currently selected jQuery UI Tab?

I know that I can get the (numerical) index of the currently selected tab like this: $('.selector').tabs('option', 'selected'); Is there a way to get the ID of the currently selected tab, outside of an event handler? By "ID" I'm referring to the string property (ui.panel.id) in the ui object that's passed in as an argument to an event...

how can i get the button's command argument?

Is it possible to get a button's command argument in javascript. I don't want to manipulate it, i just want to read it. If possible - how? ...

Finding controls in javascript

I'm having an issue finding an UpdatePanel inside of a Gridview inside of a Formview in Javascript. The Below Doesn't work. var UpdatePanel3 = $get('<%=FormView1.FindControl("Gridview1").FindControl("UpdatePanel3").ClientID %>'); How can I find that control?? ...

Facebook Style AJAX Search

Hiya All, I've created a Facebook style ajax search for my site where as you type it will bring up the results in a nice list below your search. $("#s").keyup(function() { var searchbox = $(this).val(); var dataString = 's='+ searchbox; if(searchbox!='') { $.ajax({ type: "POST", url: "/livesearch.php", ...

Take value from PHP function [the_time('HH:MM')] and change it based on selection in dropdown box with Javascript.

Is this possible? I return the time that something was posted via PHP function from the database and adjust it based on timezone data selected in a drop down box with Javascript on the client side. For example: The PHP would return 5:00 PM GMT as the time, and if they selected EST it would subtract 5 hours from the time automagically. ...

javascript match substring after regexp

I have a string that look something like something30-mr200 I would like to get everything after the mr (basically the # followed by mr) *always there is going to be the "-mr" Any help will be appreciate it. Thanks ...

How do I prevent text and/or page content double-click highlighting in html and javascript?

Kind of an odd question, but I have a game I am making for a Halloween party. Javascript/HTML for quick and dirty development. (This is going to be full screen on a projector and use a Wiimote for mouse control). This is what I am using, my question is not intended to invoke criticism of my code choice. It works great, except for one...

original request for yui-datable and paginator displays 'no records'

I have a simple table that performs a JSON request to get data. Everything worked fine until I got too many records and added a paginator. Now, the initial request returns 52, entries, but my yui-databale displays 'no records', until I change let's say the number of items per page, then it refreshes the widget properly. Here's the code...

Help with js file exists query

First let me acknowledge that I'm in way over my head. Our church website was dropped on me and I'm doing my best to get up to speed after about a 10 year hiatus. Currently undergoing pretty serious chemotherapy, so at least I have lots of time. I am trying to figure out a way to script an html web page to check for the existence of ...

javascript Isolating characters

I have a string of characters and want to isolate 2 characters. Isolate a or b from string: "a48y jvu5agbl=dbz'bk;ahc" Should get something like this: aabbba This regex gets me the correct result and whatever's left. How do I chop off the end? str.replace(/.*?(b|a)/g,"$1"); Thanks. Any other way to isolate the characters is great...

Google Spreadsheets API - updateCell via PUT or PHP?

I cant seem to get updateCell to work. API reference: HTP>code.google.com/apis/spreadsheets/data/1.0/developers_guide_php.html This is equivalent to sending an authenticated PUT request with the updated cell's XML representation to the URL: PUT HTP>spreadsheets.google.com/feeds/cells/key/worksheetId/private/full/cell/version I h...

Visual Studio JavaScript Intellisense doesn't show tooltip

Yet another problem. I wrote a simple function which I commented, but tooltip with function summary doesn't appear when I highlight it in Intellisense dropdown. However, if I add reference to this js file from another file, I see the sample function there, but again, not the summary tooltip. Any ideas? I run VS 2008, with SP1, and the...

Flash: Using mouse wheel events in full screen mode (Windows and Mac)

Although Flash has a mouse wheel event (MouseEvent.MOUSE_WHEEL), it comes with quite a few problems. The first is that the event is not yet supported on the Mac. So there are a bunch of solutions, all of which (basically) capture the mousewheel (or DOMMouseScroll) event in javascript and pass it into the flash app. Luckily, under all t...