JQuery Facebox Question

Does anyone else here use the jQuery package Facebox? (http://famspam.com/facebox)
I'm using the AJAX option so that I can load a remote page inside the popup. Mostly it works great; however, I notice that when I click a link inside the remote page which has been loaded inside the popup, the popup closes and the main page behind it moves to that link href. Instead, I'd like for the popup to stay up and change to the new page. Anyone have any ideas?

I think you'll have to somehow make the remote page load inside an iframe for this to work, rather than loading directly into the facebox div. Not sure if this is a feature you can make use of or whether you will have to modify the JS code, but it should solve your problem
Edit: Something like
jQuery.facebox('<iframe src="url"></iframe>')
would work, or maybe you can modify the way it modifies the <a> links to insert iframes
Last edited by HashBox (2009-12-17 04:31:34)

Similar Messages

  • Jquery selector question..

    Hi all...
    Please help me with this jquery question.
    In the Interactive reports,I would like to hide the option
    "Row"(filter) (radio button option) under the "Actions-->Filter"
    This is the code i was using,but it is not working.
    I am very new to jquery, please help me with the jquery syntax.
    $(function(){
    $("ul li:contains('Filter')").live('click',function(){
    $("#APEXIR_FILTER_TYPE_1").hide();  -- i need to hide that ""complete option""
    });APEX: 4.1
    Database: 11g
    Browser: IE7

    Hi,
    There us 2 options. Default is columns. Why you like show this if you hide Row option?
    What I did test filter works ok when both options are hidden.
    I did not test your jQuery selector, but problem is that region where radio buttons exists are append using Ajax call.
    When your onclick event fires, element are not in HTML document, and that is main reason why your jQuery solution do not work
    Regards,
    Jari
    http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0

  • JQuery/Java Question

    Hi,
    I'm putting together a site for which I've taken a "pre-packaged" set of scripts to control the nav menu (taken from this site: http://www.dynamicdrive.com/dynamicindex1/ddsmoothmenu.htm)
    However, when I run IE8 developer tool and debug, I get the following error: 'parent().get(...)' is null or not an object
    I don't know Java and have no clue what this means.  Is it a simple fix?  One I could do on my own?  Or should I start looking for a different script to use?

    This question is related to Javascript, not Java.
    There's a world of difference between Java and Javascript.
    Java is a programming language. Javascript is a widely used scripting language used on websites. The word "Java" is sometimes misleadingly used as shorthand for Javascript.
    Got a link to your site so we can take a closer look?

  • Jquery CSS question..

    Hi all..
    Please help me with this issue.
    I am trying to place a button on ""top right corner"" of my page.
    I am able to place it in the right position with CSS.
    But somehow after the button got moved it looks ""ugly"".
    Not sure what got changed
    Please check the following page.
    http://apex.oracle.com/pls/apex/f?p=52018:2
    I am using the following CSS for that
    #SUBMIT_BUTTON {
      position:absolute;
      right:100px;
      top:20px;
    }I also tried with jquery too. It does the same
    $("#SUBMIT_BUTTON").css({"position":"absolute","right":"100px","top":"20px"});
    Thanks

    Hi jari...
    Somehow my ""Region Position#8"" got messed up.
    we did some changes to our page template depends on the requirement.
    The following is our changed templated(minor changes). There is a substitution string
    ""#REGION_POSITION_08#"". But my button is not showing up.
    Is there anything that we messed up in changing the template?
    But as you said, i tried "region position#8" in a test application , and the button looks good.
    There is something wrong in our modified template
    Please let me know if i am missing something..
    Modified Template
    <div id="header">
        #REGION_POSITION_07#
      <div id="navbar">
        #NAVIGATION_BAR#
       <div class="app-user1">Database Name: &DB_NAME. |</div>
        <div id="logged" class="app-user1">Logged In User: &APP_USER. |</div>
        <!--<div class="app-user">#WELCOME_USER#</div>-->
        #REGION_POSITION_08#
      </div>
    </div>
    <div>
    <br>
    </div>
    <div id="app-logo"><a href="#HOME_LINK#">#LOGO##REGION_POSITION_06#</a></div>
    <div id="tabs">
      <div class="frame">
        <div class="bg">
          <div class="tab-holder">
            #TAB_CELLS#
          </div>
        </div>
      </div>
    </div>
    <div id="topbar">#REGION_POSITION_01##REGION_POSITION_04#</div>
    <div id="messages">#SUCCESS_MESSAGE##NOTIFICATION_MESSAGE##GLOBAL_NOTIFICATION#</div>
    <div id="body">
      <table class="tbl-body" cellspacing="0" cellpadding="0" border="0" summary="">
        <tbody>
          <tr>
            <td class="tbl-main" width="100%">#REGION_POSITION_02##BOX_BODY#</td>
            <td class="tbl-sidebar">#REGION_POSITION_03#</td>    
          </tr>
        </tbody>
      </table>
    </div>

  • JQuery/Thickbox Question

    Hi,
    I am new to JQuery and am trying to use the thickbox to 'house' the login page, but am having problems closing a modal thickbox through code.
    Sequence is :
    App starts and loads page 1.
    User clicks Login and thick box is opened in page1 showing page2 inside it
    User enter correct details and clicks Login button.
    User is validated and then the main menu loaded, but it is loaded in the thickbox, I want it to close the thickbox and then go to the main menu page.
    Any help greatly appriciated
    Chris

    Hi,
    There us 2 options. Default is columns. Why you like show this if you hide Row option?
    What I did test filter works ok when both options are hidden.
    I did not test your jQuery selector, but problem is that region where radio buttons exists are append using Ajax call.
    When your onclick event fires, element are not in HTML document, and that is main reason why your jQuery solution do not work
    Regards,
    Jari
    http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0

  • Question about including JQuery in a Survey list DispForm.aspx page

    In SharePoint 2010, I was able to hide the links for editing, deleting... an existing survey entry in the DispForm.aspx page using the following technique:
    1 - Save jquery .js file to the Style Library in the top level site
    2 - Save the .js file that has the jquery code to hide the link in the Style Library in the top level site
    3 - Reference the .js files in the DispForm.aspx page like this:
    <asp:content contentplaceholderid="PlaceHolderAdditionalPageHead" runat="server">
     <script type="text/javascript" language="javascript" src='<asp:Literal runat="server" Text="<%$SPUrl:~SiteCollection/Style Library/jquery-1.5.0.min.js%>"'></script>
     <script type="text/javascript" language="javascript" src='<asp:Literal runat="server" Text="<%$SPUrl:~SiteCollection/Style Library/hideedit.js%>"'></script>
    </asp:content>
    The hideedit.js file contains the following:
    $(document).ready(function(){
        $('#ctl00_m_g_d3bec7ca_bd25_448d_8874_da35856854c5_ctl00_ctl01_ctl00_toolBarTbl').hide();
    I am trying to use this same technique in SharePoint 2013 but it is not working.
    It appears that neither of the js files are loading properly.
    As a test, I put the following in the hideedit.js:
    alert('test');
    $(document).ready(function(){
        alert('from jquery');
    Neither of the alerts are displayed when navigating to the DispForm.aspx file.
    How do I get JQuery loaded in a survey DispForm.aspx file in SharePoint 2013?

    Have you tried this within Designer?  Copy the DispForm, edit it and add the JD references below the PlaceHolderMain section and then save.  Set this as the default Displat Form and your changes should load.
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • I am trying to create mobile pages using the steps file new new document page from sample mobile starters jquery mobile (cdn).  When "page from sample" is selected, the subsequent options are not available.  This seems like a silly question, but how do I

    I am trying to create mobile pages using the steps file>new>new document>page from sample>mobile starters>jquery mobile (cdn).  When "page from sample" is selected, the subsequent options are not available.  This seems like a silly question, but how do I acquire these options?

    You can get the latest jQuery Mobile Themes directly from jQuery Mobile's web site.
    https://demos.jquerymobile.com/1.1.0/docs/api/themes.html
    Or roll your own with ThemeRoller
    http://themeroller.jquerymobile.com/
    Nancy O.

  • DW CC - Jquery questions

    Just a couple of newbie question for ya!
    1) Re jquery accordian & tabs; does this affect a site's seo? I assume it does in one way, as I suspect Google takes a page title, kws in url, etc as a factor for ranking. But with, say, 5 seperate tabs/accordians, you're only left with a single title, url, etc. If ranking is your goal, then avoid this approach?
    2) Re the jquery mobile page (under insert); can anyone explain why I'd use this instead of creating a fluid grid layout? I'm not quite sure what this achieves.
    Thanks!

    I would like to jump in and give my thoughts about this because I actually thought about this same question you are asking about jquery accordion menus when I was redesigning my website [link removed by moderator] and after thorough consideration I decided to just create the menu structure without using any jquery, because for my purpose and rankings in Google it wouldn't work out for me.
    Having said that, without knowing your website architecture and your content structure, this question you are asking must be taken in as per your needs. Because although using scripts for menus can effect your Google rankings to a degree, it only has very small implications. What I think you should focus on is, your users experience, meaning, your first thought, should always be, if I create my menu in this way, or in that way "will that help my users navigate througout my website? And will they be able to find the information they are looking for?"
    As you can see, user experience of your visitors is more important than considering if you should use fancy jquery.
    Here's what I always do, I first think about the whole content I want to present, then I always ask? Can I accomplish that presentation using pure CSS, if the answer is yes, then I forget about jquery and stick with pure CSS (for the sake of precisely for rankings). Also, as with mobile website's I actually don't worry about it (but once again that will depend on your online niche) because I like to focus on a design element in such way that it works across everything. Because perhaps in the future Google will heavily distunguish mobile site content as opposed to desktop viewing. But as it stands right now, it makes no difference as far as rankings (that I assure you) despite what many may say. Also, designing content just for mobile sites, may not be suitable (resource wise (time, energy, money etc.) so I would stick with just using fluid layouts and thus invest your time and energy just creating useful information for your visitors.
    I hope these insights contribute to your question (also, the URL I mentioned above is valid html5 (Using experimental feature) and I managed to create a design without any divs ; I checked it against most major browsers and also (I-pad, I phone, different sized monitors etc.) and I am very happy with how it renders on mobile devices.

  • Javascript & Jquery Question?

    Dear all,
    I need to interactively enable and disable input fields (text, textarea, checkboxes, radiobutton) within APEX application. I have tried using javascript with jquery and was able to achieve some success but the problem is that the form clears the inputted values during the post back phase. This means that when ever I disable any of the input fields, these fields will have the value cleared on post back. I am using the jquery syntax $(this).attr("disabled", "disabled"); to disable the fields.
    I have the suspicion that when I disabled the fields APEX does check the checksum of some kind to determined that the fields are modified and this clear or invalidate the stored value. I would like to know if their is a better way to get around the problem. Thanks.
    Regards,

    KA,
    I remember Carl showing us a little trick with a function he called "kinadisabled" or something like that... He basically gave an item the "feel" of being disabled by changing the background color from white to gray and made it so that if the user tried to focus on the element it would blur - very interesting.
    I've not tested this code but it should give you the idea.
    if (some_condition) {
       $yourJqueryElmt.css('background-color','#FFFFFF').unbind('focus');
    } else {
       $yourJqueryElmt.css('background-color','#CCCCCC').bind('focus', function() {
          $(this).blur();
    }Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen

  • General JQuery Questions

    Hello.
    I would like to utilize JQuery tabs in an APEX 4.x database application I am writing and am wondering if I need to specifically add a reference to JQuery within my application or is JQuery already being referenced in any APEX 4.x app?
    Is there a link you can point me to that shows how to make use of JQuery within a 4.x app?
    Thank you very much.
    Elie

    Jari and Dan:
    Thank you very much for both of your responses.
    I've followed the links and read through what Patrick Wolf wrote with respect to setting up JQuery within an APEX template. I also downloaded the JQuery plugin and APEX demo that Guido Zeelan created.
    All of this stuff will definitely help me.
    If I understand Dan's response, I need not specifically reference JQuery within my APEX app, for example, between the <HEAD> and </HEAD> tags because APEX automatically includes this reference already. Indeed, if I click the "View Source" option in one of my websheet apps, I see:
    *<script src="/i/libraries/jquery/1.4.2/jquery-1.4.2.min.js" type="text/javascript"></script>*
    This is cool.
    Again, thank you.
    Time to have fun!
    Elie

  • Jquery is not working after i enable the attachments in Share Point EditForm

    Hi ,
    I have customized the Edit form .After customization the attachment functionality is not working and resolved the issue by creating the new Edit form .The attachments section only works if i don't push any j query/java script functions.If i comment below
    line two lines the attachment sections works.But i would need to include them .Could you tell me how would i call below script in EditForm.
    //_spBodyOnLoadFunctionNames.push("Test");
    //_spBodyOnLoadFunctionNames.push("checkStatus");
    <script>
    function redirect(offerID)
      var loc = "DispForm.aspx?ID=" + offerID;
      window.location.href = loc;
    function Test()    
    var TitleValue = "Drafting Communication";//$('#ctl00_m_g_1918401d_e6f3_4b9b_9262_dbb4aabcfd12_ff11_ctl00_ctl00_TextField').val();
    alert(TitleValue );
    if(TitleValue =="Drafting Communication")
    $("select[Title='Workflow Stage']").find('option:contains("Stage 1 – Review")').remove(); 
     $("select[Title='Workflow Stage']").find('option:contains("Stage 2 – Review")').remove(); 
     $("select[Title='Workflow Stage']").find('option:contains("Stage 3 – Review")').remove();
     $("select[Title='Workflow Stage']").find('option:contains("Stage 4 – Review")').remove();
     else if(TitleValue =="Stage-1 Pre Approval Business")
     $("select[Title='Workflow Stage']").find('option:contains("Drafting Communication")').remove(); 
     $("select[Title='Workflow Stage']").find('option:contains("Stage 2 – Review")').remove(); 
     $("select[Title='Workflow Stage']").find('option:contains("Stage 3 – Review")').remove();
     $("select[Title='Workflow Stage']").find('option:contains("Stage 4 – Review")').remove();
    else if(TitleValue =="Stage-2  Approval Marketing")
    $("select[Title='Workflow Stage']").find('option:contains("Drafting Communication")').remove(); 
     $("select[Title='Workflow Stage']").find('option:contains("Stage 1 – Review")').remove(); 
     $("select[Title='Workflow Stage']").find('option:contains("Stage 3 – Review")').remove();
     $("select[Title='Workflow Stage']").find('option:contains("Stage 4 – Review")').remove(); 
    else if(TitleValue =="Stage-3  Approval Director")
     $("select[Title='Workflow Stage']").find('option:contains("Drafting Communication")').remove(); 
     $("select[Title='Workflow Stage']").find('option:contains("Stage 2 – Review")').remove(); 
     $("select[Title='Workflow Stage']").find('option:contains("Stage 1 – Review")').remove();
     $("select[Title='Workflow Stage']").find('option:contains("Stage 4 – Review")').remove(); 
     else
    $("select[Title='Workflow Stage']").find('option:contains("Drafting Communication")').remove(); 
     $("select[Title='Workflow Stage']").find('option:contains("Stage 2 – Review")').remove(); 
     $("select[Title='Workflow Stage']").find('option:contains("Stage 1 – Review")').remove();
     $("select[Title='Workflow Stage']").find('option:contains("Stage 3 – Review")').remove(); 
      $(".SelectA").hide();
    function getTagFromIdentifierAndTitle(tagName, title) 
      var tags = document.getElementsByTagName(tagName);
        for (var i=0; i < tags.length; i++) {
         var tempString = tags[i].id;
        if (tags[i].title== title) {
        alert(tags[i].title);
          return tags[i].value;
      return null;
    function checkStatus() {
      var selectedId = getField('select','Current Status').options[getField('select','Current Status').selectedIndex].value;
       var docID = 73;
      if(selectedId == 'Approved')
       $("input[value$='Save']").attr('disabled', true); 
    function getField(fieldType,fieldTitle) {   
        var docTags = document.getElementsByTagName(fieldType);   
        for (var i=0; i < docTags.length; i++) {   
            if (docTags[i].title == fieldTitle) {   
                return docTags[i]   
    //_spBodyOnLoadFunctionNames.push("Test");
    //_spBodyOnLoadFunctionNames.push("checkStatus");
    </script>

    Hi,
    According to your post, my understanding is that you failed to use the _spBodyOnLoadFunctionNames.push() function.
    Per my knowledge, the _spBodyOnLoadFunctionNames.push() is SharePoint's version of jQuery's $(document).ready() or $(function(){}).
    I recommend you to add a content-editor-webpart on the page and add the code below on the source editor to check whether it works.
     <script language="javascript">
    _spBodyOnLoadFunctionNames.push("FunctionName");
    function FunctionName(){
        alert(Test);
    </script>
    More information:
    SharePoint JavaScript – Page Load Add function: _spBodyOnLoadFunctionNames
    If it works well, the issues is caused by the functions you created.
    You need to check whether your code are correct.
    In addition, you can make init.js loaded before _spBodyOnLoadFunctionNames.
    Here is a similar thread for your reference:
    http://sharepoint.stackexchange.com/questions/93937/spbodyonloadfunctionnames-not-working-on-master-page
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • 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.

  • Relative Path for Jquery into Content Editor Web Part

    Hi;
    I'd add a Content Editor Web Part (CEWP) to a web part zone. I'd edit that CEWP in HTML view and add my script which load Jquery and my question :  how to use a relative
    path for Jquery :
    <SharePoint:ScriptLink Name="SP.js" runat="server" OnDemand="true"
      Localizable="false" />
    <script src="/sites/XXX/Style%20Library/Scripts/jquery.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    My code
    </script>
    Regards

    Hi;
    Firstly, I have used : 
    <script src="/Style%20Library/Scripts/jquery.min.js" type="text/javascript"></script>
    But any result and any change and If I add /Sites/XXX/ : it works correctly ?
    My code is :
    <SharePoint:ScriptLink Name="SP.js" runat="server" OnDemand="true"
        Localizable="false" />
    <script src="/sites/XXX/Style Library/Scripts/jquery.min.js" type="text/javascript"></script>    
    <script type="text/javascript">
    ExecuteOrDelayUntilScriptLoaded(displayTitle, "SP.js");
    var site;
      var context;
      function displayTitle() {
        //Get the current client context
        context = SP.ClientContext.get_current();
        //Add the site to query queue
        site = context.get_web();
        context.load(site);
        //Run the query on the server
        context.executeQueryAsync(onQuerySucceeded, onQueryFailed);
    function onQueryFailed(sender, args) {
      alert('request failed ' + args.get_message() +
        '\n' + args.get_stackTrace());
    function onQuerySucceeded(sender, args) {
        $("#layoutsTable table th span").html("Bienvenue sur le site " + site.get_title() + " - Direction Technique");
        $("#zz17_V4QuickLaunchMenu ul.root li span:contains('Biblioth')").parent().parent().hide();
        $("#zz17_V4QuickLaunchMenu ul.root li span:contains('Listes')").parent().parent().hide();
    </script>

  • Sharepoint Foundation 2010 few questions

    Hi, I'm using Sharepoint Foundation 2010, and have some questions:
    1. How do I create different columns on folder level, and different columns inside folder. I.E., on folder level I'd like to have two columns: Client (folders in this column), Country, Date of last entry. Inside folder I'd like to have columns: Date,
    Contact, Form, Actions.
    2. How do I get value of item from subfolder level and use it on folder level. I.E., I'd like on folder level, in the column "Date of last entry", display date of last item added inside folder.
    3. I have List of Clients on one site, and I'd like to use it in "Look up" type of item on different site. How do I do that? By now, I can only use lookup item when list to choose from is on the same site.
    4. Is it possible to employ autocomplete in Sharepoint Foundation 2010? I.E., when I start to write name of a client already defined in the clients list, after few letters, my input is autocompleted.
    Adam.

    1. How do I create different columns on folder level, and different columns inside folder. I.E., on folder level I'd like to have two columns: Client (folders in this column), Country, Date of last entry. Inside folder I'd like to have columns: Date, Contact,
    Form, Actions.
    Inder : It cannot be achieved Out Of box. Plan to create different views for same
    2. How do I get value of item from subfolder level and use it on folder level. I.E., I'd like on folder level, in the column "Date of last entry", display date of last item added inside folder.
    Inder : Use the last modified field or a calculated column 
    3. I have List of Clients on one site, and I'd like to use it in "Look up" type of item on different site. How do I do that? By now, I can only use lookup item when list to choose from is on the same site.
    Inder: Out of Box, not possible in 2010. In 2013 try below:
    http://www.codeproject.com/Articles/619118/Cross-site-Lookup-Column-for-Sh
    http://spform.com/lookup
    4. Is it possible to employ autocomplete in Sharepoint Foundation 2010? I.E., when I start to write name of a client already defined in the clients list, after few letters, my input is autocompleted.
    Inder : It is called search as you type. Use Jquery for same
    https://searchasyoutype2010.codeplex.com/
    http://www.codeplex.com/site/search?query=sharepoint%20search%20as%20you%20type&ac=3
    If this helped you resolve your issue, please mark it Answered

  • How to redirect from list edit form to another page using jquery in sharepoint 2013

    hi friends i have been trying to find a way to redirect from list edit form to another page using javascript and jquery
    i found lot of codes online but non of them are working for me.
    what i need is i have to save the data in the form and after that it has to redirect to another page. it has to get the url from hyperlink field of the item.
    please help me in this regards

    Not sure if you have gone through below links:
    http://spservices.codeplex.com/wikipage?title=%24().SPServices.SPRedirectWithID
    http://blogs.askcts.com/2013/02/18/using-spservices-and-jquery-to-perform-a-redirect-from-a-sharepoint-list-newform-to-editform/
    Please ensure that you mark a question as Answered once you receive a satisfactory response.

Maybe you are looking for