Flex to JavaScript library/API
I am looking for a "small" lib for exposing JavaScript objects within Flex/AS3. I have looked at Adobe's FABridge, but that seemed to me to be more of JavaScript to Flex. Are there any good examples of Flex using JavaScript objects with the FABridge?
...or some other Flex-JavaScript library more aligned ...
I have the following JavaScript (I'm using jQuery):
function language(language)
{
var text = new Object();
$.ajax({
type: "GET",
url: "includes/xml/languages/" + language + ".xml",
dataType: "xml",
success: function(xml){
$(xml).find('text').each(function(){
text[$(this).attr('id')] = $(this).te...
for(var n=0;n<10;n++)
{
$('#content-scroll'+n).mousewheel(function(event, delta) {
if (delta > 0) sliderUp(n-1);
else if (delta < 0) sliderDown(n-1);
return false; // prevent default
});
n++;
}
I have a problem with this code, variable "n" is not passed right to the mouswheel function which will add mousewh...
Hi,
I need to create some sort of a state for a bunch of elements on a page.
The stats can be 1 or -1.
Now on the server side I will generate a JSON array and put it in my .aspx page like this:
var someArray = { 100:-1, 1001:1, 102:1, 103:-1 }
How do I loop through each value now in javascript?
BTW, is my JSON array format correct?...
The Mozilla Foundation continues to add new language features to JavaScript. They're up to version 1.8 now where 1.5 was more or less the ECMA baseline.
However, Firefox is the only browser that supports the latest version and IE is firmly stuck at a 1.5-equivalent JScript.
What purpose do the Firefox-only extensions serve? Or are they...
Hi,
I have an array that might be present in my .aspx page, if it is, I want to fire a javascript function.
I tried:
if(someArray)
blah(someArray);
but I get an error when I havent' defined someArray.
...
When I search for a function in PHP I just go to php.net and search for the function I am using jQuery but am always looking for functions since I am a beginner in terms of advanced javascript usage. Is there a cool reference page like php has?
I am not only looking for a jQuery documentation but a documentation of all javascript functi...
I've been playing with CouchDB (and the RelaxDB ruby library) but creating a view and then trying to access it causes a nasty non specific error. I stepped back a step because I thought RelaxDB might be incompatible with the CouchDB version I'm using(0.8.1), but even when I create a new database and equivalent views and call it by manual...
I'm wondering if there's a way to change the text of anything in HTML without using innerHTML.
Reason I'm asking is because it's kinda frowned upon by the W3C.
I know it's nitpicking, but I just wanna know, is there a way?
EDIT: people seem to misunderstand what I'm asking here: I want to find a way to effectivly change the text being ...
Are there any jQuery plugins or templates that people use to get poeple to stop using IE6 on their websites?
I recently saw a plugin that was very obtrusive and offensive that "warned" users of evil of IE6. I am looking for something one can show their customers.
...
I have a piece of javascript code. Right now it forces users to manually enter the url of the page they want to insert it on. This is kind of a hassle. Is there a way I can fetch the url of the page in automatically and make everyone's life easier?
...
function modifyDatabase(tabla, id, objData, callback, arrayCallback){
$.ajax({
url: 'modifyDatabase.php',
type: "POST",
dataType: "json",
data: 'tabla='+tabla+'&id='+id+strData,
success: function(data){
callback(data);
},
});
}
var obj = {
set: function ...
Hello! I am a JavaScript newbie and I am experiencing the following problem:
I would write JS code in a separate file, include the file in the html code. JS code runs great. No problems. I would go ahead and make some changes to the JS code, click 'refresh' in the browser window and sometimes there is a problem. The changes I have made ...
I need to set a breakpoint to certain event, but I don't know, where is it defined, because I've got giant bunch of minimized JS code, so I cant find it manually.
Is it possible to somehow set a breakpoint to for example click event of #registerButton, or find somewhere which function is bound to that event?
I found Firefox addon Javas...
I am creating a bookmarklet button that, when the user clicks on this button in his browser, will scrape the current page and get some values from this page, such as price, item name and item image.
These fields will be variable, means that the logic of getting these values will be different for each domain "amazon, ebay" for example.
...
Problems
how to make an Ajax buttons (upward and downward arrows) such that the number can increase or decrease
how to save the action af an user to an variable NumberOfVotesOfQuestionID
I am not sure whether I should use database or not for the variable. However, I know that there is an easier way too to save the number of votes.
H...
I have a JavaScript function that is not working now that I put in a new one under it. Here is what is in the head of my document.
<head>
<link rel="stylesheet" href="9j3nz/style.css" type="text/css">
<script src="jquery.js"></script>
<script src="processing.js"></script>
<script type="text/javascript">
function isNumberKe...
Hello,
I am using prototype to load external js file (actually it is php file) dynamically.
Like this:
function UpdateJS(file)
{
var url = 'main_js.php?file='+file;
var myAjax = new Ajax.Request( url, {method: 'get', onComplete: showResponseHeader} );
}
function showResponseHeader (originalRequest)
{
$('jscode').innerHTML = o...
I have a web server not running share point and it does not even use any microsoft technology. I need a way to for browsers accessing my website to be able to also upload a local file(local to client) to a sharepoint service visible to the client and then send the status to my web server. I do not want to run stand alone apps on the clie...
I just started to learn jquery and JavaScript so i can implement it with my current asp.net project. However i have a hard time to grasp the idea how to make a dialog that will show up when user attempt to push delete button and then if user chose button "Yes" it will go for the delete function in code behind of asp.net or if user chose ...