- Screen name: dealtek
dealtek's Profile
9 Posts
11 Responses
0
Followers
Show:
- Expanded view
- List view
Private Message
- Hi,basic newbie question... I have a button with id = postJson that triggers a script (below)...- the button is on top of the form- now I would like to add a duplicate 2nd button at the bottom of the form that does the same thing - so I duplicated the button and gave it id = postJson2 ...Q: rather than create a whole dupe of the script (to trigger the same thing) - is there a way to write it so that the script below will trigger from either button = postJson or postJson2?maybe like : $('#postJson').click(function() or ???? $('#postJson2').click(function() { ?????- or maybe an easier way to have either button trigger the same script?
-
<script>$(document).ready(function(){$('#postJson').click(function(){etc....
- Hi all,So, I have a legacy older site that I have converted to html5 and jquery.when using links from page1.html to page2.html like:<a rel="external" href="page2.html">page2</a>on some pages like page2.html I NEED to make sure to have NO CACHE happening.Problem: nothing this newbie does will force a page refresh for Page2.htmlI have tried:<meta http-equiv=”Pragma” content=”no-cache”><meta http-equiv=”Expires” content=”-1″><meta http-equiv=”CACHE-CONTROL” content=”NO-CACHE”>But they don't seem to work here...Q: How can I make sure to always have NO CACHE on a certain page?Q: Is there a javascript / jQuery way to make sure and work like - NO-CACHE so the entire page will load fresh?
- 08-Jul-2015 01:05 PM
- Forum: Getting Started
Hi all,I am a query newbie attempting to incorporate J query mobile into a pre-existing multipage website.In this case I have this previously working Page setup:It may sound a bit odd but it is working fine negotiating with and external websitemypage.phpin this header I have various https://code.jquery.com/xxxx links (only here)In the body of this page I have A PHP include to = myform.phpmyform.php is and rather complex form that goes in three parts to the external website - (this form came from the external website and is complex so I do not want to have to change any of it at this point, I might mess it up)Inside this page there really are three separate HTML Pages with headers and everything1 collect form data12 return result then collect form data23 return final resultBasically it is working fine as is. The problem is when I attach jquery mobile to my page.php–then I can see that everything looks better, However the page is not returning to the proper locations after submitting the various forms.ex: form 1 - click submit - then it should come back to the same page (self) and should return a result and jump to form2 (using php if statements to control the flow)PROBLEM: now after click part 1 submit - it just shows processing and hangs or if I set something else it may just keep returning to part 1...I have tried putting and not putting - rel="external" to the submit buttons - it does not helpI'll bet this has to do with jquery and header issues that I don't quite grasp yet....Any ideas how to get this to work?- 07-Jul-2015 09:05 PM
- Forum: Getting Started
hi all,Currently I am using JQM on a multi page sitesubmit button on page 1 that goes to page 2 has : rel="external"and works wellhowever on page 2 I have database processing at the top - then this header that goes to page 3<meta http-equiv="refresh" content="0; url=page3.php">Without JQM page 1 goes to page 2 then auto goes to page 3WITH JQM - it STOPS on page 2 and doesn't see the refresh I guess....Q: Is there a way to get this to process to get to page 3?- Hi all,Just getting started and I have some links on a page working fine and each looks the same with the theme settings I have set up like:<a href="#" class="ui-btn" >Page1</a> <br /><a href="#" class="ui-btn" >Page2</a> <br /><a href="#" class="ui-btn" >Page3</a> <br /><a href="#" class="ui-btn" >Page4</a>but I would like an alternate button UP - background-color for *every other one* - so I tried something like:<a href="#" class="ui-btn" >Page1</a> <br /><a href="#" class="ui-btn" style="background-color:#CCCCCC">Page2</a> <br /><a href="#" class="ui-btn" >Page3</a> <br /><a href="#" class="ui-btn" style="background-color:#CCCCCC">Page4</a>but that over-rode the hover and visited settings ....I would prefer to just be able to add extra css to this 1 page only and not have to dig deep into the JQM theme-a and/or theme-b setting which look complex for me right now.Q: So how can I simply have a 2nd background-color - ONLY NEEDED for the UP BUTTON STATE for every other link?
- Hi all,I am using jquery.mobile-1.4.5and working on a fixed bottom footercurrently as listed below...It works ok - but there is space between each button...Q: Is there a way to have each button auto width to fill so there is no empty space?---------<footer data-role="footer" class="ui-barNAH" data-position="fixed" data-theme="a"><div class="ui-grid-c"><div class="ui-block-a"><a href="#" rel="external" data-role="button" class="ui-btn ui-shadow ui-corner-all ui-btn-icon-left ui-icon-home">Home</a></div><div class="ui-block-b"><a href="#" rel="external" data-role="button" class="ui-btn ui-shadow ui-btn-icon-left ">Go Here</a></div><div class="ui-block-c"><a href="#" rel="external" data-role="button" class="ui-btn ui-shadow ui-btn-icon-right ui-icon-info">Go Here</a></div><div class="ui-block-d"><a href="#" rel="external" class="ui-btn ui-shadow ui-corner-all ui-btn-icon-right ui-icon-search">Go Here</a></div></div></footer>
- Hi all,
I was working on a site and experimenting with query.mobile. on my home test server all was working - but when I put it on the main server the query.mobile stopped working.
I think I have it tracked down to the SSL cert - https
When the .htaccess file is taken away and I view site on HTTP not HTTPS then it works
but the HTTPS seems to block the header lines below.....
Q: any idea how to fix these links?
these are not a problem I think (on my server- not cloud)
<link rel="stylesheet" href="inc/jq/themes/theme-02.css" />
<link rel="stylesheet" href="inc/jq/themes/jquery.mobile.icons.min.css" />
these ARE a problem on https I think
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile.structure-1.4.5.min.css" />
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js">
============
the .htaccess file
==========
#RewriteEngine On
#RewriteCond %{HTTPS} !=on
#RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]- 08-Jun-2015 10:44 AM
- Forum: Getting Started
Hi all,
Just getting started with query mobile on an existing site. All was fine prior to adding query mobile, but now it seems my php multi page login structure is now flawed. Also part of the problem seems to be that generally some page content is showing after clicking links to go to pages - but the url is showing a different page.
I think it may have something to do with query mobile caching and other html5 issues....?
old php system that might not be the best but did work
1 - login page
2 - php processing page with redirect to 3rd page
3 - main page
Is query mobile caching part of the problem and with the url's too?
For now I would like to see if I can fix this so the php login can work again.
Thanks in advance.
- 02-Aug-2013 08:31 PM
- Forum: Getting Started
looking for a simple responsive navigation menu for IOS and others for a website. I'd love to hear some suggestions- «Prev
- Next »
Moderate user : dealtek -
© 2013 jQuery Foundation
Sponsored by and others.

