habib009pk Posted September 11, 2009 Share Posted September 11, 2009 Hi Friends, I am facing a little problem, i am using an ajax function for displaying of images on webpage in php script i wrote that code: $value2.="<img id='imgBamburgh3' alt='' src='".$pieces[1]."' class='PopBoxImageSmall' title='Click to magnify/shrink' onclick='Pop(this,50,'PopBoxImageLarge')' width='160' height='100' border='0' style='padding:2px;' />"; which makes a string and return the response, it is working good but the problem is that when i click on that image i.e Pop function of javascript has been triggered which magnify that image. this function doesn't work, before that when i pasted that code on my original webpages without ajax it is working properly. Is it any modification need for that string or syntax error Kindly Help me Regards Link to comment https://forums.phpfreaks.com/topic/173865-javascript-function-calling-problem-in-php-codeposted-fri-sep-11-2009-1200-pm/ Share on other sites More sharing options...
habib009pk Posted September 11, 2009 Author Share Posted September 11, 2009 $value2.="<img id='imgBamburgh3' alt='' src='".$pieces[1]."' class='PopBoxImageSmall' title='Click to magnify/shrink' onclick=\"Pop(this,50,'PopBoxImageLarge')\" width='160' height='100' border='0' style='padding:2px;' />"; It is done with it. Regards Link to comment https://forums.phpfreaks.com/topic/173865-javascript-function-calling-problem-in-php-codeposted-fri-sep-11-2009-1200-pm/#findComment-916542 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.