Bug Tracker

Ticket #1788 (closed feature: fixed)

Opened 2 years ago

Last modified 2 years ago

$.ajax is allways evaluating scripts

Reported by: fourat Assigned to: anonymous
Type: feature Priority: minor
Milestone: 1.2.2 Component: ajax
Version: 1.2.1 Keywords:
Cc: Needs: Patch

Description

$.ajax call is allways evaluating returned data from the server
There's no dataType to determine if it should evaluate or not the data.
A dataType='plain' will satisfy the bug.
Detected in v1.2.1

Attachments

Change History

Changed 2 years ago by Bradley

  • owner deleted
  • priority changed from blocker to minor
  • component changed from core to ajax
  • type changed from bug to feature

Changed 2 years ago by Bradley

  • status changed from new to closed
  • resolution set to fixed

This is a problem with the documentation and not a bug. Use the dataType "text".

The ajax documentation for dataType has been updated to reflect this: http://docs.jquery.com/Ajax/jQuery.ajax#toptions

Note: See TracTickets for help on using tickets.