- Screen name: joeboh
joeboh's Profile
2 Posts
1 Responses
0
Followers
Show:
- Expanded view
- List view
Private Message
Hi,
I am new to jquery mobile and am trying to swith between views in code! I two views declared as
The two views:
<div data-role="view" data-title="Jobslist" id="jobslist-view">
<div data-role="view" id="details-view">
The first view contains a unordered list and when a list item is clicked it populates a template in the second view, this works fine I now want switch between the jobslist-view and the details-view, but I am struggling with the method. If I place a button on the jobslist-view I am able to see the details-view, but how do I achieve this in code.
Can you help?
The button that shows the view:
<a href="# details-view "
data-role="button"
>Settings</a>
- Hi,Please bear with me I am new to jquery and wish to make a call to an asp.net web service from a mobile application. The service resides on a server and when I attempt to make the call I get the cross domain error:Origin null is not allowed by Access-Control-Allow-Origi
n. <script>
(function() {
var cartItem = {"User": 'User Name', "Password": Password', "JobItemId": '12345', "DeviceURL": 'www.Unknown'}
$.ajax({
type: "GET",
headers: {
Accept:"application/json",
"Access-Control-Allow-Origin": "*"
},
url: "http://My IP address/Service1.asmx?op=JobDetail",
data: JSON.stringify(cartItem),
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (data) { OnSuccess(cartItem, data); },
});
})();Is this possible or am I totally confused?- «Prev
- Next »
Moderate user : joeboh



