I have this polling script to check if a text file is created on the server. Works great locally, but fails when the file is on a different domain. How would i rewrite this for cross domain support?
$.ajax({
url: 'http://blah.mydomain.com/test.txt',
type: "GET",
success: function(result) {
//Success!
wind...
I've tried these
request::is_ajax()
Request::instance()->is_ajax
To no avail. I've noticed in the request class there is a public property $is_ajax but I can't seem to be able to access the property.
What am I doing wrong?
UPDATE
I ended up getting it to work with Request::$is_ajax
...
hy i have a index.php with a form, after i submit the form with a iframe to a page.php, a loading process appears
in page.php when execute the first function i want javascript to execute a function in index.php, the page who is visualized!
when execute the second function i want javascript to execute another function in index.php
how ...
Hi,
I'm using WIRIS Formula Editor as a plugin in fckEditor. The formula adds image in which the attribute alt and uses » to > and « to <.
A sample alt attribute is as below:
alt="«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mfenced close=¨}¨ open=¨¨»«mtable»«mtr»«mtd»«mi»a«/mi»«/mtd»«/mtr»«mtr»«mtd»«mi»b«/mi»«/mtd»«/mtr»«mtr»«m...
If I try to implement this simple-as-possible example:
Update Content with AJAXRefreshRequest
it does not work with Websphere Portal 6.1.0.3 on Application Server 6.1.0.27. The content is updated only the first time. In every further request the Bean is not updated from the inputText.
...
Any idea why this would have an effect? Sorry I can't give the other code as it is private and non shareable :(
Any tips would be appreciated.
<body onresize="resizeWindow()" onload="resizeWindow()">
Content deedeedum.AJAX function to get data and display every 2sec.
</body>
<script type="javascript/text>
/**** Page Res...
It is jQuery.
I have a signup form. At the domain textbox field, people fill in domain, then onblur Ajax call to registar API for validation on domain availability.
The validation may take up to 15 seconds depending on network speed.
In this waiting period, if user go to click submit button, how to block?
My idea is simple: Before an...
I have built a CMS system using jQuery and PHP, it has worked consistently for multiple users across different platforms over the past year or so.
Today as I was presenting it to a potential customer over the phone he ran into a problem in Internet Explorer 8, for some reason he was not able to log in to the system so I created a dirt...
The title says it all really. I went through a few blogs/posts and there are some good solutions for input validations in Mvc 1.0, but most of them are about non-Ajax scenarios, so I was wondering what your preferred method is when using jQuery Ajax? Thanks.
...
I'm trying to create a web based test (as in exam) application with CakePHP.
When a test is started the webserver stores the exact start time in session. When the test ended and the client submit the answers to the webserver, the webserver will recheck the submission time with the previous start time. If the total test time is within a ...
Hi,
I've made a button using HTMLPanelGrid and HTMLAjaxSupport (a4j:support from backing bean) that responds to 'onclick'.
The eventlistener registered with the HTMLAjaxSupport adds a component to the page (a different component with a different backing bean).
The problem is, the addition is not visible until I refresh the page or p...
Hi,
I am working on a project in ASP.NET MVC using C# 3.0.
I am using the Dundas Chart Control for OLAP. As the Dundas control does not directly support MVC it is used on a standard ASP.NET page with a codebehind file. This page is displayed in an iFrame of a normal View returned from a Controller Action.
I have a button in the iFrame...
hi,
i'm building a faq page and i want to load the content inside a page page via ajax with jqyery tabs.
i want to avoid to have different pages for every faq so i want to load the content with and anchor. how can i do?
this doesn't work:
Accedo alle offerte online
...
Hi!
i have a form that can have different number of text fields (hoding translation value). Their names are for example: "textfield_eng", "textfield_ger", "textfield_dut".
in my ajax request i want these fields submitted ofcourse, but i can't figure out how to populate these field names and their values in to the data string.
This is...
I'm doing an AJAX call using jQuery's JSON feature.
function get_words_json(address, username, paging_value) {
$.ajax({
type: "GET",
url: "json/" + address,
dataType: "json",
data: "username=" + username + "&paging_no_st=" + paging_value,
success: function(json){
pop_word_list(json, paging_value);
}
});
}
As you can ...
Hi!
I have a simple question - I use update panel with custom server control inside. I call __doPostBack from javascript and RaisePostBackEvent on the server fires (I implement IPostBackEventHandler).
This is client to server call. Could I return data back to the client (after this partial postback)? What is the best way to achieve thi...
We use a DHTML calendar picker that only allows you to change the date, which is desired functionality. However, I need to figure out the javascript to change the date next to the calendar picker, as seen in the image below, and popup an "are you sure" message.
The above image is one row in a table, so the JS needs to be aware of whic...
All,
I have the following code to generate Jquery UI tabs:
<div id="tabs-loading-message" style="display:none">Loading, Please wait..</div>
<div id="fragment-2">
<ul>
<li><a href="/public/animalstab" title="Animals"><span>Animals</span></a></li>
<li><a href="/public/birdstab" title="Birds"><span>Birds</span></a></li>
...
I'm trying to use jqModal on page 1 to load the content of page 2 using ajax. It works fine, until i include jquery inside page 2: at that point, the javascript of page 1 breaks.
So, to be clear, it is adding:
<script type="text/javascript" src="/_js/jquery-1.3.2.min.js"></script>
inside page2's head tags that breaks it all.
Any id...
I have a very simple Python file:
f = open('C:\\Temp\\test.txt', 'w')
f.write('Succeeded')
f.close()
which I wish to execute from a JavaScript file, like so:
jQuery.ajax({
type: "POST",
url: "/cgi-bin/python1.py",
success: function (msg) {
alert("Data Saved: " + msg);
}
});
However, all that happens is that I get...