[wp-trac] [WordPress Trac] #19224: ajaxurl not defined for Android / iPhone browsers
WordPress Trac
wp-trac at lists.automattic.com
Thu Nov 10 10:32:00 UTC 2011
#19224: ajaxurl not defined for Android / iPhone browsers
--------------------------+-----------------------------
Reporter: exz | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.2.1
Severity: normal | Keywords:
--------------------------+-----------------------------
When trying to do an ajax call using the ajaxurl variable, it works
perfectly in a desktop browser but not from my smartphone, HTC Desire HD
using their standard browser. The problem has also been reproduced using
an iPhone 4.
I've verified this as an issue using the Twenty Eleven theme and without
any plugins, using WordPress 3.2.1 multisite installation.
Steps to reproduce:
1. Go to jsconsole.com
2. Type :listen
3. Copy the javascript and insert it into the footer of the Twenty Eleven
theme
4. Open site with your smartphone
5. Try sending 'ajaxurl', 'console.log(ajaxurl)' or 'alert(ajaxurl)' from
jsconsole
The result from this command sent to the phone browser is:
ajaxurl is not defined
I've ruled out issues with jsconsole.com by trying to send something else
to the phone browser and looking at the response. For instance 'window',
'document.title' and 'window.localStorage' all returns the correct result
from the phone browser.
Going to the same site with my Chrome browser, typing ajaxurl into the
console gives:
"http://[hostname]/wp-admin/admin-ajax.php"
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19224>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list