WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#3942 closed defect (bug) (wontfix)

AJAX called fails when this.requestFile has a "?"

Reported by: tpalmacarlos Owned by: rob1n
Milestone: Priority: low
Severity: normal Version: 2.1.2
Component: General Keywords:
Focuses: Cc:

Description

in /trunk/wp-includes/js/tw-sack.js line 133, AJAX called fails when this.requestFile has a "?"

I noticed this issue using the "WP-Polls" ajax plugin: http://www.lesterchan.net/portfolio/programming.php (when pressing View Results).

The fix:

if( this.requestFile.indexOf( this.queryStringSeparator ) )

totalurlstring = this.requestFile + this.argumentSeparator + this.URLString;

else

totalurlstring = this.requestFile + this.queryStringSeparator + this.URLString;

Change History (3)

comment:1 foolswisdom7 years ago

  • Version set to 2.2

comment:2 rob1n7 years ago

  • Component changed from Administration to General
  • Keywords dev-feedback 2nd-opinion added
  • Milestone 2.3 deleted
  • Owner changed from anonymous to rob1n
  • Status changed from new to assigned
  • Version changed from 2.2 to 2.1.2
  1. This is more of an issue with SACK, not WordPress. Do we fix it here or send it upstream?
  1. I believe we're moving to jQuery, which has great AJAX functions. But some people might still stick with SACK.

comment:3 rob1n7 years ago

  • Keywords dev-feedback 2nd-opinion removed
  • Resolution set to wontfix
  • Status changed from assigned to closed

On second thought, why would the request file have a ? ?

Add vars with the functions provided.

Also, take it up with SACK's author. Or use jQuery.

Note: See TracTickets for help on using tickets.