Ticket #2315 (closed feature)
Option to prevent JavaScript processing via Ajax
| Reported by: | xwisdom | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.3 |
| Component: | ajax | Version: | 1.2.3 |
| Keywords: | evalscript noscript | Cc: | xwisdom |
| Blocking: | Blocked by: |
Description (last modified by flesler) (diff)
It would be nice if we could have an ajax option to disable this the evaluation of javscripts during an ajax load:
$.ajax({
noscript:true
})
or
$('#section').load('page.html',,{
noscript:true,
success: function() { alert('Ok') }
})
The third param in the load function can be either a function or ajax options.
Change History
comment:1 Changed 5 years ago by flesler
- Status changed from new to assigned
- Description modified (diff)
- Component changed from core to ajax
- Priority changed from major to minor
- Owner set to flesler
- Keywords evalscript noscript added
- Type changed from enhancement to feature
comment:2 follow-up: ↓ 3 Changed 5 years ago by joern
- Status changed from assigned to closed
- Resolution set to invalid
Please reopen with an actual usecase, "would be nice" isn't enough to justify a new feature. Thanks.
comment:3 in reply to: ↑ 2 Changed 4 years ago by gmcsmith
- Status changed from closed to reopened
- Resolution invalid deleted
Usecase for this:
You are loading a page via ajax that has content you have no control over and you need to prevent it from firing the embedded javscript.
comment:4 Changed 4 years ago by flesler
- Cc xwisdom added
- need changed from Review to Test Case
- Status changed from reopened to new
- Owner flesler deleted
- Milestone changed from 1.2.4 to 1.3
Uhm... and what'd be a proposed approach ?
comment:5 Changed 3 years ago by snover
- Status changed from new to pending
This ticket has been marked as missing a test case. In an effort to reduce the number of outstanding tickets in the bug tracker, it will be closed automatically in 30 days. In order to prevent this from happening, please provide a working test case. If a test case has already been provided and our records are wrong, please respond to the ticket so that it can be fixed. Thank you!
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Could be, I'll check how much code this requires soon.