mserra's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
New Members
Active Posts:
5 (0.01 per day)
Joined:
27-August 12
Profile Views:
345
Last Active:
User is offline Oct 01 2012 09:06 AM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   mserra has not set their status

Posts I've Made

  1. In Topic: HELP: Problem handling select events with javascript/jquery/c# (MVC4)

    Posted 29 Aug 2012

    View PostNakor, on 28 August 2012 - 08:33 PM, said:

    It's up in the url, when you select the link for the next page instead of the url looking like "http://mysite/home/about" it looks like "http://mysite/#/home/about". You can see the url in the address bar at the top of your browser, it's where you type in the address for a website.

    Quote from the docs for jquery mobile

    Quote

    In general, hash changes are created whenever a link is clicked in jQuery Mobile. When a link is clicked, jQuery Mobile will make sure that the link is referencing a local URL, and if so, it'll prevent the link's default click behavior from occurring and request the referenced URL via Ajax instead. When the page returns successfully, it will set the location.hash to the new page's relative URL.


    Link to the jquery mobile docs where I found this information.

    One suggestion I've seen to correct this is to add rel="external" to the link

    <a href="nextpage.aspx" rel="external">Next Page</a>
    


    However, I haven't tried it myself to verify that it works


    This works perfect.
  2. In Topic: HELP: Problem handling select events with javascript/jquery/c# (MVC4)

    Posted 27 Aug 2012

    View PostNakor, on 27 August 2012 - 05:14 AM, said:

    The problem is being caused because jquery mobile is adding a # to the url on the other pages. If you look at the url you'll notice it looks something like http//:localhost:1234/#/home/about. If you manually remove the #/ and hit enter then the page will work correctly. Unfortunately I'm not sure how you'd go about fixing this as I'm not a jquery mobile expert. However if you are developing this as a mobile site then it would be best to test this on a mobile device rather than in a full blown browser as there are some differences in them.


    What makes you think jquery mobile add a #? Where you see that? In what part of the code? Because I don't see any #.

    Thanks for responding
  3. In Topic: HELP: Problem handling select events with javascript/jquery/c# (MVC4)

    Posted 27 Aug 2012

    I think it has something to do with 'THIS'.

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Private

Friends

mserra hasn't added any friends yet.

Comments

mserra has no profile comments yet. Why not say hello?