javascript

remove class from current group

The easiest way to see the problem is checking the code here: http://www.studioimbrue.com/beta What I need to do is once a thumbnail is clicked, to removed the "selected" class from all other thumbnails that are in this same or without removing them from the other galleries on the page. Right now, I have everything working except the ...

POST or GET in XMLHttpRequest

What does post mean in the following? ajaxRequest = new XMLHttpRequest(); ajaxRequest.open("POST", "url" + queryString, true); because i'm not able to access variables using $_POST['var'] from url but with $_REQUEST['var'] I can access value.. ...

JavaScript text manipulation

Using JavaScript and I want to replace any text between @anytext@ with some text. I want to make it generic so I am thinking to make use of regular expression. How do I do it? Example:replace('@hello@','Hi') ...

How to display status message on web page.

Hello, I have a bash script that checks for and deploys new .ear files to the JBoss server.I have linked this script to a web page, so that users can deploy their applications by clicking on the link. I have also been able to set a status message that the application is being deployed, when a user clicks on the link.(Done using Javascri...

YUI menu, handling "onclick" from markup

Hi all. Would like to know if is it possible to handle onclick event via Html markup. (link text) I know many YUI widgets can use yuiConfig to add configuration properties directly from markup ! (like Treeview) Anybody knows ? ...

What is the difference between String.slice and String.substring in JavaScript?

Does anyone know what is the difference between these two methods? ...

Does Firefox support Javascript in XHTML pages?

I need to serve XHTML pages that include Javascript. My problem is that Firefox (3.5.7) seems to ignore the Javascript. For example: <?xml version="1.0"?> <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <title>My Title</title> </head> <body> <script type="text/javascript"> document.write("Hello world!"); </...

sifr3 + safari4 osx page zoom

Hi - is there something in the implementation of Safari4 page zoom that trips up sifr3's width calculations? When I use the browser zoom feature [zoom text unselected] on the Official SIFR3 Demo (http://dev.novemberborn.net/sifr3/beta2/demo/) on OSX Safari 4.0+, the replaced h1 text starts moving to the right and eventually the white ba...

Iframe Loading problem.

Hi Everyone. The problem i am facing is .. I am using below code structure for presentation . its jsp page. Usually, during get operation on database records( in hundreds), the web page takes more than 3 seconds to load completely. I have injected an indicator bar ( something like cvi_busy), so that some javascript enable bar would b...

Debug function in opener when called from child page using Firebug

Hello all, I have a function in a parent page that opens another page in a child window. In the same parent I have a 'kind of' callback function that I am calling via window.opener.MyFunction() before closing the child window. It works, but when using Firebug and placing a breakpoint in the 'callback' in the parent Firebug steps throug...

remove class from all other list items

I've gotten help from others on this, but their replies were a little bit too broad to help me... I'm a newb when it comes to javascript so I can't quite wrap my head around their answers (and everything I've tried in the last 3 days hasn't worked.) The working site is here: http://www.studioimbrue.com/beta The problem is that with the...

jQuery xPath selector, &&

I'm using jQuery to run through all the inputs within a section that I have set from hidden to show, and add required calsses, so as to catch the validation. $("#" + dependant).find("input[type!='radio']").addClass('required'); Works fine, but I also want to exclude the submits. In normal xPath I would; input[type!='radio' and type!=...

JQuery UI datepicker how to show next prev arrows for month navigation?

Exactly as the title says. When I load the datepicker there is nothing on the ends to click onto change month. But you can stil change the month just no visual?? Malcolm ...

jqueryui alternative

I'm looking for a javascript user interface library (or framework). I will use it with jquery. Of course jquery-ui was my first stop, but it doesn't give me even the simplest features i want. it can be very good for rich widgets like calendars, modals, sorting, dragging, but it lacks the core functions i need. for example, i want to be...

string manipulation

http://stackoverflow.com/questions/2243688/javascript-text-manipulation/2244002#2244002 I need to make little manipulation in the string.I need to retrieve the matched text and then replace the matched text.Something like this Replace("@anytext@",@anytext@) My string can have @anytext@ any where in string multiple times. ...

Start and end date on multiple dates range

Hi my problem is somewhat special or maybe not. However the problem is that I parse range of dates in one array, where I need to find start date and end date where ever it may occur in ranges. I do not know did I explain this well but if you need more info, please let me know. e.g. [2010-7-11,2010-7-12,2010-7-13, 2010-9-01, 2010-9-02,.....

Is it possible to catch mouse position outside the document?

I found that is possible to retrieve the mouse position in IE outside the document or even the browser window, by using "window.onblur" or "window.onfocusout" or something like that. Even in Firefox it gives you negative mouse coordinates in the onmouseout event handler if you let your mouse pointer go out of the viewport quickly. Can ...

Get a list of removable drives with javascript?

My situation is this: I want to have a pop-up box open from your browser via JavaScript then I want the pop-up box to display all removable devices it can see attached to your computer, then you will be able to select and write to one etc. Is this possible? I'm pretty new to JavaScript sorry if its a silly question. ...

How to embed <script> video in Shadowbox.js

I'd like to embed a video delivered by Ooyala in a Shadowbox.js object using Wordpress. I've successfully installed Shadowbox.js and tested it with images and videos. The syntax for Shadowbox is something like: <a href="mymovie.swf" rel="shadowbox;height=140;width=120">My Movie</a> However, Ooyala's embed feature uses a . If I pull th...

Get remote json data using local html file (using javascript - jquery)

Hi, I'm just making a small utility with a local html file (checker.htm) with JavaScript(using jquery) on my desktop that requests data from my website every 10 mins. if it finds it then does nothing. else alerts me. The problem i'm facing is : I can't seem to use either POST/GET from the local htm file c:\checker.htm : <script src="...