gandalf97
05-15-2007, 05:27 PM
1) Script Title: Ajax Tabs Content Script
2) Script URL (on DD): httphttp://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/index.htm
3) Describe problem: I am running visual studio .net and when I open the script the following line:
var modifiedurl=ulistlink.getAttribute("href").replace(/^http:\/\/[^\/]+\//i, "http://"+window.location.hostname+"/")
---^
looks like it doesn't properly escape things because the rest of the line looks like a comment after the two //'s. Is this just a flaw in the dev environment or should the regular expression be enclosed in quotes? Would it hurt to enclose it in quotes?
Thanks!
Gandalf
2) Script URL (on DD): httphttp://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/index.htm
3) Describe problem: I am running visual studio .net and when I open the script the following line:
var modifiedurl=ulistlink.getAttribute("href").replace(/^http:\/\/[^\/]+\//i, "http://"+window.location.hostname+"/")
---^
looks like it doesn't properly escape things because the rest of the line looks like a comment after the two //'s. Is this just a flaw in the dev environment or should the regular expression be enclosed in quotes? Would it hurt to enclose it in quotes?
Thanks!
Gandalf