[jQuery] Re: jquery, eval and javascript in Ajax response

2009-11-16 Thread PiotrJaniak
Hi, u should rethink all code. In my opinion the easiest way is to attach in each row of the output some hidden element like: "/> instead of your JavaScript code and in file a, in JavaScript section create function (use it as Ajax callback) that will read all values for hidden inputs and replace

[jQuery] Re: jquery, eval and javascript in Ajax response

2009-11-16 Thread Pofferbacco
Hello, i think none of the two suggestions could solve the issue. This is the page where you could see the live example. http://www.lavoro-marketing.it The linkedin icon is not generated after a search. It is not an issue of response for 1 element. That script must be loaded on each row of the o

[jQuery] Re: jquery, eval and javascript in Ajax response

2009-11-15 Thread PiotrJaniak
Hi, I think there is no need to use eval(); function. I'm not sure if this works but i would do it like that: function requestCustomerInfo() { var sId = $("input#includi").val(); $("div#divCustomerInfo").load("page_b.php?query=" + sId, FunctionFromBPage()); //or $("div#divCustome

[jQuery] Re: jquery, eval and javascript in Ajax response

2009-11-15 Thread PiotrJaniak
Hi, i think there is no need to use eval() function. I'm not sure if it works but i would do it like that: function requestCustomerInfo() { var sId = $("input#includi").val(); $("div#divCustomerInfo").load("page_b.php?query=" + sId, FunctionFromBPage()); //or $("div#divCustomerI