javascript

How to Make Canvas Text Selectable?

Any suggestion is highly appreciated. ...

jQuery live, change in not working in IE6, IE7

The code below works as expected in FF but not in IEs... $(document).ready(function() { $('div.facet_dropdown select').live('change', function() { var changed_facet = $(this).attr('id'); var facets = $('select', $(this).closest('form')); var args = window.location.href.split('?')[0] + '?ajax=1'; var ...

Fancybox troubles

Hello all, I am trying to implement a fancybox. http://fancybox.net/howto I want to call this function on an an element. Full JS file. http://fancybox.net/js/fancybox/jquery.fancybox-1.2.1.js $.fn.fancybox = function(settings) { I have done this: $(document).ready(function() { $("a#inline").fn.fancybox(); }); However, I ke...

Is there a correct way to 'yield' in the cooperative threading sense in javascript?

I'm writing a ubiquity plugin the long function callback for an ajax query is blocking up the GUI Thread causing firefox to lock up. The obvious solution seem to be to use some sort of deferred execution of (i.e we want to periodically add the carry out doing this query function to the end of the event queue and then allow other comman...

Django Dropdown Auto submit

Hee guys. I have a form with a dropdown for all companies. Now i want to display all the people that work for that company when the user changes the value in the company dropdown box without hitting the submit button on the form. Anybody have a good example for that? tks ...

Which javascript library for mysql access can you recommend?

I am using JavaScript standalone, not running in a browser. I want to connect to a mysql server running on the same host. Is there a JavaScript library for this? Edit: I had a look at Jaxer. It has mysql functionality, but it is baked into the framework. ...

Silverlight and Flash and Javascript cross domain policies

A slightly nebulous question: This question stems from attempts to consume non-asf streams in Silverlight using MediaStreamSource as a MediaElement source. Cross domain issues here are proving very frustrating. Generally communication between domains is not allowed on the web. If I understand correctly, say malicious site/embedded obj...

can not use onmouseover event on select option in IE

why IE have so many problem ????? it waste lots of time..... Updated code : function getElements() { var x=document.getElementsByTagName("option"); var el = document.getElementById('selectDept'); el.onmouseover = function( myevent ) { // event = event || window.event.srcElement; if(myevent && myevent.target){ if ( myevent.t...

Could someone with a good IE JavaScript debugger help me out?

Can you please tell me what snippet of code is failing in IE8 on this page: http://www.gaiagps.com I am virtualizing IE on my Mac, and I have no debugger. Thanks a lot for your help! ...

How do I get multimonth plugin of the jQuery datePicker to load with certain dates already selected?

well im using this script right here: http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/ and I have a multiMonth plugin and multiple select enabled. I want to be able to on load have certain dates already selected and those dates come from a database I found two possible clues to help me out, but since I have not strictly lear...

Javascript detect when drop down list is closed

Because of the issue explained in this question I have a situation where I need to attach the mousewheel event to the drop down list only when it is expanded (I do this in the onclick event). However I need to remove the mousewheel event when the list collapses. How do I go about detecting this? I can't just use the onchange event becau...

All possible ways to read a file from a remote server

Hello, i want to provide most possible flexibility for my script and so i need all possible ways in php and javascript to read the content(not sourcecode) of a php file from a remote server. so far i found curl, fopen and include for php and none for javascript, but i dont even know if this is possible with javascript. Thanks for any hin...

How to access item values nested within the DOM ?

Hi, Hoping someone can assist but I need to access a value within a form and an iframe from the parent form that is nested 3 and 4 levels deep. Basically, the tree hierarchy (DOM) seems to be as follows: <form name="formname" ....> <iframe id="refframe"> <form name="formname" ...> ==> Level 3 <iframe id="if...

How can I access iFrame elements with Javascript?

I have a webpage where there is a texarea within a iframe. I need to read the value of this textarea from its child page javascript. Presently by using window.parent.getelementbyID().value in the javascript, I am able to fetch values of all controls in the parent page except the textarea within the iframe. The frame id n frame name in my...

Custom jQuery function not working in Firefox

I have written one custom paremeterized jquery function for fadein and fade out. That function works fine in IE but not in firefox. The function is : jQuery.fn.dcFadeIn = function(newDiv) { var openDiv = newDiv; return $(openDiv).fadeIn(); }; <input type="radio" name="doc3" value="independentCall" class="radioButton" id="indM...

REST user authentication

OK... the basic idea is to have SERVER and CLIENT physically separated (two systems). My idea is to build a stand-alone web service (REST, XML, API-KEY) that will provide Authentication: User login, logout Data: Get list of products Then I will create clients in different languages (Flash, PHP, JavaScript). Data will be served only ...

how to stop displaying tooltip on some of the inputs in the form when using jquery tools

hi, im trying to use jquery tools tooltip (http://flowplayer.org/tools/tooltip.html#events%29on a form to show hints to the user. the hints come up on every single input field, even submit button. i would like to disable the hints on some inputs of the form. when i remove the title element from the input tag, the the hint still comes ...

How to fetch a select tag value from child page javascript?

I have a parent page where a select tag is there. It has a number of options. Now the user can select one of the options. But the problem is the select tag doesnt have an id instead it has a name which is generated in runtime. Now i want to fetch the selected value from child page javascript. Can anyone please provide me the pointers ...

ie problems with jquery - xhr.open(type,s.url,s.async)

one web page all works in FF (and Safari), but IE throws an error on debug on line of jquery xhr.open(type,s.url,s.async) ...

Calling a function dynamically

Hello, My jQuery function is something like: $.a.b.c(); Now I am trying to call it dynamically: var temp = b; $.a.temp.c(); But obviously its not working. How do I get this to work. Please feel free to edit the question title, as am not sure how to really phrase the question. ...