Possible Duplicate:
Retrieve a cross domain RSS(xml) through Javascript
Hey,
I'm creating a website and I need to display a couple RSS feeds. I noticed XMLHttpRequest() doesn't support cross-domain requests. How can I do it with Javascript or jQuery?
Thanks!
...
Hello,
I have this script provided by @Felix Kling in this post HERE, but is crashing my IE when I use it; on FF 3.6, Opera, Chrome, Safari work fine.
Any idea why is this happening? A fix maybe?
var ajaxTimeout;
function autorun() {
if ($("#contactForm").is(":visible")){
if(ajaxTimeout) {
clearInterval(ajaxTi...
Suppose all forms in your application has this structure:
<div id="result_messages"></div>
<form action="/action">
<!-- all the form -->
</form>
A submit button for this form looks like this:
<input type="button" onclick="$.post( '/action', $(form).serialize(), function (data) {
$('#result_messages').html( data ); // At this ...
I'm writing code to deal with errors, and part of this is printing a message to the user (eg "Whoops!")
However, the error code does not know what has gone before, so there is a danger that the error message might be hidden.
For example, what if the error occurs when generating Javascript? Then the HTML output would look like this:
.....
Is it possible to somehow emulate single precision float in Javascript? According to Doug Crockford's blog "Number is 64-bit floating point", but I have to use single one for porting C++ algorithm which calculates single precision float's error.
...
I am making a custom page in facebook, using FBML and JavaScript on a canvas tab.
I want to make a slider like you usually do with jQuery, unfortunately facebook has no jQuery support (yet), so I figured I will make the slide with plain old JavaScript.
After using the slide() function once, I get "slide() is not a function" error in fi...
Does Ext-js come with functionality to manipulate the browser window?
Specifically, I want to resize and close the current browser window.
(Browser window, the browser's native window, as opposed to Ext-js' widgets).
It it possible or must I resort to plain old javascript?
...
Hi! I have this ReGex expression in JavaScript right now: /(.*)(,)([\]\}]+)$/.exec(stringData).
Basically it's removing any trailing comma from a malformed JSON string, (by concatenating r[1] + r[3] you get it).
It's working well except it's way too slow on big strings. So a regex is not a good choice here. I would like to convert this ...
I am looking for some solution for ASP.NET GridView that will allow to resize columns. Can anybody have expirience in it and suggest the best solution?
...
I have a series of checkboxes, and everything works except their default behavior has been altered unintentionally so I can no longer check them which is odd since the reason I was using this bit of jquery was to highlight the li around them when they got checked in the first place.
Any ideas?
//Tag cloud
$(".tag-cloud li").toggle(
f...
Hi all,
I wonder how to replace the bindWithEvent funtion in Mootools 1.3, the example in the documentation is very basic:
Element.addEvent('click', function(e){
myFunction.bind(bind, [e]);});
But, what about if I need to pass a param to the event handler? This is the way in Mootools 1.2:
Element.addEvent('click', function(e, param) ...
I've got a little problem with UserScripts in Google Chrome, to be precise with getting to the object window of an iframe. Very doable via the Google Chrome console, very impossible via the UserScript or so it seems so far. To be honest it seems as if it was on purpose, as if there was some reason why I'm not allowed to access other wind...
I have this banner rotator function:
var banners = ['../Graphics/adv/1.gif','../Graphics/adv/2.jpg']; //here put location of the files to display
var loadedImgSrc = null;
function loadBanner() {
var liczba = Math.floor(Math.random()*banners.length);
loadedImgSrc = banners[liczba];
var objImage = new Image();
objImage.onLoad=ima...
Hello all. I am trying to create a jquery questionnaire but my little jquery knowledge doesn't help me.
What I have until now is the following http://valogiannis.com/stackoverflow/quest.html
When you click Questions a popup open with two questions.
I want the following: when the user click one of the two answer, the script check his a...
I've started writing a greasemonkey script, and am facing problems performing localstorage in the Greasemonkey script. The only way I could figure out localstorage in GM is by creating another instance of Javascript in the newElement.innerHTML DOM property, but there the rest of my variables are inaccessible.
Any ideas ? Here's the Grea...
I am trying to send json data from an HTML form back to php server via a POST method. Here is my code. It goes to fail block in callback function. Firebug console(ctrl+shift+J) displays no error.
<script>
function ADDLISITEM(form)
{
var options = form.txtInput.value;
options = JSON.stringify(options);
var url = "conn_mysql.php"
var ...
Not much knowledge about Javcascript beyond using it for some Dynamic HTML. Now I'm venturing a bit into Ajax ground and have a problem with the following code (borrowed from
http://kpumuk.info/php/ajax-enabled-smarty-plugins-part-2-ajax_form/ and edited to fit my needs).
How can I pass the update_id parameter to the obSubmit function?
...
Does the JavaScript frameworks which mimics namespaces like jQuery makes some namespace collision detection ? If not should I manage it myself ?
If yes what prevents such framework to detect such collision themselves ?
...
Hello,
I'm trying to write a templated user control that get's as a template the js code from the user,
And minifies it on the fly (OnInit), and actually prints the minified JS.
That means that I need a code that receives a string, and returns a string.
All I found untill know are programs that uses the input \ output from the hard-d...
My task is to set a text caret to appear inside an empty span node within a contentEditable div.
The following gives me no problems on Firefox 3.6:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src="js/jquery-1.4.3.min.js">
...