is it possible to add the jquery mobile look and feel of some buttons onto a desktop browser?
I included the jquery mobile css and js files and when I click the button, it's doing some behind the scenes stuff and not actually taking me to my destination. When I remove the JS (the cause of the strange behavior on the desktop), the button, as expected, doesn't get rendered the way I want it to.
Ideally, I'd like to just see the pure css and simplified JS that's rendering the button so that I can just add it to my desktop layout, and if that's an option to do somehow, that would work for my purposes.
I really don't want to have to dig through all of the jquery mobile js files and figure out what is going on there to piece this together though.
how can I just pare out what I need to have my buttons rendered on the desktop with the same look/feel as the mobile device w/o the mobile device functionality.
Edit for answer below:
this is what I"m calling now on my desktop page:
<link href="/Content/jquery.mobile.custom.structure.min.css" rel="stylesheet" type="text/css" />
<link href="/Content/jquery.mobile.custom.min.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="/content/mobile/themes/LS.min.css" />
<script src="/Scripts/jquery.mobile.custom.min.js"></script>
and calling the button like this:
<a data-role="button" data-theme="a" href="/home/foldit" data-icon="star">
Fold It
</a>
this is showing a textual representation of my button, not rendering the button. the only file I didn't include from the package is the "custom theme" css file because I figured that my theme should replace that. (the LS.min.css file).
Yes, it is possible.
You can rebuild jQuery mobile framework and use only wanted modules.
Go here: http://jquerymobile.com/download-builder/ and select only what you want.
*We’ve decoupled all of our plugins and have a clear dependency map which allows us to offer the download builder tool (Alpha) to let you build the leanest package possible.*
It is only usable with jQM 1.1.1 up to 1.2
Related
I noticed recently that something is related to CSS3 and some DOM elements that kind of make ::before and ::after appear in the inspector window. I wonder why they appear there?
The sample is as follows:
Get a Local Copy of Bootstrap
If you can't access Bootstrap from the CDN, you'll need to pull it in via NuGet or your preferred package manager (npm, bower, etc.). This will download the files into your solution so that they don't require any external connections.
Additionally, you can download Bootstrap directly if you would prefer that approach.
Reference the Local File
Once you have it in your solution, you'll just need to reference it by location within the <head> section of your _Layout.cshtml file:
<!-- Point to the location within your solution that Bootstrap is stored -->
<link href="~/Content/bootstrap.min.css" rel="stylesheet" type="text/css" />
Or you can simply drag-drop it from your Solution Explorer :
If you are still encountering issues, consider checking the Developer Tools (F12) within your browser and clearing your cache to ensure the latest files are being pulled properly.
Hi ive setup a Favorite icon one my site and when I try to make a shortcut on the desktop for the website it creates a icon on the shortcut that looks like this:
But I need it to look like this:
Can anybody suggest what might be happening and what is needed to correct this issues.
Below is how i have defined the Favorite icon.
<link rel="shortcut icon" href="http://elliotrees.co.uk/favicon.ico" />
I love this site and use it for all of my websites https://realfavicongenerator.net/ It creates favicons for every device out there today and gives you the favicons and the code for the html pages
I'm having trouble getting the value of a slider in jQuery Mobile. I want to be able to get the value of a slider and feed this into a calculation which will work out costs and savings etc.
My code works on a normal HTML website (link below) but I am trying to get it to work in a PhoneGap app using Jquery Mobile. I'm actually using a Flat UI version (1.4.0) of jQuery Mobile found on GitHub, but I have also tried this using the standard 1.4.2 jQuery Mobile JS and CSS with the same outcome.
In the app, my header looks like this:
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="css/jquery.mobile.flatui.min.css" />
<link rel="stylesheet" href="fa/css/font-awesome.min.css">
<script src="js/jquery.js"></script>
<script src="js/jquery.mobile-1.4.0-rc.1.js"></script>
<script src="cordova.js"></script>
I've been though the code and narrowed it down to an issue in jQuery Mobile JS file and CSS file:
If I remove the JQM JS file and keep the CSS file it works, but obviously there's no function or styling across the app.
If I remove the JQM CSS file and keep the JS file it works, but there is no styling across the app or on the slider (which shown as a number input instead).
If I remove both files it works, but obliviously there's no JQM left!
This JSFiddle is a near copy of the calculator:
http://jsfiddle.net/tooze/H6FhD/
You can see a working web version of this calculator here: http://bit.ly/1lsUz8a
Have I written something incorrectly in my code? Or is it something conflicting in the JQM files?
Thank you in advance
I currently have a webpage that displays an application. The purpose of this was so that a user would be able to receive a version of this application pre-filled with their information so they would be able to print it out. Currently the page looks great and matches the application almost one for one.
UNFORTUNATELY when looking at the print preview it is a horrific mess; there are line breaks everywhere and nothing seems to line up the way it looks when looking at the webpage.
Is there something I have to do to have the CSS rules applied to the printed version of the page?
WHELP, I found when I added "print" to media, it applied the CSS correctly and now is displaying as it should.
So this basically fixed the issue...
<link rel="stylesheet" type="text/css" href="/stylesheets/style.css" media="screen, print">
I am starting this web app project (asp.net mvc)
It's a document-based system, such that nearly each web page is a model of an official printed form (and users sometimes should be able to produce prints).
I am wondering how much cost and time saving it will be if the form could be a wyswyg page that will serve both electronic and paper audiences.
I know that Adobe Acrobat forms has something like that. Would've have been perfect for my purposes but it's not pluggable -- meaning I don't have a choice as to backend system.
Does anyone know anything out there that renders pdf/like pdf to the printer but has html form submit capabilities?
Why not css print media? For example,
<link rel="stylesheet" href="css/printstylesheet.css" media="print" />
You can define both the things in the same page. Something like this,
<link rel="stylesheet" href="css/mainstylesheet.css" media="screen" />
<link rel="stylesheet" href="css/printstylesheet.css" media="print" />
I hope this is you are looking for, not sure though.
An excerpt from the book Pro CSS Technique.
Edited:
CSS print media browser conformance.
Check out wkhtmltopdf... FOSS and uses webkit rendering engine (safari, google chrome) to convert from html to pdf... I tried compiling it on windows and I got it to work. Much better than anything else I can find. Supports all the css I can throw at it.