I am looking into using JQuery cookies to keep track of a menu when the page is reloaded ([url]http://plugins.jquery.com/project/cookie[/url]). I am using GET/POST to change the content section of my website layout. My question is about session-cookies. They are only destroyed when the browser closes, not when the user leaves your website? Is there a way to set cookies such that they only stay while still on my site? So that if a person leaves my site and returns all while the browser is open, when they return they get the menu in the starting position?

Member Avatar
+0 forum 0

I have Webpage written using PHP that displays drop down data from MySQL tables. I want my page to refresh and appeared new entry list in drop down list, after new records are entered to the database.I want auto refresh but when submit the form only.

Member Avatar
Member Avatar
+0 forum 2

Hello! I could do this in Struts 1 but can't for the life of me figure out how to do this in struts 2!!! Basically, data I posted as a JS array would come into the action as a String array, but now nothing comes in and "myCars is null". Thanks for any help in advance!!!!! Action Code: [CODE] public class LookAtCarsAction{ public String execute() { if ( getMyCars() != null) { for ( int i = 0; i < getMyCars().length; i++) { log.info("myCars: " + myCars[i]); } } else { log.info("myCars is null"); } return SUCCESS; } private String[] …

Member Avatar
+0 forum 0

Hey Guys. I cant actually think of a way to do this. Let me rephrase my question. I essentially want a perl script to run based on something that i am doing in javascript. for example: <javascript> if(x == 1) { then run the perl script. } </javascript> i dont even want perl to return anything back to the JS or anything of that nature. I just want it to simply run because im making it do a bunch of other things. I hope my question is clear. Any help would be greatly appreciated. Thanks.

Member Avatar
Member Avatar
+0 forum 17

Hi, I am working on the jquery slideshow script, which i had borrowed from some famous jquery plugin and customized so nicely so as to look just as par my requirement .Its working perfectly fine in the Internet Explorer but failing to even call the event on click in firefox and that's too without notification of any error in the error console. Now I feel the lack of any debugging tools for jQuery...

Member Avatar
Member Avatar
+0 forum 9

Hi, I am customizing jquery scrollshow, it can be found originally [URL="http://flesler.blogspot.com/search/label/jQuery.ScrollShow"]here[/URL] As you can see in the original script there are only images which scroll, now I have the description to show below each image which should also scroll as the images scroll. This description will include - 1. 'Name of the person in Image' 2.Article Title 3.Article short paragraph (Also this content will come from the db with PHP !) (Initially it can be implemented for some small dynamic text for images) To achieve that i tried to add the 'p tag' inside the image's li tag but …

Member Avatar
Member Avatar
+0 forum 1

hi all, i have added a simplemodal box in my project which is using jquery problem is i am using it for dynamic php application. i want a id of clicked item iam not getting it here is my code in php page [CODE]<div id='contact-form'><a href='#' class='contact'><input src="images/email-icon.png" type="image" value="<? echo $title_str;?>" width="23" height="27" id="<? echo $title_str;?>" /></a></div>[/CODE] and in javascipt page contact.js [CODE]$(document).ready(function () { $('#contact-form input.contact, #contact-form a.contact').bind('click',function (e){ alert(this.id); e.preventDefault(); // load the contact form using ajax $.get("modules/contact.php", function(data){ // create a modal dialog with the data $(data).modal({ closeHTML: "<a href='#' title='Close' class='modal-close'>x</a>", position: ["15%",], overlayId: 'contact-overlay', …

Member Avatar
+0 forum 0

Hi, okay i've spent hours in the web searching for the right image slideshow/gallery to use for my website but in vain! Dont get me wrong the jQuery, Ajax scripts i've seen so far are so good but they all use lists to load all the images at once and yet i'm targeting an area with not-so-much-bandwidth. Is there an image gallery script around that uses ajax to maybe fetch an image from an external file and display it on the page? hope this makes sense! thanks for your help!!

Member Avatar
Member Avatar
+0 forum 2

ok so in order here is my code [TEX]/* index.html */[/TEX] [CODE] <!-- jQuery Scripts --> <script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.2.6.min.js"></script> <script type="text/javascript" src="http://tdr.host22.com/scripts/li.js"></script> <link href="http://tdr.host22.com/scripts/tdr.css" rel="stylesheet" type="text/css"> <!-- Div Layout --> <div id="container"> <div id="dp">my DP here</div> <div id="hrefs"> <ul id="menu"> <li><a id="home">Home</a></li> <li><a id="about">About Me</a></li> <li><a id="shop">My Shop / Wishlist</a></li> <li><a id="friend">My Friends</a></li> <li><a id="vids">Wicked Videos</a></li> <li><a id="music">Music Playlist</a></li> <li><a id="pics">My Pictures</a></li> <li><a id="ranks">My Rankings</a></li> <li><a id="stuff">Random Stuff</a></li> <li><a id="read">Read Messages</a></li> <li><a id="leave">Leave a Message</a></li> </ul> </div> <div id="content"> TDR Content <div id="loading"> <img src="images/loading.gif" alt="Loading..." /> </div> </div> </div>[/CODE] [TEX]/* li.js */[/TEX] [CODE] $(document).ready(function(){ //References var sections = $("#menu …

Member Avatar
Member Avatar
+0 forum 4

Ok here is what I am trying to. I have a form where a user will enter in the number of input fields they need (lets call them offices) and when they click the submit button a jQuery function appends the rows to a plain html table. This works fine, except I do not want the rows to be only vertical or horizontal. I want it to put three input fields on one row before going to the next. Here is the code I have: [CODE]//This function is for adding rows to the offices table function addOfficeRows() { var i …

Member Avatar
Member Avatar
+0 forum 3

Checkebox doesn't hold its value when i use jQuery styling plugin wich allows me to skin form elements. but when i remove the jQuery the code works !! can someone plz tell me the way to fix it ?! Code: [CODE] <html lang="en-US" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> <head> <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type"/> <title> Delete Review </title> <link rel="stylesheet" href="jqtransformplugin/jqtransform.css" type="text/css" media="all" /> <link rel="stylesheet" href="demo.css" type="text/css" media="all" /> <!-- Script for the event handeler --> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="jquery.colorize-2.0.0.js"></script> <script type="text/javascript" src="jqtransformplugin/jquery.jqtransform.js" ></script> <script language="javascript"> $(document).ready(function(){ $('form').jqTransform({imgPath:'jqtransformplugin/img/'}); }); </script> <script> $(document).ready(function(){ $("#review").colorize( ); }); </script> </head> <body> <form action="" method="post" …

Member Avatar
Member Avatar
+0 forum 6

Hi, I am trying to open the Jquery Dialog box using VB.NET. [B]After the data has been saved successfully[/B], I need the dialog box to show up with the message to the user. Also allow user to perform some other actions like clicking the buttons. If I call the same codes from the client sides, like onclick="", it is working fine. However, It does not open from the server codes: [CODE] ScriptManager.RegisterStartupScript(Me, Me.GetType(), "Message", "<script type='text/javascript'>$('#dialog1').dialog('open');</script>", False) [/CODE] Any ideas of what i've done wrong!

Member Avatar
+0 forum 0

Hi all I've been trying to find a jquery list selection solution along the lines of the following. I want to have two boxes. One on the left that holds all the options to choose from and a box on the right that holds the options selected in the left box. Once all the desirable options are chosen and the user hits submit the options selected are posted to a db. Anyone know of something similar?

Member Avatar
Member Avatar
+0 forum 1

Hello, I'm building an intranet site for work with an autocomplete feature. I have it working to where when the user clicks on the name in the autocomplete list, it will fill that value to the text input box. What I need it to do is after it fills in the value, also submit the form, à la Google. I would usually research how to do this, but I'm on a tight schedule and really need your help! Here's what I have for the code so far. [CODE]function suggest(a) { if (a.length == 0) { $("#suggestions").fadeOut() } else { $("#search").addClass("load"); …

Member Avatar
Member Avatar
+0 forum 2

Hi all, I want to add some yellow background when focus turns to text input and remove it when it moves. Here is my code for JQuery [CODE=javascript] $(document).ready( function(){ //make form display yellow color when mouse is focused on item $("input").focus( function(){ $(this).css('background-color' : 'yellow'); } );//end focus }); [/CODE] a HTML form [CODE=html] <html> <head> <title>Login in Site</title> <link rel="stylesheet" type="text/css" href="/loginsys/site.css" /> <script type="text/javascript" src="/loginsys/lib/form.js"> </script> </head> <body> <div id="form"> <form action="/loginsys/include/login.php" method="POST"> <p><b>Username:</b> <input type="text" name="usrname" /></p> <p><b>Password:</b> <input type="text" name="passwd" /></p> <p><input type="submit" value="Login" /></p> </form> </div> </body> </html> [/CODE]

Member Avatar
Member Avatar
+0 forum 9

Hello all, please help! I need use two jquery scripts - dynamic select box and clone row. Each of them work fine but I cannot find the way to use it together in one script. Thank you for any suggestion! Petr live demo: [URL="http://www.guitarcases.cz/index.php?clanek=zakaznik_objednavkawww"]http://www.guitarcases.cz/index.php?clanek=zakaznik_objednavkawww[/URL] [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script type="text/javascript"> $(function(){ // start a counter for new row IDs // by setting it to the number // of existing rows var newRowNum = 0; // bind a click event to the "Add" link $('#addnew').click(function(){ // increment the …

Member Avatar
+0 forum 0

i am using the following JQuery function to successfully POST data to the user_submit.php file, its just that the php file is unable to receive the data. [CODE] $(function() { $("#submit_js").click(function() { $.post("user_submit.php", { comment: $("#comment").val() }); }); });[/CODE] upon finishing the Firebug consoloe shows this: [CODE]<html> <body> Your vote was successfully registered!any text but this </body> </html>[/CODE] I am pasting the entire user_submit.php file here: [CODE] <html> <body> <?php $vote = $_REQUEST['vote']; $aid = $vote; //$comment = $_REQUEST['#comment']; //$comment = print_r($_POST); $comment = htmlspecialchars($_POST["comment"]); //$comment = $_POST['comment']; //echo htmlspecialchars($comment); //$comment = $_POST['comment']; //echo $comment; // include configuration file include('config.php'); …

Member Avatar
Member Avatar
+0 forum 3

Hi all. First off this is my first interaction with jquery (and I hope this is the correct forum to put questions about this in, if not might a mod take the liberity of moving it to the correct forum?), so apologies if I'm overlooking an entire room made of elephants. First off a bit of explaining -- I've an ongoing project where I interface to my mobile phone's network provider with a program I write in C using the libcurl library. The website provides the ability to send text messages with, what was, a simple form that I used …

Member Avatar
Member Avatar
+1 forum 1

Hi all,suppose i got two rows like this picture [url]http://i575.photobucket.com/albums/ss197/yonghan79/ask-1.jpg[/url] I'm trying to change the modified column value to current datetime without refreshing the page when i click the update button..The first row worked,the second doesn't work..Here is my codes views/order_home [code] <script type="text/javascript" src="<?php echo base_url(); ?>js/jquery.js"></script> <script type="text/javascript" src="<?php echo base_url(); ?>js/jquery.form.js"></script> <script type="text/javascript"> // wait for the DOM to be loaded $(document).ready(function() { $("#msg").hide(); $('#myform').ajaxForm(function() { var no_id=$('#no_id').val(); $.post("getOrder/", { 'id' : no_id }, function(data){ $('#modif').html(data.modified); }, "json"); //nampilin di div message string yg ada di dalam html() $("#msg").html("Berhasil update order").fadeIn(1500); $("#msg").fadeOut(1500); }); }); </script> <h1><?php echo …

Member Avatar
Member Avatar
+0 forum 1

hi, "INSERT MODE" i have check box in one "tr". and another dropdown control in another "tr" intially dropdown control will be invisiable intially . but once the user checks the check box. the dropdown control should be visiable and he can select the value. but again the user unchecks the check box the dropdown should be set to default value that is "--selec--" "UPDATE MODE" intailly checkbox.Test = dt.cloumn["state"].tostring(); if(checkbox.Test!= "") { checkbox.checked=true; //then value dropdown value should be shown like"india" } else { checkbox.checked="false" //then value dropdown value should be default "--select" } in insert mode checkbox willbe …

Member Avatar
+0 forum 0

Hi, I want create a page which has animation at the bottom of that page. I use jQuery to do that.. this is the way I do it [code=html] <a href="#" class="animation">Animate this</a> [/code] and this is the jquery [code=javascript] $(document).ready(function() { $('a.animation').click(function(e) { e.preventDefault(); //animation goes here; }); }); [/code] When I run the code, all animation run very well except the page always scroll to the top. I try to change the href attribute to [B]javascript:void(0);[/B] but it still run like that.. How can I fix it? Thanks before, Sorry for my English..

Member Avatar
Member Avatar
+0 forum 5

Hi guys, I spent the whole day (thats 8 hours straight) trying to get a simple jQuery function to work but failed miserably!!! I very very new to the jQ scene and I know I have a lot of catching up to do! Could somebody get this to work for me ??? All i want is when user clicks is: 1.the box with info fades out 2. when data returned from the database the box fades in with the new data! What happens now is while the box fading out i can see new set of data already loaded and …

Member Avatar
Member Avatar
+0 forum 8

Hi, I am in a real need to get this going quickly and have run into a bit of a stumbling block. Here is what I am trying to do. I am creating a Paypal Add to Cart page for several products. I have this working for a single button form. The main script is: [CODE]<script type="text/javascript"> $(function(){ // start a counter for new row IDs // by setting it to the number // of existing rows var newRowNum = 2; // bind a click event to the "Add" link $('#addnew').click(function(){ // increment the counter newRowNum += 1; // get …

Member Avatar
+0 forum 0

Hi not sure if its technically a timeout but I am building a sliding jquery nav, the sliding is fine. theres 4 buttons you can click whatever one and they will slide into place even if they are in the middle of sliding, cool. BUT they each also open a loader for 2 seconds then fade in a div. [code] $("#nav_1").bind("click",function() { $("#nav_1").animate({ left: "0px" }, 500, "easeOutCirc"); $("#nav_2").animate({ left: "560px" }, 500, "easeOutCirc"); $("#nav_3").animate({ left: "620px" }, 500, "easeOutCirc"); $("#nav_4").animate({ left: "680px" }, 500, "easeOutCirc"); $('.hidden').css({ display: "none"}); $('#loader').fadeIn().fadeTo(2000, 1).fadeOut(1000, function() { $(this).fadeOut(); $("#div_1").fadeIn(); }); }); $("#nav_2").bind("click",function() { $("#nav_1").animate({ …

Member Avatar
Member Avatar
-1 forum 2

Hi, i am having Cakephp code like [CODE]<?php foreach ($viewfields as $r): if($r['Attribute']['type']=='radio') { ?> <script type="text/javascript"> jQuery.noConflict(); jQuery(document).ready(function($){ $("#"+<?=$r['Attribute']['id'];?>).each(function() { type= "<?=$r['Attribute']['type'];?>"; attribute_id="<?=$r['Attribute']['id'];?>"; if(type=="radio") { var ht = $.ajax({ type: "GET", url: "http://localhost/FormBuilder/index.php/forms/viewChoices/"+attribute_id, async: false }).responseText; var myObject = eval('(' + ht + ')'); var data = myObject;var j=0; $.map(data.choices, function(i){ j++; alert(i.choice); return i.choice;}); }//type==radio });//each });//jquery </script> <?php echo $form->input('field', array( 'type' => 'radio','legend'=>$r['Attribute']['label'], 'separator' => '--separator--', 'options' => array() )); }//if php type == radio endforeach; ?> [/CODE] alert(i.choice);/alerts me the choices for the label gender as male and female and for the label "experience as …

Member Avatar
+0 forum 0

In another interesting development showing that open source truly has a place in corporate computing, Microsoft announced on Sunday that it will be adding the JQuery JavaScript library to ASP.NET. The move came after many ASP.NET developers requested similar features to those that JQuery provides. According to Scott Guthrie of Microsoft, the JQuery library will ship with Visual Studio, and a download will be available in the coming weeks to add the library to the latest version of Visual Studio and Visual Web Developer Express (with service pack 1 installed). Microsoft will add intellisense support for the library, but will …

Member Avatar
Member Avatar
+0 forum 1

The End.