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 $ ('# div'). Load ('messages / pixeltracker.htm'); First, it always returns www.domain.com/messages/pixeltracker.htm , it always comes in a folder.

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.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -