Thinking of using an Array, is this best practice? Help!
I basically have a static map using gmaps3.net. It has 3 address points which work wonderfully. Now I need to grab them from the database and append them. I am OK to do this, but I think I need to put it into an array and somehow bind the results to the 'values' section. Whenever I change views I will destroy the map and re-create it, outputting the below logic: I just need to somehow get the address fields dynamically and inject them in. What would the best way forward be? Are you able to give
append and instantly display a message to select option
http://jsbin.com/azipok/2/edit this piece of code does the trick of clearing up the option list of select menu and adding a "test" message, but this message becomes visible only upon dropping down the select menu. is there a smart way to make this "test" message display and replace the "no modules..." text upon clicking the button?
show datepicker in inlineedit
i am trying to show datepicker in inlineedit bu i can not codes are following <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.0/themes/base/jquery-ui.css" /> <script src="http://code.jquery.com/jquery-1.8.3.js"></script> <script src="http://code.jquery.com/ui/1.10.0/jquery-ui.js"></script> <link rel="stylesheet" href="/resources/demos/style.css" /> <script> $(function() { $( "#datepicker" ).datepicker(); }); </script> <?php include('db.php'); echo '<link rel="stylesheet" type="text/css"
Accordian collapse all when page loads
I have found the nice feature of being able to collapse all the accordian divs when you click on the currently open div. Is it possible to default the accordian to have all divs closed when the page loads? I am very new to jQuery so any help would be appreciated. If you need any more information or code please just ask but the code I am using is the exact same as the example on the jQueryUI page. Cheers
Datepicker changing the date
Hi I am trying to use datepicker in my site to store appointments. It work superb on the creation of a new record but when i am trying to edit the date of a previously created record it keeps the old one on the database. I am using dreamweaver for the creation of the site. This is the code <label> </label> <label>Τελευταία Επίσκεψη <input type="text" size="30" value="<?php echo $row_Customer['lastdate']; ?>" id="jQueryUICalendar2" name="jQueryUICalendar2"/>
Slide fade transition
Have a question on the slidefade transition. 1. Does the transition work on a destination page that is not in the same domain? For example, you want to use the transition to facebook.com. 2. What's the best way to insert a Go Back button on the external page? For example, I want the user to click a Go back button so they can return back to the origin page. I am guessing this is done in an iframe? Thanks Joe V
reading GET data
Does Jquery or regular javascript give you a simple function for reading GET data? in regular javascript you could use var pathname = window.location.pathname; followed by string manipulating functions to remove everything before the "?" and to split the remaining string into its key > value components by splitting it at each "=" and "&" character and building an array of keys and values each time. so it is theoretically possible but is there a quick way?
Getting Error: ReferenceError: googletag is not defined
Hi All, This is my first post to this Forum. I am getting following error when trying to use google tags in Ad script. Error: ReferenceError: googletag is not defined My Ad script is as follows: <script type='text/javascript'> (function() { var useSSL = 'https:' == document.location.protocol; var src = (useSSL ? 'https:' : 'http:') + '//www.googletagservices.com/tag/js/gpt_mobile.js'; document.write('<scr' + 'ipt src="' + src + '"></scr' + 'ipt>'); })(); </script> <script type='text/javascript'>
Horizontal Slider Job (Urgent pls)
Hi guys, I need to develop a small jQuery app for a company where they show their products. I'm a PHP developer but I don't know anything about jQuery. I taught I could do it myself (because it's not that much) but I had no luck achieving the result I want. Basically the app should be a full screen horizontal slider. There are 9 slides. One main slide where you see a map and 8 icons. And 8 other pages where you can view a set of product. On each of the pages you can find several product. By clicking
loading external files in ios web app
Since jquery mobile does not allow loading multiple page external html files with ajax, is it possible, through javascript, to perform an external load of a file but keep it in the ios web app view and not launch safari?
jQuery to remember my selection
Hi there, I have been looking for a solution to the following: My site has three buttons or hyperlinks as buttons. With each one I click it changes the display layout of the items in my cart. If I choose a different category from the list in the sidebar the display layout goes back to the default instead of remembering my previous selection. Is there anyway I can achieve this with JQuery or not? I am new to this so any help will be fantastic?
Get request attributes in JQuery
When loading a page, I have the following in my controller: request.setAttribute("myAtt", "Testing"); I need to access and use this attribute in a JS file. Can anyone help??
Detect the HTTP State of the browser
Hi, I am looking how to detect/identify the HTTP state of the client browser. I am aware HTTP is stateless. The reason is I have a financial website which needs to be refreshed first time only once the user logs in to client PC. But my problem is How to uniquely identify the client keeping in my that each client will have their ISP/company router's IP. Each client will have different power scheme options defined and set, thereby some client pcs will revert to sleep mode. I could probably use HTTP
Using 2 jquery plugins in one html document - IT IS NOT NOT WORKING!
Hi guys! I would like to ask some help to resolve this problem: I am using a jquery plugin in my webpage and these are the settings: (Jquery navigation menu) <link rel="stylesheet" href="animated-menu.css"/> <link href="../generalStyleSheet.css" rel="stylesheet" type="text/css" /> <script src="http://jqueryjs.googlecode.com/files/jquery-1.3.js" type="text/javascript"></script> <script src="js/jquery.easing.1.3.js" type="text/javascript"></script> <script src="animated-menu.js" type="text/javascript"></script>
Table row add and remove mysql data
I'm new in jquery-Ajax. To add record to mysql and show this bottom of the form I'm using Jquery. this is my code: $(document).ready(function() { $('#preloader').hide(); $('#preloader') .ajaxStart(function(){ $(this).show(); }) .ajaxStop(function(){ $(this).hide(); }); /*********************************************** INSERT DATA **************************************************/ $('form.insert').submit(function (e) { e.preventDefault(); /*update problem solved*/ for ( instance in CKEDITOR.instances
Adding loop to an appended var (confused)
Hi ive got a bit of a problem which im finding hard to solve. ive got a var which has html that im appending to a div. but i have a loop of information that needs adding inside images div. how would you normally get the blue data into where the blue ???? are in the var, Im proper confused. ========================================================================= var counter = 0; $.each(images, function(key, value) { counter++; if (counter > 4) {} else {
Is there any way to maintain the slidetoggle state across requests?
We have multiple tables that are expanded/collapsed. When we press the submit button we would like to maintain which table is expanded/collapsed. $("#dbheader").click(function () { $(".dbmiddle").fadeToggle("slow"); }); $("#scheader").click(function () { $(".scmiddle").fadeToggle("slow"); }); $("#cdheader").click(function () { $(".cdmiddle").fadeToggle("slow");
dialog background issue 1.2.0
Hello. I will try to make myself clear, but I am not a native speaker, so please bear with me. Facts: 1- On a single page app, which I have been developing for the last several week, I have a login dialog, as a div with data-role="dialog". I open using js and a call to changePage. All has been working wonderfully so far. 2- I use the swatch "a" the problem: Since 2 days when I open the dialog with changePage, the overlay is completely white. (instead of dark) What I have done A: I narrowed
Anyone Had this Problem will HTML 5 Video using browers own players
Have a this problem with fire fox i am using 18.0.2 version am using this code to play video in all browers, and am using the brower's own players. All works well in IE, Chrome, Safari, the play duration scroll bar will away's return to the start of the video, but in FF the play indicator stops at the end of the video, leaving a empty Black/blank/ screen. the code is standard : I have muted & onDurationChange these items have no effect on player yet so can be removed. If i use my own player in
Single Page Template: Without data-ajax="false" menu does not work
Hi Folks! I am using a single page template. When content gets loaded by ajax (default) and later on the menu is being opened again, the temp div gets removed and the old content is being showed again. Any ideas whats wrong about my template? Check: http://ininet.de using a mobile device P.S. swiping left/right shows the menu. after loading a page by ajax the swiping stucks as well... THANK YOU!
Id of swap div
With the help of code that I listed below, can successfully show ID drag div drag = $('.ui-draggable').attr('id'); alert(drag); But, how to show ID of target(swapped) div (div where drag div is dropped) This is not good solution i think: trget_div = $('.ui-state-hover').attr('id'); alert(target_div); becose if ID of target_div (div where dragged div is droped) is Item4, i have alert Item5 hiar is all code: Html code <div class="dragdrop" id="item<?php echo $id_player; ?>"> <?php echo $player; ?>
File JS and Apache log add ?_ with ramdom number
Hi I use Htaccess for optimise my website but my file jquery1.*.min.js creat in my log a random number after name. Its work good but why ? JS?_136********* exemple.. Thank You! Jquery 1.7 and 1.9.1 it same.
how to move the cursor 2 steps forward after inserting the first two digits of a date
The user enters the date in the following format: 22-2-2013 I don't know how to move the cursor forward automatically after the user enters 22
how to trigger .change() event when chg is NOT triggered by user...
hi, I'm finding that a .change() event on a typical dropdown does not get triggered if the change() occurs as a result of programming, instead of user input.. what is the solution? I have a situation that is fairly typical, I assume... #countries has list of countries... if I change to a country that doesn't have any states then the #states dropdown becomes empty.. (this is already working fine, and I can't tinker with this...) what I need: if the #states dropdown becomes empty as a result of
jquery autocomplete not clearing choices?
I was just playing around with jquery autocomplete. I've set the minimum length to 3. if I typed in the letters "sci" it would then get all records that has the letters "sci" in the title. This part is **working** correctly as all records with the letters "sci" are returned and displayed. But if say I continue typing (after a pause of course. at this point I typed "scisdfgdsfsd"), it still displays the previous choices. There are certainly no records with titles using the letters "scisdfgdsfsd" in
implementing a JSON feed
how do I implement a JSON feed in JQuery mobile. I have a JSON feed coming off countyfairgrounds.net but don't know how to import it to work in jQuery mobile. Is it hard to do?
JQuery UI Dialog Scrollbars not Showing on Internet Explorer 8
Hello to everyone. I have a modal dialog set on an iframe using JQuery UI showing a separate page. When the page content height is bigger than the dialog height the scrollbars kind of show up in Firefox although a bit far to the right, when I use Internet Explorer 8 or Chrome they do not show tho. My code goes as follows: Libraries caller code: <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.js"></script> <script type="text/javascript" src="http://code.jquery.com/ui/1.9.1/jquery-ui.js"></script>
Need to prevent Accordion not to refresh
Need to prevent Accordion not to refresh after the use of the menu item I got inside each content panel. What I did is a sidebar question chooser for a test. I have built it with asp:menu inside each content panel, up to there everything work fine and I like the effect that it give my multi-level menu. But everytime an menu item (questions) is selected and use the accordion refresh (might be the page) and get back to default position. Is it possible to prevent that and how, please. The menu is dynamic
Survey Apps using Jquerymobile
We are running a website we want Polling in our site. if there is any Developer who works on these apps we will pay and use that plugins?
Little Problem
Hi I am using a sample code found on a website it works fine other than it duplicates entry rather than changing existing post how do i fix it to change rather than add another entry? : <html> <head> <title>Hello world</title> <script type="text/javascript" src="jquery-1.9.1.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#CategoryFrm").submit(function(event) { /* stop form from submitting normally
Open link in a dialog Window
Hello guys, I wold like to know if it's possible open a link (website) in a dialog Window. Thanks a lot Francesco
Disabling jqueryui on a form / bad practice js input color
Hi, I suppose this is both a question and feedback / idea. Here it goes: "Specs", I'm using - jquery 1.8.0 - livequery - jqueryUI 1.10.0 via google servers and tried via your servers - twitter bootstrap I'm using jqueryui for my search suggestions which works well, I'm using a dark theme there black background and grayish text there. I also have an contact (email) form on the site. I've noticed that jquery-ui.js then also makes my contact form have light grey color. Since this contact form has white
Datepicker ie8 and ie9 compatibility view problem
Hello everyone, I have a problem for my datepicker elements in ie8 and ie9(compatibility view mode on). I created a sample on jsfiddle. http://jsfiddle.net/nVWhu/ I am using jquery 1.7.2 min. In my original project I get Object doesn't support property or method 'getAttributeNode' error and the even calendar is not shown. Thanks for your help In my original project I included myscripts like the below; <link href="~/Content/Site.css" rel="stylesheet" type="text/css" /> <link href="~/Content/themes/SPK/DockMenuStyle.css"
Changing from one header to the other
We have two headers. One is a full header, which is 100px in height. The other is a condensed header, which is 50px in height. We are creating a parallax site where, once the second section hits the top of the browser, we want the condensed header to replace the full header. Currently, we have the full header coded out in a div called header-main. We created another div for the smaller header, called header-sub, which has display set to none, by default. Here's what I've started for my jQuery:
Unclear JavaScript in jQueryt-UI
Can someone explain the JavaScript below that came from the beginning of the jQuery-UI at http://code.google.com/p/jquery-ui/source/browse/trunk/ui/jquery.effects.core.js?r=3751 ? Thanks, Steve
jquery cycle -- fade out question
I am trying out the cycle plugin and it works well, except I would like it not to fade out the current slide, but to just fade in the new slide. As it is now, if I show an image, followed by the same image with a title added, there is a softening of color and contrast as the transition occur. I would like the image to look static, with just the title appearing. Can this be accomplished by just adjusting the cycle settings? Thanks...
Page Transitions Help Please
Hi, I am creating a website with all the pages on a single HTML file. To make the website change page from the navigation I have used this jQuery code: $(document).ready(function(){ $("body").css("display", "none"); $("body").fadeIn(2000); $("#navlist a").click(function(e){ var pageState = {}; e.preventDefault(); changePage(e.target.hash, 'fade'); $("#navlist").attr("className", e.target.hash.slice(1)); }); $(".menu a").click(function(e){ var pageState = {};
End date calculation from DatePicker and Term input
I am using a datepicker and have created 3 input fields. <label>Start Date:</label> <input type='text' name='StartDate' id='StartDate' /> <label>Term:</label> <input type='text' name='Term' id='Term' /> <label>End Date:</label> <input type='text' name='EndDate' id='EndDate' /> When a date is added into the StartDate and a number is added into term (Years), the end date should equal the StartDate plus the number of term years. Therefore if start date is 01/02/2013 and term is 2 years, the EndDate
How to change SVG fill color with jQuery on hover?
Hello good people, I need help with changing SVG fill color on hover with jQuery. Thing is that in one SVG i can have path, circle or polygon elements and wish to change color on fill attribute on them when that particular SVG is hovered. Color should reverse back when pointer is not hovering element. I think that adding CSS class to do that is not right way because its simple color change on hover and can be done with jQuery attr() function(i found that on web). Also i found here on forum that
click event to trigger drop down list
I'm using absolute positioning to place my form labels inside my form input and select fields and I'm able to show/hide the label based on focus() and onblur() events, however, I have some undesired effects with the drop down select boxes where if you click on the label portion, the label disappears appropriately but the options are not revealed until you click it again. Is there a way via jquery to force the "drop down" event on click of the label element? I've tried $('#selectID').attr("disabled",
Next Page