Loading ...

JS file not working with Url Rewriting in asp.net

Who is online?  0 guests and 0 members
home  »  forums   »  asp.net topics   »  client side web development   » JS file not working with Url Rewriting in asp.net

JS file not working with Url Rewriting in asp.net

Posts under the topic: JS file not working with Url Rewriting in asp.net

Posted: 12/14/2009

Lurker 40  points  Lurker
  • Joined on: 12/14/2009
  • Posts: 8

Hi raghav,

i'm developing a website using asp.net and jquery,i'm using JQueryUI script to build the tab ,calender adn side menu as well. my project folder stuc is like this

 

web

web/js

    jquery123.js

    jmenu.js

     jtabs.js

web/product

     list.aspx

    view.aspx

web/cou

    viewcoun.aspx

   addcoun.aspx

web/css

    main.css

   external.css

 

When i'm load home page its working all cool. now i'm using url rewriting to when user click a side menu(printer) it will change the url http://localhost/product/printer/ds20UR0987 instead of http://localhost/product/view.aspx?id=ds20UR0987

after come to this page mennu accordien menu look sad and it not working expand collpase as well.then i look the view source   js file path showing like this /JS/jquery123.js , but not working. Please help i need finished off within this week.

 

thank you

 

 

 

 


Posted: 12/15/2009

Lurker 40  points  Lurker
  • Joined on: 12/14/2009
  • Posts: 8

Hi Experts,

no one have idea or answer to this ?

 

thank you


Posted: 12/15/2009

Guru 16518  points  Guru
  • Joined on: 4/19/2009
  • Posts: 483

Do you have firebug , please show me what is the script paths are becoming. Damn sure they must be in red.


Posted: 12/15/2009

Lurker 40  points  Lurker
  • Joined on: 12/14/2009
  • Posts: 8

Hi,

Thank you for your reply,

url -http://localhost/domainname/product/printer/08934DS.aspx

script file path -<script src="/domainname/JS/menu.js" type="text/javascript"></script>

 

for this url, not working


thank you


Posted: 12/15/2009

Guru 16518  points  Guru
  • Joined on: 4/19/2009
  • Posts: 483

Does your js file exist at this pths

http://localhost/JS/jquery123.js


Posted: 12/15/2009

Lurker 40  points  Lurker
  • Joined on: 12/14/2009
  • Posts: 8

HI,

 

Yes, without that how can work home page css?

 

thank you


Posted: 12/16/2009

Guru 16518  points  Guru
  • Joined on: 4/19/2009
  • Posts: 483

ravenet said:

HI,

 

Yes, without that how can work home page css?

 

thank you

 

Sorry i could not get you , could you be please a bit more clear, and also what is the Path firbug showing for js files can you paste a screen shot here.


Page 1 of 1 (7 items)