johnnyk Posted July 27, 2006 Share Posted July 27, 2006 Why isn't this working:function directions(id){ window.open('\"directions.html?id=' + id + '\",\"directions\",\"toolbar=no, location=no, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=no, width=500, height=400\"')} Link to comment https://forums.phpfreaks.com/topic/15826-function-not-working-escaping-problem/ Share on other sites More sharing options...
nogray Posted July 27, 2006 Share Posted July 27, 2006 [code]function directions(id){ window.open("directions.html?id=" + id,"directions","toolbar=no, location=no, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=no, width=500, height=400");}[/code] Link to comment https://forums.phpfreaks.com/topic/15826-function-not-working-escaping-problem/#findComment-64799 Share on other sites More sharing options...
johnnyk Posted July 27, 2006 Author Share Posted July 27, 2006 If you don't mind, how about one more I can't figure out:[code]function picture(img,width,height){ window.open("pictures2b.html?img=" + img,"picture","toolbar=no, location=no, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=no, width=" + width + ", height=" + height);}[/code]I'm no good at Javascript.::tear:: Link to comment https://forums.phpfreaks.com/topic/15826-function-not-working-escaping-problem/#findComment-64806 Share on other sites More sharing options...
nogray Posted July 27, 2006 Share Posted July 27, 2006 this looks fine, post the code you use when you call this function. Link to comment https://forums.phpfreaks.com/topic/15826-function-not-working-escaping-problem/#findComment-64816 Share on other sites More sharing options...
johnnyk Posted July 27, 2006 Author Share Posted July 27, 2006 Ahh, there was a problem in the HTML (...target="picture"...). Thanks for the help. Link to comment https://forums.phpfreaks.com/topic/15826-function-not-working-escaping-problem/#findComment-64832 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.