Bug Tracker

Opened 10 years ago

Closed 9 years ago

#4957 closed bug (invalid)

Created input fields crash safari:

Reported by: DanielM Owned by:
Priority: major Milestone: 1.4
Component: unfiled Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:

Description

When executing the code:

var $msg = $("#manage_inner_prompt > .message");

if ($msg.length) {

$msg.html(""); Clear message $msg.addClass("rmedittrack"); Test for element var $div = $("<div />").attr("id", "edit_track"); $msg.append($div); $div.append($("<input />").attr("name", "Edit").attr("value", iDreamManager.Manage.CurrentlySelectedItem.attr("rel")).attr("type", "hidden")); $div.append($("<div />").attr("class", "edit_line").append($("<label />").text("Title:")).append($("<input />").attr("id", "txTitle").attr("type", "text").attr("name", "D_Title"))); $div.append($("<div />").attr("class", "edit_line").append($("<label />").text("Description: ")).append($("<input />").attr("id", "txDesc").attr("type", "text").attr("name", "D_Desc"))); $div.append($("<div />").attr("class", "edit_line").append($("<label />").text("Genre:")).append($("<select />").attr("id", "txGenre").attr("name", "D_Genre"))); $div.append($("<div />").attr("class", "edit_line").append($("<label />").text("Price: ")).append($("<input />").attr("id", "txPrice").attr("type", "text").attr("name", "D_Price").attr("class", "price")));

....

(this is executed on an element made visible inside a blocked div)

When trying to use any of the input elements - they appear to be read only, however when you pase content into them, they cause the browser to horribly crash - this was replicated on Safari (win/mac) and Google Chrome. The above code executes in firefox and internet explorer without fault though. I'd appreciate any feedback on this - and before asked I have tried to wrap the inputs in a form with no effect.

Regards, Dan Munn

Change History (1)

comment:1 Changed 9 years ago by dmethvin

Resolution: invalid
Status: newclosed

Can you reopen with a complete test case?

Note: See TracTickets for help on using tickets.