ajax

jQuery .load() function is failing in firefox 3.6.10

I'm a bit of a newbie, so excuse me if this script is rudimentary. I'm trying to use jQuery's .load() function to load the next or previous month of an event calendar on an expressionengine site that I have built. The following script works in Chrome, Safari, IE, and Firefox 4 beta, but it fails in FF 3.6.10: $('th a.right, th a....

Submitting form via ajax, one way or two ways?

What's better of this two options: 1. $.post( '/ajax/action', function(data) { doResult(); } ); *This option has to receptors: ajax.php and action.php* or 2. $.post( '/action', { typerequest: 'ajax' }, function (data) { doResult(); } *This option has only 1 receptor: action.php (if typerequest exists, returns ajax result)* Form ...

jQuery AJAX action for each LI

I'm currently creating an update script, whereby I have a list of tasks each detailed in a UL, example below: <ul id="tasks"><li id="task1">Task one</li><li id="task2">Task two</li><li id="task3">Task three</li></ul> I'm looking for a way for jQuery to systematically loop through each li and perform an AJAX request for each specific I...

Obscure Javascript difference between IE / Firefox / Opera

Within a "cloaked" site, using obj.innerHTML = something to change the contents of a div seems to screw up the div's position in Firefox and Opera. Best way to understand the problem is by seeing the code in action. Go to http://www.guggs.net/index_redirected.htm in IE, Firefox or Opera and everything looks as it should. Hit one of th...

$.get() AJAX call not being able to handle server response

Hi guys, This might spund a little bit funny, didn't even know how to put the title at first. It could be due to long hours of work or I'm just doing something wrong. I have a file, say comment.php, which contains something similar to: var params = $('form#myform').serialize(); $.get("/ajax/file.php?"+params, function(data){ if (d...

Defer javascript execution till the content has been added to Document

I am trying to load some content into a page using Ajax. The html that is loaded contains some javascript code. Even though the code is wrapped within $(document).ready, it gets executed before the content is inserted into the document, because the parent document's Dom is ready by the time the content is loaded. How can I defer the exe...

Rails - Handling Remote Requests

From a Rails controller, is there a way to determine if the request was from a remote link or form submission? I'd like to use a redirect to the 'show' url in the case that a record is created without remote, and simply display the 'show' template in the case that it's a remote call. Thanks. ...

.mouseenter() doesn't work on content loaded with jQuerys .load() function

Hi! I have a page, with a navigationbar that loads content, from another page, into a content-div, when a navigation item is clicked. The content from the other page contains a variety of different divs. One of these divs has the style display: none. This div is on top of another div. When I .mouseenter() on the div that is below the h...

The best format of data to send from browser to the java-based server with ajax?

I don't have a big experience in this kind of things, so I see the easiest way is sending key-value pairs as post parameters and then servlet container will parse these pairs and put to the parameters map. But I assume that there can exist more convenient way based on using some ready solutions (libs) that's why (and what) I'm asking. O...

Can AJAX request data from a remote server?

Hello! Can I use XMLHttpRequests in JavaScript to request a file on a different server than the one from where the request was made? Thank you. ...

"fadeTo" seems to have a bug when I scroll through images too fast.

I am slowly learning how to modify and write jQuery from scratch and have been trying to modify some pre-written code, which simply makes an image opacity: 1 and all other images in the same HTML element opacity: 0.2. When I use fadeTo and I move across the images fast it will stop doing the animation and hang for a while until it fixes...

how to protect ajaxRequest.open php script

I'm new to using AJAX, and I just followed a tutorial to retrieve some info from my database using AJAX and outputting it on the page. There's a line where I call a php script which is where the database query is made, and the result is echoed out. I'm a little concerned that since the filename is visible on the frontend, and it's only p...

Why Microsoft Ajax Minifier doesn't generate mini file with Team build 2010?

Hi, I just used the wonderful tool Microsoft Ajax Minifier and it's working very well when I build my MVC application on my machine but when I check-in in source control and started build by the Team Build 2010 it doesn't create the min files, for sure I can't put the mini files inside the source control as the recommendation from the Mi...

AsyncPostBackTimeout Setting Not Working for Very Large Values

I have AsyncPostBackTimeout set to a very large value (3600 = 1 hour). This should cause Ajax request in my .net app (Asp.net 3.5) to continue for an hour before expiring. However, for some reason, they are expiring after approximately 5 minutes (the request continues to execute on the server without any issues). What could be causing t...

jquery - setting the url after the hash

I'd like if I could click a link with class "query" and have it's id attribute come after the hash. For example, a link that looks like this: <a href="#" id="members" class="query">Members</a> When clicked would change the url from example.com/users to example.com/users#members. Here's my code so far: $('.query').click(function(event...

How to avoid postback on tab click to load a page/section.

Hi Guys, I am using .NET, XSLT to achieve below functionality, however there is some challenges we are facing. I have to implement tab functionality on a page. I have got 4 different pages. 1) index.aspx 2) g.aspx 3) f.aspx 4) s.aspx tab1|tab2|tab3|tab4 (Will appear on screen) "index.aspx" will be my landing page, having the tabs co...

Update a <div> with form selection

Hello, Again,quite new to Ruby on Rails and Ajax, both. I heard it is supposed to be quite easy to add Ajax stuff into the web sites, and since my forms are somewhat done, I thought I would give it a try. But there are some problems, unfortunately, that I could not really find the fitting documentation. I tried with the only method I f...

jQuery get Method problem using IE

I 've created a small photo tour using HTML, CSS and jQuery. It works fine in Firefox and other browsers, but has some problems in IE. Here's the code I use to load the data: function loadNode(nodeID){ jQuery('.churchViewError').hide('slow'); jQuery(".churchViewLoading").show( 'fast'); jQuery.get(cVBaseURL+"ajax/getNodeHTML.php...

Time Picker Control

Hi All, I don't know if what I need is applicable or not , But I know that there is a lot of Date picker controls (asp.net , Ajax , Javascript , ... etc) , But Can I find a Time picker control looks like a Watch and enable me to select time from it or that is impossible Thanks in Advance ...

[AJAX+PHP] How to send data from one user to other without storing data in database

Hi,i got an assignment to make something similar to http://typewith.me .The problem i am facing is that i have to send xml through AJAX from one user to server(im using PHP) and the other user will receive it when he makes request through AJAX. But storing XML in database in the intermediate time will make it slow. So where else can i st...