Thanks Glen, for both the solution and useful tip.

Cheers,

Bruce


At 02:13 p.m. 17/10/2007, you wrote:
Instead of .id() try attr("id",yourStringHere)

One tip is to make your string in a variable right before it.
That way you can easily alert the string to see if its coming up correctly.

Glen

On 10/17/07, Bruce MacKay <<mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]> wrote:
Hello folks,

I'm having problems with the following line of code

$("[EMAIL PROTECTED]'del_']").id("del_*" +pb+"_"+iA+"_ck");

in the function below.

What I'm trying to do is replace the id of the a tag from its existing id of 'del_' to 'del_*x_y_ck', where x and y are the variables pb and iA.

I know pb and iA are being 'received' by the function - the querystring generated by the get statement is correct.

I'm sure this function has worked previously, so perhaps my problem is based in a version update of jQuery, but perhaps it was only working previously in my dreams.

Any help appreciated.

Cheers

Bruce

function editAppAsset(ej) {
    var temp=new Array();
    temp=ej.split('_');
    var pb = temp[1];
    var iA = temp[2];
    $("#wrka").show();
$.get("scripts/ajax_ramosus _editor.asp?id=16b&pblID="+pb+"&assetID="+iA +"&q=" + new Date().getTime(), function(responseText){
    $("[EMAIL PROTECTED]'del_']").id("del_*"+pb+"_"+iA+"_ck");
var options = {dataType: 'json', before: showRequest, after: afterAppAsset}; $('#editor_form').submit(function() {$(this).ajaxSubmit(options);return false;});
    });
};

Reply via email to