Skip to main content

Bug Tracker

Side navigation

#2315 closed feature ()

Opened February 10, 2008 05:17AM UTC

Closed November 11, 2010 11:09PM UTC

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
Blocked by: Blocking:
Description

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.

Attachments (0)
Change History (6)

Changed May 11, 2008 11:26PM UTC by flesler comment:1

component: coreajax
description: \ 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. \ 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. \
keywords: → evalscript noscript
owner: → flesler
priority: majorminor
status: newassigned
type: enhancementfeature

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

Changed July 29, 2008 05:08PM UTC by joern comment:2

resolution: → invalid
status: assignedclosed

Please reopen with an actual usecase, "would be nice" isn't enough to justify a new feature. Thanks.

Changed November 19, 2008 12:46PM UTC by gmcsmith comment:3

resolution: invalid
status: closedreopened

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.

Changed November 19, 2008 10:37PM UTC by flesler comment:4

cc: → xwisdom
milestone: 1.2.41.3
need: ReviewTest Case
owner: flesler
status: reopenednew

Uhm... and what'd be a proposed approach ?

Changed October 14, 2010 03:14AM UTC by snover comment:5

status: newpending

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!

Changed November 11, 2010 11:09PM UTC by trac-o-bot comment:6

status: pendingclosed

Automatically closed due to 14 days of inactivity.