Read data from database and display content in jquery dialog box - jquery-ui

I am new to CakePhp 2.0. I want to display information like about us in jquery ui dialog box. The content of the data is in the table aboutus. The table structure is
aboutus-> fields (id, abtus)
Is it possible to retrieve the data using ajax and then dynamically show the content in the jquery dialog box ? If so how?
Thanks in advance

I don't know how to do that in cakephp 2.0, but I satrted to make little things in ajax with this video tutorial: http://www.youtube.com/watch?v=dQ71psonQx0
Maybe it can help you too.

Related

jQuery Mobile - change page with additional attributes

I'm trying to implement simple feature into jQuery Mobile, but with no chance.
I have a list (listview - dynamic created) and i need, after someone click on element, to change a page with additional attribute (e.g id).
thanks for any advice.

What's the Best Way to Implement Paging with a List using jQuery Mobile and MVC?

I am building a media library from a tutorial to get up to speed on MVC 4. I did the whole thing and now I'm re-building it using jQuery Mobile. The only piece I've yet to find simple is paging which should be easy. Can someone steer me in the direction of a nice tutorial on the subject?
We do have similar kind of Use case.
Store the Data in Session object in the form of Dictionary in this form.
On click of Next or previous button in Pagination control, fetch data from Controller, bind data to appropriate control in the UI and show data.
Make sure to show only limited data in UI. Restrict the number[max 10 per page]
Format Dictionary

Jquery Mobile need a drop down to choose US States

I need a drop down in my Jquery Mobile application where the user can choose US States.
What is the best control to use for this?
I was thinking of using the
ListView
but wasn't sure if there was a better control for this purpose.
Have you looked at the jquery-mobile drop-downs aka as selects? (also look at the page for custom selects).
In fact in the documentation page for the custom selects that I linked to ( the example given is for a drop-down with the US States.

Yii - Can we use Form widgets functionality with jquery mobile

I am currently doing a portion of a project in jquerymobile for mobile users.
I want to know whether we can use the form widgets functionality wrapped up in jquerymobile. Because i could see the CSS of jquery mobile is not applied for text inputs. So i need whether this is the issue. so that i can change it now itself
You can use simple input fields and submit form through jquery
ajax...it can work..

URL with JQuery Mobile

I am using JQuery mobile in asp.net web form website. I have the following code at the page "pageA.aspx".
View Saved Orders
When I am clicking on this link I am successfully redirected to the PageB, but the URL I am getting is
http://localhost:3244/MyFirstJQueryApp/PageA.aspx#PageB.aspx
But I want URL like this further processing, please help
http://localhost:3244/MyFirstJQueryApp/PageB.aspx
I have done it by setting target="_top" property.
Is this a good practice ?
There are a couple of mods out there (can't find the one I wanted) to remove the hash in the URL, but you have to edit the jQM framework.
You could try using the changePage() http://jquerymobile.com/demos/1.0a4.1/#docs/api/methods.html and set the transition without tracking it in history option to true (I think it's true)
Here is some more documentation on navigation as well: http://jquerymobile.com/demos/1.0a4.1/#docs/pages/docs-navmodel.html
mightbe able to think of another way
The idea behind jQuery Mobile is that you don't do it the way you're trying to do it! Check Dynamic pages with jQuery Mobile, which shows you how to let jQm do the work in the background by loading new data into the DOM.

Resources