asp.net mvc 2 - jQuery load url issue -
We have an issue with a sudden jQuery load function.
Assume that we have a URL of the view / page which is "www.domain.com/register" and within that view we have scripts such as But now, this is returning the wrong url www.domain Com / register / messages / pixeltracker.htm which will obviously return a 404 error and I have been informed on debugging that Before me / messages / pixeltracker.htm / code / $ ('# div') .load ('../message / pixeltracker.htm'); I'm just thinking this is a server or browser problem? I hope someone can explain it Regards Did you kill the page as www.domain.com/register / first? If you always use a backslash at the end, the message / pixeltracker HTM will work. Otherwise, it should not be right. $ ('# div'). Load ('messages / pixeltracker.htm'); First, it always returns www.domain.com/messages/pixeltracker.htm , it always comes in a folder.
Comments
Post a Comment