$.cookie is not a function
When I try to load my page that uses jquery, when the following line is hit: if ($.cookie('compare') != null) I get the error $.cookie is not a function. Has anybody seen this before? ...
When I try to load my page that uses jquery, when the following line is hit: if ($.cookie('compare') != null) I get the error $.cookie is not a function. Has anybody seen this before? ...
I need a bit of help with quotes in javascript function function jsNewWindow(value){ //window.open ("http://www.javascript-coder.com","mywindow"); window.open("rpt_Distance.php?POST_IN1="+value+","mywindow","width=800,height=600") ; } thanks! ...
I have a function that updates a <div /> via AJAX: function update() { <!-- .ajax() --> setTimeout(update(), 3000);} } What I need is that this is not executed when the user is not present on the website, so if there is no movement of the mouse (we will suppose that if move it is in the website) it will not update .mousemove(...
Hi, I'm trying to create a window which pops up (using the jqModal plugin) only on the first time that a used clicks on a certain box. var allow_popup = 1; jQuery('.popup_header').click(function() { alert(allow_popup); if (allow_popup == 1) { jQuery('#dialog').jqm(); } }); The p...
I want to smoothly scroll down. I do not want to have to write a function for that - especially if jQuery already has one. ...
I am using jQuery beauty tips (which is also using hoverIntent plugin) and I would like to display an href link inside the tooltip text and allow the user to click on the link. However, as soon as we leave the anchor, the toottip text disappears after some timeout (that we can define) So I would like to keep the the tooltip text opene...
Hey all, working on a client who needs a coupon to open in a new window when clicked, I think this code is just fine (the Ajax is working and returning a URL), but, I get nothing when I click: <a href="#" onclick="do_ajax(); return false;"> <img src="http://www.blah.com/fb/getcouponimage.jpg" alt="" width="169" height="47" border="0"> <...
Hi, I am trying to create 2 forms, which the user can select by clicking form1 and formt2. When the user select between form1 and form2. I want form2 to remember the value of form1 and pass on the value of the selected form for submission How can this be done in the most simplest way? Thanks ...
Hello everyone I've got the following problem: I'm using Google Maps on my site. I've attached the following eventListener to the map itself: google.maps.event.addListener(map, 'bounds_changed', scheduleDelayedCallback); The event bounds_changed is called every time someone drags the map. My Problem is, that it is called several tim...
I have been trying to connect to simply connect a datastore (ItemFileReadStore) to a dijit.form.Select widget and have been unable to. If I use the options field to populate it then the widget works fine but when I go to use the store field to populate it the widget appears but its contents are empty. The code that I am trying to use is...
Hey guys, I am trying to find an equivalent function for Javascript. What I am trying to do is look for the current URL and if it has the following first part of the URL then do something. In PHP I have this if (substr_count($current_url, $root . $_SERVER['SERVER_NAME'] . '/shop/shop-gallery') { doSomething(); } So as long as it ma...
The server my PHP script is running on is set to UTC. I can't seem to figure out a way to set all dates to the browser's timezone. All dates displayed are formatted using PHP's date() function. I know that via JavaScript's getTimezoneOffset() function, I can get the browser's current UTC offset (-4, in my case). How can I tell PHP to...
Hi, So I have an umbraco site with a number of products in it that is content managed, I need to search/filter this dataset on the front end based on 5 criteria. I'd estimate I will have 300 products. I need to filter this data very fast and hide show options that are no longer relevant based on the previous selections. I'm currently ...
I open a new window and would like to give the user the option of closing the window using a button. I thought window.close() would work, but nothing happens. Below is a copy of my code. <script type="text/javascript" language="javascript"> function CloseWindow() { //window.open('', '_self', ''); window.close(); } </script> .....
This is the control structure ContentPlaceHolder --> Wizard --> Panel I am using setTimeout to display the panel after x minutes. How do I get the ClientID of the panel? The line of javascript needed is something like: setTimeout(displayExtendSession('<%= ExtendSession.ClientID %>', 600000); aspx <asp:Content ID="Conte...
How do you make a menu like http://www.skype.com/ (Mouse over the menu and the menu appears...) ...
I have an html that has a lot of the following: <TD CLASS="broke"> - WF-1234567 - </TD> <TD CLASS="broke"> - WF-1111111 - </TD> <TD CLASS="broke"> - WF-7654321 - </TD> I want to make a javascript bookmarklet to replace all the 7-digit numbers with a hyperlink. How does one do this? My attempt with many things wrong.... javascript...
I was curious as of what would be the fastest way to check if a JS object (used as a dictionary) has a given property. And I was baffled by the results. See for yourself: http://jsperf.com/object-membership-check-speed/6 In Chrome, the in keyword method is 96% slower than the dot syntax. And in Firefox, it's also around 80% slower. IE ...
How can I get the active element(focussed textbox or rich text box) from a JavaScript bookmarklet? I want to change the text of a focussed textbox or rich text box when someone clicked on my bookmarklet. Is it possible? ...
Having struggled with numerous bugs in Ajaxy for the last few days, I'm wondering if there are any alternative, preferably lighter solutions. Ajaxy also keeps a record of every page state in memory until the page is fully refreshed, this is integral to its working so can't easily be stripped out. Unfortunately this means it is not suita...