JQuery Mobile version

I'm trying to use ThemeRoller to theme my LS-application. In an article I found the following about choosing the JQuery Mobile version in ThemeRoller: "Switch to version 1.1.1 (or whatever version of JQuery Mobile that is in the Default.htm file
of the LightSwitch website)."
The ThemeRoller list contains "1.4.5", "1.3.2", "1.2.1", .....
I have the following in my Default.htm
<script type="text/javascript" src="Scripts/jquery.mobile-1.3.0.min.js"></script>
How should the above be interpreted?
What "JQuery Mobile" version of ThemeRoller should be safe to use?
How safe is it to use a newer version in ThemeRoller than is used in my Default.htm?
Is it safe to update Default.htm in LS to eg. "jquery.mobile-1.4.5..." ?
Regards Roger.
PS. Probably no absolute correct answer to this question, but any advice appreciated.

Give 1.3.2 a try. The differences between the versions typically do not affect LightSwitch but you have to try a theme and test.
Dave
Dave Baker | AIDE for LightSwitch | Xpert360 blog | twitter : @xpert360 | Xpert360 website | Opinions are my own. For better forums, remember to mark posts as helpful/answer.

Similar Messages

  • TypeError: s.text(...).addClass is not a function on a Select list item jquery mobile theme

    Hi.
    i got a page with jquery mobile template, i got an select list item based on customers , when i touch the field, it display correcty all my customers, but when i try to pick some records i just get the error (i am using firefox firebug to see the error):
    TypeError: s.text(...).addClass is not a function
    ...ollapsiblebound",!0).bind("expand collapse",function(t){var n=t.type==="collapse...
    here is my query :
    select
    nombre_cliente || ' ' || apellidos_cliente a, codigo_cliente b
    from sti_cliente
    where
    codigo_compania in (select distinct codigo_compania from STI_COMPANIA_SUCURSAL_USUARIO where upper(codigo_usuario) = upper(:APP_USER))
    and estado_cliente = 'A'
    and (MANEJA_INVENTARIO_CONSIGNACION = 'S'
    and (codigo_compania, codigo_vendedor) in (select codigo_compania, codigo_vendedor from VTA_MAESTRO_VENDEDORES where codigo_usuario = upper(:APP_USER)) or cliente_contado = 'S')
    order by nombre_cliente, apellidos_cliente
    i have supress a dynamic action based on the field, but seems the problem is something within the query.
    i am running on :
    Application Express 4.2.4.00.08
    Application Express Listener version : 2.0.5.287.04.27
    Application Express Listener server info: Grizzly/1.9.49
    thanks for any tip.

    PLEASE DO NOT post to long since expired threads.  The poster is probably NOT following this thread and your response doesn't really help them with their issue...
    Elephants wear tu-tus so they can hide in pine trees. Did you ever see an elephant in a pine tree? No? Well then, you know it works.
    Thank you,
    Tony Miller
    LuvMuffin Software
    Ruckersville, VA

  • Jquery mobile - how to create multiple CSS files?

    I've been researching this heavily, and can't seem to find anyone discuss this. I'm a CS4 user, and understand 5.5 now includes builtin support for jquery mobile. I've watched the videos on how you set the sizes for phone, tablet, desktop, point each to the appropriate CSS file. Great, wonderful.
    However, nobody is discussing how you get the three separate CSS files!  I want to add a mobile version of an existing site. I have just the one .css file. How do I make the other 2 .css files? Do I duplicate the desktop file, and start somehow altering each item? Is there some type of automatic system to tweak the main .css file?
    Seems like this step is critical. Any insights?

    I built this page with CSS Media Queries.  If you resize viewport to less than 480px, it changes layouts.
    http://alt-web.com/TEMPLATES/CSS-centered-round-boxes.shtml
    I made the Desktop.css first.
    http://alt-web.com/Styles/Desktop.css
    Then I removed the Desktop.css link from my HTML document and replaced it with the iphone.css link. 
    http://alt-web.com/Styles/iphone.css
    After fine tuning the iphone layout, I re-attached the desktop.css link and added the following code to the head of my document.
    <meta name="viewport" content="user-scalable=no, width=device-width" />
    <link href="../Styles/Desktop.css" rel="stylesheet" type="text/css" media="only screen and (min-width:481px)" />
    <link rel="stylesheet" type="text/css" href="../Styles/iphone.css" media="only screen and (min-width: 0px) and (max-width: 480px)"/>
    <!--pre-IE9 browsers don't support CSS3 so we give them the desktop layout-->
    &lt;!--[if lt IE9]>
    &lt;link rel="stylesheet" type="text/css" href="../Styles/Desktop.css" media="screen" />
    <![endif]-->
    Do you have to literally go in and manually change the wraps, floats, whatever for everything?
    Yes.  If you examine the comments in my iphone.css code, you'll see I changed some things to display:none, float:none, etc...
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • JQuery Mobile in Dreamweaver CS6

    This question was posted in response to the following article: http://helpx.adobe.com/dreamweaver/using/whats-new
    Mulling the upgrade to CS6. This article says Dreamweaver CS6 ships with jQueryMobile 1.0 and jQuery 1.6.4.
    We now have version 1.1.0 of jQueryMobile with a suggestion to use jQuery 1.7.1 with it.
    Question: Can we, and how do we, update the libraries? And will the new versions work without a hitch in Dreamweaver CS6?

    Yes, you can update the included version of jQuery Mobile.
    Download the desired version from jquerymobile.com, and replace the files within Dreamweaver's Configuration folder. Greg Rewis wrote up a helpful blog post that details this process: http://blog.assortedgarbage.com/2011/05/updating-jquery-in-dreamweaver-cs5-5/
    I haven't run into any issues with the newer stable versions (i.e. jQm 1.1.0 and jQ 1.7.1/1.7.2).
    If you do, though, we'd like to hear about it: http://adobe.ly/DWBug

  • ADOBE - Why is the meta "viewport" tag missing from the jQuery Mobile Web starter pages?

    Hi -
    I'm just starting to play with mobile and responsive web design.  I worked out a mobile version of an existing site which looked good locally but when I uploaded it the site appeared miniaturized and not optimized for small viewports.  All the text, images, buttons, etc - were tiny on the iPhone screen when the site was supposed to adapt to the small screen.  It took me a few hours of hair pulling to find out that the most important tag of all was missing:
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    Why on earth would Adobe tout that their web dev application has features to springboard mobile design if the starter pages don't even include the fundamental tag that makes a site viewable on mobile screens ??
    Is my version of Dreamweaver missing something?  Version 12/build 5861, Mac OS X 10.7.5 ?  Or has someone at Adobe forgot to test this product?  Or am I just crazy (besides being mad as hell)?
    thanks,
    Josh

    Sorry, Im not sure where you are looking, but here is the code directly from my #s3
    slider.css page. You'll see that the change you suggested has been made. I did upload the changes as well.
    If this doesn't work, is there a more simple download you can recommend for a 3-4 photo slideshow?
    Minibuzz - CSS File For s3Slider JQuery
    #s3slider {
        width: 960px; /* important to be same as image width */
        height: 300px; /* important to be same as image height */
        position: relative; /* important */
        overflow: hidden; /* important */
    #s3slider a.but, #s3slider a.but:visited{color:#fff; padding:0px 0px; background-color:#444; filter: alpha(opacity=90); opacity: 0.9; border:solid 2px #363637;}
    #s3sliderContent {
    width: 960px; /* important to be same as image width or wider */
    position: absolute;/* important */
    list-style-type:none !important;
    margin-top: 0px;
    margin-left: 0px;
    *padding-left: 0;*
    .s3sliderImage {
        float: left; /* important */
        position: relative; /* important */
        display: none; /* important */
        llist-style-type:none !important;
    .s3sliderImage div {
        position: absolute; /* important */
        right:0;
        top:0;
        font-size: 12px;
        padding:0;
        width: 390px;
        height:340px;
        padding:60px 30px 20px 30px;
        background-color: #000;
        filter: alpha(opacity=60); /* here you can set the opacity of box with text */
        opacity: 0.6; /* here you can set the opacity of box with text */
        color: white;
        display: none; /* important */
        bottom: 0px;   /*
           if you put
           top: 0; -> the box with text will be shown at the top of the image
           if you put
           bottom: 0; -> the box with text will be shown at the bottom of the image

  • JQuery Mobile with Dreamweaver CS6 - Blink

    I´ve created a JQuery Mobile page using Dreamweaver CS6  that works perfectly in Firefox, but in iPad it appears blink effect when there´s a transition.
    How to remove blink in transitions for JQuery Mobile ?

    Yes, you can update the included version of jQuery Mobile.
    Download the desired version from jquerymobile.com, and replace the files within Dreamweaver's Configuration folder. Greg Rewis wrote up a helpful blog post that details this process: http://blog.assortedgarbage.com/2011/05/updating-jquery-in-dreamweaver-cs5-5/
    I haven't run into any issues with the newer stable versions (i.e. jQm 1.1.0 and jQ 1.7.1/1.7.2).
    If you do, though, we'd like to hear about it: http://adobe.ly/DWBug

  • JQuery Mobile with Trinidad/ADF Faces

    Hi
    Is it possible to use JQuery Mobile with Trinidad/ADF Faces? I tried using JQuery Mobile with Trinidad, but the trinidad components are not rendering on the page. Is there a way out?
    Below is my code:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html" xmlns:trh="http://myfaces.apache.org/trinidad/html"
    xmlns:tr="http://myfaces.apache.org/trinidad" xmlns:dvtt="http://xmlns.oracle.com/dss/trinidad/faces">
    <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
    doctype-system="http://www.w3.org/TR/html4/loose.dtd"
    doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <trh:html>
    <trh:head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0b2/jquery.mobile-1.0b2.min.css"/>
    <script src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
    <script src="http://code.jquery.com/mobile/1.0b2/jquery.mobile-1.0b2.min.js"></script>
    </trh:head>
    <trh:body>
    <div data-role="page" data-theme="c" id="page">
    <div data-role="header" data-theme="e" id="header">
    <h1>Wireless &gt; Logon</h1>
    <a href="../../ data-icon="home" data-iconpos="notext" data-direction="reverse"
    class="ui-btn-right jqm-home">Home</a>
    </div>
    </div>
    <tr:form>
    <tr:commandButton id="cbt" text="command button"/>
    </tr:form>
    </trh:body>
    </trh:html>
    </f:view>
    <!--oracle-jdev-comment:deviceCategory:pda-->
    </jsp:root>
    Regards
    Navin

    With out the JQuery mobile settings ie the css and js entries. The trinidad components are rendering. Below is my web.xml file.
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    version="2.5">
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
    </context-param>
    <context-param>
    <param-name>javax.faces.PARTIAL_STATE_SAVING</param-name>
    <param-value>false</param-value>
    </context-param>
    <context-param>
    <description>If this parameter is true, there will be an automatic check of the modification date of your JSPs, and saved state will be discarded when JSP's change. It will also automatically check if your skinning css files have changed without you having to restart the server. This makes development easier, but adds overhead. For this reason this parameter should be set to false when your application is deployed.</description>
    <param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name>
    <param-value>false</param-value>
    </context-param>
    <filter>
    <filter-name>trinidad</filter-name>
    <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>trinidad</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>ERROR</dispatcher>
    </filter-mapping>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>resources</servlet-name>
    <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>resources</servlet-name>
    <url-pattern>/adf/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>resources</servlet-name>
    <url-pattern>/afr/*</url-pattern>
    </servlet-mapping>
    </web-app>

  • Problem using items with jQuery mobile

    I currently encountered two issues with the jQuery mobile template in APEX.
    - Textfield with autocomplete is not supportet and doesn't work
    - Date field should be supportet but doesn't work in most browsers
    Is there anything planned in APEX 5 to find workarounds for this? Or do we have to build our own solutions?
    My current APEX version is "4.2.2.00.11".

    Regarding the date picker - what about it doesn't work? I haven't found any issues with using date pickers on many different devices.

  • DW CS6 and jQuery Mobile 1.2.0 - does not copy icons folder

    Using the trial version of DW CS6
    Attempting to create a JQuery Mobile Web site using DW and JQM 1.2.0
    This is what I have done.
    1. Created a new folder in C:\Program Files\Adobe\Adobe Dreamweaver CS6\configuration\Third Party Source Code\jquery-mobile2
    and copied the following files:
    jquery-1.8.2.js
    jquery.mobile-1.2.0.js
    jquery.mobile.structure-1.2.0.css
    jquery.mobile.theme-1.2.0.css
    \images - all files copied from the JQuery Mobile download for v1.2.0
    2. Edited the following files in C:\Program Files\Adobe\Adobe Dreamweaver CS6\configuration\BuiltIn\Mobile Starters:
    jQueryMobileLocalMultiPage.htm
    jQueryMobileLocalSplitMultiPage.htm
    and pointed them to the new jquery-mobile2 folder by changing each path from
    ../../Third Party Source Code/jquery-mobile/
    to
    ../../Third Party Source Code/jquery-mobile2/
    3. In DW, File New and selected the "Page from Sample > Mobile Starters > jQuery Mobile with Theme(local) and DW created a file with paths pointing to the local copies of jquery-mobile2 folder.
    4. File > Save As and point to a folder and hit save and DW opens a dialog box asking me if I want to copy the 2 CSS and 2 JS files mentioned above.
    So I hit "Copy" and it saves the HTML file and also copies the 2 CSS and 2 JS files. But when I open the HTML file created, in my browser, there are no images displayed. I checked the folder and although DW has copied the other files it has NOT copied the images folder. I have to manually copy the folder across and only then will the images display corrctly in the page.
    This appears to be a bug in DW CS8 and its handling of the JQMobile template.
    Is there a proper solution other than remembering to manually copy the images folder or can this be noted as a bug and corrected as I want to use the latest version of JQMobile.

    Fixed it myself. I realized that I needed to leave <link href="jquery-mobile/jquery.mobile.theme-1.0.min.css" rel="stylesheet" type="text/css"/> in index.html and to add a new line <link href="jquery-mobile/y_theme.css" rel="stylesheet" type="text/css"/>

  • Where are the Jquery Mobile starter options in Dreamweaver CC 2014 ?

    In Dreamweaver CC 2014 the Mobile Starter in Page samples seems to be missing. I have it in Dreamweaver CS 6 but the Jquery mobile starter pages aren't in the CC version.
    In the Adobe tutorials on Adobe.tv you say to use the mobile starter page but it is not in my version
    Dreamweaver CC 2014
    This is what your tutorial on Dreamweaver shot looks like

    The JQuery Mobile Mobile Starter has been replaced by new menu items in the Insert menu. Instead of choosing Page from Sample, you now create a new, blank HTML5 document, then insert the JQuery page components. The first step is to choose
    Insert->JQuery Mobile->Page
    (If this menu is grayed out, simply click anywhere in  Code View first.)
    The first time you choose this menu item, Dreamweaver will display two dialogs; thereafter, it will display only one. The first dialog asks you to locate dependent files. This gives you the same options as the previous method (use a CDN, or us local .js scripts), but with much greater control. Immediately after you close this dialog, the second one appears. It simply asks whether you want a starter page with Header or Footer, both or neither. After that, every time you choose
    Insert->JQuery Mobile->Page
    Dreamweaver will only show that Page Layout dialog, no longer the first one about dependent files.
    How do you create a menu list on the Home page? Simply place the cursor in the Content section of your very first page, and choose:
    Insert->JQuery Mobile->List View
    Adobe is still doing a very poor job of explaining this, seemingly unconcerned about its customers who rely on the most recent method. The only explanation is given in this link: Building and packaging mobile apps in Dreamweaver CC | Adobe Developer Connection

  • Disposition of Jquery Mobile 1.3.1 in Dreamweaver CC.

    Disposition of Jquery Mobile 1.3.1 in Dreamweaver CC.
    Dreamweaver CC is not updated with the last version of Jquery Mobile 1.3.1.
    Please, present in your Adobe DW Support Center an Extension similar to the extension for “jQuery Mobile 1.0 Extension for Dreamweaver CS5.5”
    I'm aware that there is a possibility to make a manual update but is not as easy to make it manually.
    Many Thanks, Adolfo

    Moving this discussion to the Dreamweaver extensions forum.

  • Please prepare asap an extension for installing the new Jquery Mobile 1.2.0 release, which is now th

    Please prepare asap an extension for installing the new Jquery Mobile 1.2.0 release, which is now the latest stable version, please. Many thanks, Adolf

    Krrish,
    So do you mean that the BPEL respository was already there when you did the install? If yes, then that explains the mismatch error. You should always clean up the old references if doing a reinstall. Drop the user and schemas related to PM and do a reinstall.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Dreamweaver: What happened to jQuery mobile samples in starter templates?

    I'm using the Missing Manual tutorial to learn Dreamweaver and I just got to the jQuery mobile section. The tutorial for this requires that I use the mobile starters sample folder which includes jQuery mobile templates. But apparently this folder is not included in the newest DW update which I installed yesterday. Does anyone know if these templates are still accessible within, or possibly outside of Dreamweaver?
    Thanks!

    By the way, both of the Adobe Tutorials that tell me how to use DW with jQuery mobile require that I use the mobile starters template which the "outdated" textbook was asking me to create. I'll link to them below:
    Create advanced design templates for jQuery Mobile | Adobe Dreamweaver CC tutorials
    Use customizable starter designs for jQuery Mobile | Adobe Dreamweaver CC tutorials
    I guess that Adobe tutorials tend to be outdated by at least 1 and perhaps as many as 3 versions.

  • When will DW CC update to jQuery Mobile 1.3?

    Hi. One of the things I expected by upgrading to CC was a more recent version of jQuery Mobile built in to DW. Why haven't Adobe updated it because 1.0 is two years old. A lot of functionality has changed too since then.
    One of the selling points of buying, I mean renting, Adobe Cloud software is more regular updates. So where is it?

    Thanks for the suggestion and your response. I filed a feature request and was shocked to receive a reply from someone on the DW team saying thank you and that 1.3 will be included in an update coming soon. That's the first time in 10 years a real person replied to a feature request from me! It made my day!

  • How do i change the path of data ajax false from returning to homepage, when using a PHP mail form in jquery mobile?

    I have a put a php mail form in the quote page of my mobile site. However when i send the form it returns to the route page rather than the quote page, i have used the data ajax false action as i dont want to send via ajax. i have left the thanks page blank as i want it to remain on the same page showing sent or declined message.  Can someone help please? 
    <?php
    // OPTIONS - PLEASE CONFIGURE THESE BEFORE USE!
    $yourEmail = "[email protected]"; // the email address you wish to receive these mails through
    $yourWebsite = "www.firstcalltransport.co.uk"; // the name of your website
    $thanksPage = ''; // URL to 'thanks for sending mail' page; leave empty to keep message on the same page
    $maxPoints = 4; // max points a person can hit before it refuses to submit - recommend 4
    $requiredFields = "name,email,collection,delivery,comments"; // names of the fields you'd like to be required as a minimum, separate each field with a comma
    // DO NOT EDIT BELOW HERE
    $error_msg = array();
    $result = null;
    $requiredFields = explode(",", $requiredFields);
    function clean($data) {
      $data = trim(stripslashes(strip_tags($data)));
      return $data;
    function isBot() {
      $bots = array("Indy", "Blaiz", "Java", "libwww-perl", "Python", "OutfoxBot", "User-Agent", "PycURL", "AlphaServer", "T8Abot", "Syntryx", "WinHttp", "WebBandit", "nicebot", "Teoma", "alexa", "froogle", "inktomi", "looksmart", "URL_Spider_SQL", "Firefly", "NationalDirectory", "Ask Jeeves", "TECNOSEEK", "InfoSeek", "WebFindBot", "girafabot", "crawler", "www.galaxy.com", "Googlebot", "Scooter", "Slurp", "appie", "FAST", "WebBug", "Spade", "ZyBorg", "rabaz");
      foreach ($bots as $bot)
      if (stripos($_SERVER['HTTP_USER_AGENT'], $bot) !== false)
      return true;
      if (empty($_SERVER['HTTP_USER_AGENT']) || $_SERVER['HTTP_USER_AGENT'] == " ")
      return true;
      return false;
    if ($_SERVER['REQUEST_METHOD'] == "POST") {
      if (isBot() !== false)
      $error_msg[] = "No bots please! UA reported as: ".$_SERVER['HTTP_USER_AGENT'];
      // lets check a few things - not enough to trigger an error on their own, but worth assigning a spam score..
      // score quickly adds up therefore allowing genuine users with 'accidental' score through but cutting out real spam
      $points = (int)0;
      foreach ($badwords as $word)
      if (
      strpos(strtolower($_POST['comments']), $word) !== false ||
      strpos(strtolower($_POST['name']), $word) !== false
      $points += 2;
      if (strpos($_POST['comments'], "http://") !== false || strpos($_POST['comments'], "www.") !== false)
      $points += 2;
      if (isset($_POST['nojs']))
      $points += 1;
      if (preg_match("/(<.*>)/i", $_POST['comments']))
      $points += 2;
      if (strlen($_POST['name']) < 3)
      $points += 1;
      if (strlen($_POST['comments']) < 15 || strlen($_POST['comments'] > 1500))
      $points += 2;
      if (preg_match("/[bcdfghjklmnpqrstvwxyz]{7,}/i", $_POST['comments']))
      $points += 1;
      // end score assignments
      foreach($requiredFields as $field) {
      trim($_POST[$field]);
      if (!isset($_POST[$field]) || empty($_POST[$field]) && array_pop($error_msg) != "Please fill in all the required fields and submit again.\r\n")
      $error_msg[] = "Please fill in all the required fields and submit again.";
      if (!empty($_POST['name']) && !preg_match("/^[a-zA-Z-'\s]*$/", stripslashes($_POST['name'])))
      $error_msg[] = "The name field must not contain special characters.\r\n";
      if (!empty($_POST['email']) && !preg_match('/^([a-z0-9])(([-a-z0-9._])*([a-z0-9]))*\@([a-z0-9])(([a-z0-9-])*([a-z0-9]))+ ' . '(\.([a-z0-9])([-a-z0-9_-])?([a-z0-9])+)+$/i', strtolower($_POST['email'])))
      $error_msg[] = "That is not a valid e-mail address.\r\n";
      if (!empty($_POST['url']) && !preg_match('/^(http|https):\/\/(([A-Z0-9][A-Z0-9_-]*)(\.[A-Z0-9][A-Z0-9_-]*)+)(:(\d+))?\ /?/i', $_POST['url']))
      $error_msg[] = "Invalid website url.\r\n";
      if ($error_msg == NULL && $points <= $maxPoints) {
      $subject = "Automatic Form Email";
      $message = "You received this e-mail message through your website: \n\n";
      foreach ($_POST as $key => $val) {
      if (is_array($val)) {
      foreach ($val as $subval) {
      $message .= ucwords($key) . ": " . clean($subval) . "\r\n";
      } else {
      $message .= ucwords($key) . ": " . clean($val) . "\r\n";
      $message .= "\r\n";
      $message .= 'IP: '.$_SERVER['REMOTE_ADDR']."\r\n";
      $message .= 'Browser: '.$_SERVER['HTTP_USER_AGENT']."\r\n";
      $message .= 'Points: '.$points;
      if (strstr($_SERVER['SERVER_SOFTWARE'], "Win")) {
      $headers   = "From: $yourEmail\r\n";
      } else {
      $headers   = "From: $yourWebsite <$yourEmail>\r\n";
      $headers  .= "Reply-To: {$_POST['email']}\r\n";
      if (mail($yourEmail,$subject,$message,$headers)) {
      if (!empty($thanksPage)) {
      header("Location: $thanksPage");
      exit;
      } else {
      $result = 'Your mail was successfully sent.';
      $disable = true;
      } else {
      $error_msg[] = 'Your mail could not be sent this time. ['.$points.']';
      } else {
      if (empty($error_msg))
      $error_msg[] = 'Your mail looks too much like spam, and could not be sent this time. ['.$points.']';
    function get_data($var) {
      if (isset($_POST[$var]))
      echo htmlspecialchars($_POST[$var]);
    ?>
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <link href="CSS/stylesheetnew.css" rel="stylesheet" type="text/css">
    <link href="../jquery-mobile/jquery.mobile-1.0a3.min.css" rel="stylesheet" type="text/css">
    <script src="../jquery-mobile/jquery-1.5.min.js" type="text/javascript"></script>
    <script src="../jquery-mobile/jquery.mobile-1.0a3.min.js" type="text/javascript"></script>
    <style type="text/css">
      p.error, p.success {
      font-weight: bold;
      padding: 10px;
      border: 1px solid;
      p.error {
      background: #ffc0c0;
      color: #F00;
      p.success {
      background: #b3ff69;
      color: #4fa000;
    </style>
    </head>
    <body>
    <div data-role="page" id="home">
      <div data-role="header" data-position="fixed">
       <h1>FIRSTCALL TRANSPORT</h1>
    </div>
        <div data-role="navbar" data-position="fixed">
                                    <ul>
                                      <li><a href="#about">About</a></li>
                                      <li><a href="#services">Services</a></li>
                                      <li><a href="#contact">Contact</a></li>
                                      <li><a href="#quote">Quote</a></li>
                                    </ul>
      </div>
      <div data-role="content"> </div>
         <div data-role="footer" data-position="fixed" > </div>
    </div>
    </div>
    <div data-role="page" id="quote">
      <div data-role="header" data-position="fixed">
        <h1>GET A QUOTE</h1>
      </div>
      <div data-role="content">
       <?php
    if (!empty($error_msg)) {
      echo '<p class="error">ERROR: '. implode("<br />", $error_msg) . "</p>";
    if ($result != NULL) {
      echo '<p class="success">'. $result . "</p>";
    ?>
    <form action="<?php echo basename(__FILE__); ?>" method="post" data-ajax="false"  >
    <noscript>
      <p><input type="hidden" name="nojs" id="nojs" /></p>
    </noscript>
    <p>
      <label for="name">Name: *</label>
      <input type="text" name="name" id="name" value="<?php get_data("name"); ?>" /><br />
      <label for="email">E-mail: *</label>
      <input type="text" name="email" id="email" value="<?php get_data("email"); ?>" /><br />
            <label for="company">Company:</label>
      <input type="text" name="company" id="company" value="<?php get_data("company"); ?>" /><br />
      <label for="collection">Collection: *</label>
      <input type="text" name="collection" id="collection" value="<?php get_data("collection"); ?>" /><br />
        <label for="delivery">Delivery: *</label>
      <input type="text" name="delivery" id="delivery" value="<?php get_data("delivery"); ?>" /><br />
      <label for="comments">Message: *</label>
      <textarea name="comments" id="comments" rows="5" cols="20"><?php get_data("comments"); ?></textarea><br />
      <input type="submit" name="submit" id="submit" value="Send" <?php if (isset($disable) && $disable === true) echo ' disabled="disabled"'; ?> />
    </p>
    </form>  </div>
         <div data-role="footer" >  </div>
      </div>
      </div>           
    </body>
    </html>

    My wife has left me for four weeks, favouring to be with our son who lives 4,000 km away. I now have to cook for myself and the steaks taste horrible. What am I doing wrong?
    If you do not know what I have (not) done to make the steak taste horrible, my question is as hard to answer as your question above.
    Please give us more info like giving us the code that sends the page to the homepage rather than to the previous page.

Maybe you are looking for