Bug Tracker

Custom Query (13852 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (13 - 15 of 13852)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Ticket Resolution Summary Owner Reporter
#15236 notabug jQuery.load() remove ajax:select tag of AjaxTag Library jitujain
Description

I am using jQuery.load() function to load the content in Div dynamically. It is working fine with all the scenario but there is one issue in it.

When I include ajax:select tag of AjaxTag Library version 1.5.7 for populating dependent dropdown in my JSP page, jQuery.load() function remove ajax:select tag from my loaded JSP page.

I am stuck since last many day on these issue. Early Response to problem will be great.

Note: ajax:select is converted in tag when loaded as HTML in normal scenario.

Code Block :

container.jsp (main jsp in which dynamic content will be loaded on onload event of page)

<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 StrictEN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<%@page language="java" contentType="text/html; charset=ISO-8859-1"

pageEncoding="ISO-8859-1"%>

<%@taglib uri="http://ajaxtags.sourceforge.net/tags/ajaxtags"

prefix="ajax"%>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></meta>

<link type="text/css" rel="stylesheet" href="css/ajaxtags.css"></link>

<title>AJAX JSP Tag Library Examples</title>

<script type="text/javascript" src="ajaxtags/js/prototype-1.7.js"></script>

<script type="text/javascript" src="ajaxtags/js/scriptaculous/scriptaculous.js"></script>

<script type="text/javascript" src="ajaxtags/js/overlibmws/overlibmws.js"></script>

<script type="text/javascript" src="ajaxtags/js/ajaxtags.js"></script>

<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js'></script>

</head>

<body>

<div id="header">AJAX JSP Tag Library Examples</div>

<div id="pageContent">

</div> </body>

<script type="text/javascript"> function updateContainer( url , formData, divID ) {

var dynamicCon = '#'+divID; var ObjTag = $( dynamicCon ); ObjTag.load( url , formData );

}

updateContainer("/dropdown.jsp","","pageContent");

</script>

</html>

dropdown.jsp

<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>

<%@ taglib uri="http://ajaxtags.sourceforge.net/tags/ajaxtags" prefix="ajax"%>

<form action="." class="basicForm"> <fieldset><legend>Choose Your Car</legend>

<div><img id="makerEmblem" src="img0/placeholder.gif" width="76" height="29" /></div>

<label for="make">Make:</label> <select id="make">

<option value="">Select make</option> <option value="Ford">Ford</option> <option value="Honda">Honda</option> <option value="Mazda">Mazda</option>

</select> <span id="progressMsg" class="indicator" style="display: none;">Loading...</span>

<label for="model">Model:</label> <select id="model" disabled="disabled">

<option value="">Select model</option>

</select></fieldset> </form>

<ajax:select baseUrl="dropdown.view" source="make" target="model"

parameters="make={make}" preFunction="initProgress" emptyOptionName="Select model" postFunction="" errorFunction="" />

#15235 migrated .css('marginRight') - memory leak flexphperia
Description

I have found memory leak in reliableMarginRight function.

Memory leak is created when you call $element.css('marginRight')

JsFiddle: http://fiddle.jshell.net/z3jo9k1q/show/light/

Test case:

  1. open above address in Chrome,
  2. open developer tools, make Heap snapshot,
  3. click on button in jsfiddle example, red element will be removed
  4. make another heap snapshot with browser tools
  5. compare snapshots, you will find one HtmlDivElement that is detached from DOM but keeping reference in reliableMarginRight function

Fix: Adding this, after 5665 line in jQuery uncompressed code will fix the problem:

docElem.removeChild( container );
div.removeChild( marginDiv ); //this is new line
#15234 notabug .html method on select element "selects" the first option tday
Description

Please check out the fiddle: http://jsfiddle.net/3u0hceng/

If the option elements are added to a select element using the .html method, the first option is selected and the html option does not have a selected attribute. This is unwanted behavior.

This was seen in Chrome Version 37.0.2062.103 m on a Windows 7 machine.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Note: See TracQuery for help on using queries.