$.address.value undefined

  • Posted in : impressivCard
  • Mike
    Participant

    I am trying to utilize this template in an asp.net MVC4 site and i am running into an issue in main.js on line 389 $.address is undefined and i am not sure why. if i comment out the giveDetailURL function call on line 26, then it gives the same error on line 32.

    I am pretty sure this isn’t anything to do with the template itself because when i just run the index.html page from the template download, everything works fine.

    Sorry if my problem seems vague and not related to your template, i’m just hoping someone can help.

    Thanks,
    Mike

    Mike
    Participant

    ok i think i figured out the problem. Using the new Bundling feature seems to have caused an issue with the script paths. Moving the script references out to the _layout.cshtml head section instead of running them through @Scripts.Render(“….”) seems to work.

    now to figure out how to get them to work in the bundler. at least it’s working now though and might help someone else if they are trying the same thing.

    ahmetsali
    Keymaster

    Hi, i took a quick look to Bundling in MVC4. It combines script files into one files. That shouldn’t be a problem, unless you add jquery script first, after that jquery address plugin , and main.js after that. Also use jquery 1.7.2, jquery address plugin is not compatible with jquery v1.8+.

    Mike
    Participant

    You are correct. it does appear that the scripts order in the bundling does affect it. Sorry i didn’t notice that before.

    Thanks for the assistance!

Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘impressivCard’ is closed to new topics and replies.