I have got two forms in a page. The second form has got a file upload input component along with other controls. My requirement is to submit the second form with the file and refresh only that form without refreshing the other form. If it was only normal components, I could have done this easily in Ajax. But when the form is having a fil...
Hi!
I am updating a page through AJAX using .rjs template. Is there any way to block evaluating javascript in rendered content (something like :script => false for link_to_remote)?
My update.rjs looks pretty much like this:
page.replace_html 'some_div', :partial => 'partial_with_js', :collection => @list
page.insert_html ...
(etc.)
...
hi guys,
This is my first time here so go easy with me. I am keen on mastering codeignter and jquery for web app dev. I have made progress but I am at a point I was hoping I would pick on your great minds over.
I have links where I click and they fill up a div with content and this works but I use the $.ajax({}); not get or post or loa...
I'm trying to use Authlogic to protect some in place editor fields I have on a page. I've protected all the methods in my controller, but it looks like in_place_editor is calling some weird generated stuff that doesn't even show up in my routes, like "/quotes/set_quote_text/1". Number one is there a site that tells more about these "secr...
I have multiple objects in a hierarchy which have common properties and methods inherited from the superclass, and object-specific properties and methods in the subclasses. I'm still new to OOP javascript, so there is probably a much better approach to this. I'm using jQuery for the AJAX, but not sure if that makes any difference.
fun...
I'm revising this question again because I solved a majority of the issues. The current bug that I could use some help with is that when I remove an object using the technique described below, I end up with orphaned database rows that should be getting deleted. Details below.
I'm using the Ryan Bates technique from Advanced Rails reci...
I inject html to div on the page (contains float div)
var text = "some text<div style='float:rigth'><a href='#'>foo</a></div>"
$("#taget").html(text);
After that users of Google Chrome and Safari cannot click at link "foo"
...
I need to create some kind of JS onclick that will run a php mail script that emails a page with broken content.
Would it be best to run a normal javascript onclick that calls a php file which is hidden, grabs the referring url and emails it?
I would also like a message confirming the click, then disable it.
Is there anything like thi...
Hi, here is my situation:
I want to create an AJAX file-upload script, which will upload to an external site (ie: not the one the script is located in) and at the same time report the progress of the upload. How would I go about doing this? Note that the process must be secure.
...
hello, i got following part of one of functions
if(continiueSend)
{
$.ajax
({
type: "POST",
url: "mailer.php",
data: "somestestdata",
timeout: 5000,
success: function(a)
{
alert(a);
},
error: function (xhr, ajaxOptions, thrownError)
{
alert(xhr.status);
alert(thrownError);...
Hi,
I have a client that wants to be able to select from a playlist of video thumbnails and it replaces a video that is on the page already. I also need to watch loading times, so thought it would be better requesting each video if and when it's clicked with ajax? I'm new to ajax so not really sure if this is the best option.
My page i...
Hey
I'm working on converting my standard PHP project to OOP but I ran into a wall about how to handle AJAX calls with PHP Classes. I'm not happy with the way I'm doing this now. I have a TillAjax.php file which I call from my TillUI.php file from a AJAX call.
In the TillAjax.php file I do this to get the information passed from the aj...
Hello all,
I'm looking for a way to check if a link exists on a certain page. I know that this is possible with a ping, but I really don't know how to do this.
What I have is a list of links to other webpages, they should have a backlink to my page also. I want to check this, when the backlink is there, a text should appear, something ...
Hi
Can anyone point me in the direction of how to use jQuery modal popups with AS.Net MVC and AJAX.
Has anyone managed to do this well?
I've tried JQModal and JQuery UI but haven't managed to find any good samples or tutorials yet.
Any help appreciated.
Thanks
...
Hi!
I created some dependent dropdowns in a chain. The one at the top should fire multiple Ajax requests for each dropdowns below it.
I'm using jQuery 1.3.2 with livequery so event handlers should be bind for all reloaded DOM items, yet triggering change doesn't occur for newly updated elements.
What am I doing wrong over here?
funct...
i have posted this link ages ago regarding wordpress:
http://stackoverflow.com/questions/196993/wordpress-having-comments-inline-ajax-like-in-stackoverflow
and i think that i maybe didn't describe my request properly as each of the given solutions dont actually do what i am looking for:
I would like it when i click on "Add Comment" un...
Meder made me a great code for check existing urls on a other domain with ajax.
The code is designed to check the code with a form.
At my website I have a list of links to other websites. What I want to have the outcome behind every link instead of submitting a form everytime.
This is a example of how it should look like:
* computerh...
I guess what I mean is, if I make a site that uses AJAX to load some content that I also want search engines to find -- if I make the page work sans-javascript (say, when javascript isn't present, a link goes to site.com?c=somecontent rather than calling a function with $("#content").load("somecontent.html");), will the search engine fol...
Whats best in terms of performance/speed when considering a ASP.NET ajax server page which returns results back to the ajax calle in the javascrit ? an ASPX file or ASHX ?
...
In doing an autorefresh by putting the following code,i assumed that when i do a post the model will automatically sent to the controller ,
$.ajax({
url: '<%=Url.Action("ModelPage")%>',
type: "POST",
//data: ??????
success: function(result) {
...