[jQuery] Page reloads functions: Firefox issues.
I am having a little problem and am new to jquery. Is there something of a page load function that is only called on an actual reload of the page? I am using hidden divs on my page that are shown with the click of a button. Shown below: <code> $(document).ready(function(){ $("#edtDiv").hide(); $("#divSecondary").hide(); $("#testDiv").hide(); $.ajax({ url: "image_browser.aspx", cache: false, success: function(html){ $("#testDiv").append(html); } }); $("#btnCancel").click(function() { $("#edtDiv").hide("slow");
[jQuery] Execute script loaded into div from ajax
Hello everyone, I'm trying to do something that's probably trivial, but I can't get it to work :p My main page has a div where content gets loaded via ajax: $('#main').load('page.html'); The file page.html has some html and javascript code, the problem is getting the javascript from page.html executed. I tried using a callback like this (found here on this list): $('#main').load('page.html', {}, function() { $("#main script").each(function(ind,obj){eval($(obj).text());});
[jQuery] problem with ajax request: request is not being sent
Hi, I am using jQuery and Web2Messenger to create a live support script, since this is my first attempt at using jQuery i am not surprised i need help. I got as far as sending the request but using tamperdata (firefox plugin) i checked if the request was going through and it wasnt. [code] $(document).ready(function(){ $("#submit").click(function(){ //Validation if(hasError == false) { $(this).hide(); $("#form div.button").append('<img src="/images/bullet_16.jpg"
[jQuery] jquery for web designers
I'm giving a presentation to a group of web designers who are very comfortable with css, but haven't done much with javascript. I'm looking for suggestions for features I should focus on (besides the obvious selector syntax) that would be relevant to what they normally do. Thanks, John Teague
[jQuery] Animate before submit
Hi, I'm trying to animate my page before a form is submitted (regular, no ajax). $(".advancedSearchForm").submit(function(){ $(".colorList").slideToggle("fast", function(){ $(this).html(" loading"); $(this).slideToggle("slow"); } ); return false; }); If i end with return false, the animation works fine but the form never submits. Whith return true, the animation is skipped and it goes straight to the submit. Any clues?
[jQuery] Very simple UI Datepicker Question. Please help.
<div dir="ltr">Hi. this is a very simple question. How exactly do I change the date format for the UI Datepicker? I'm trying this code attaching the datepicker to a txtfield txtdatefrom. The datepicker is working but the Date format does not change. How exactly do I do this? <script type="text/javascript" charset="utf-8"> $(document).ready(function () { $('#txtdatefrom').datepicker({formatDate:'yy-mm-dd'}); }) </script> Thanks a lot! McBilly
[jQuery] NEWBIE Question re span and form elements
Hi there. I recently discovered jQuery and it appears to be an excellent library. I started looking at libs because I have a specific problem I want to solve easily. I want to an able to show and hide a <span> on my page. The span may contain some form elements like checkboxes for example. It is possible that a CB could have been selected, and then the event the causes the span to hide comes into play (they answered another question or whatever). If this is the case, I want to hide the span but also
[jQuery] jquery wallpaper
Several months ago somebody posted a link to some jquery wallpapers that they had created (not cheatsheets, just color background with jquery logo). I lost my copy and for the life of me I can't locate these anymore. Does anybody still have a link for these wallpapers?
[jQuery] Order load
Hi! how do I do to specify the order to load every component in the html file? I need to avoid that an component overlaps another component
[jQuery] Validate
How can I validate a form by click in text hyperlink using Jquery Validate plugin Please help...
Help dropping in variable for css property
Hi all, Hope everyone is well and nice to meet you. I am having a problem using a variable as a css property...can anyone please help me with the syntax: var width = $("a.tooltip").width() + 70; console.log(width); $("div#tooltip").css({ position:"relative", top:"-30px", left: "+width+"}); Thanks in advance! Luke
[jQuery] Travel a Table filtered by checked Checkboxes
Hi folks, I have a problem, with the following scenario. Given is a Table like the following <table> <thead>...</thead> <tbody> <tr> <td><input type="checkbox"></td><td>ReferenceNumber</td> <...more tds> </tr> </tbody> </table> A Submit Button is calling a function that should check the table for checked checkboxes and call a webservice with each reference number. The following JQuery Snippet finds all checked checkboxes, but afterwards I am stucked. $(TableID) .find('td') .find('input:checkbox:checked').each(
[jQuery] Reload jCarousel AJAX
Hi, My name is Alex, first of all thank you for your great component jCarousel. I have some questions about your component, I use it with the AJAX method but I don’t know how reload it in AJAX (for example, when I click on a button, I can reload my jCarousel on the page without reload the entire page). Thanks in advance Alex
[jQuery] IE7 and reverting draggables
Quick start - this link: http://www.fullonrobotchubby.co.uk/random/drag_text.htm Hi there. I've got a page where you can drag a group of boxes around. Dropping them over a droppable div causes data to be entered into that div. I need to be able to get the data in multiple times, so I need to revert the boxes. This works fine on FireFox, but on IE7 (and 8 and 6) you can only drag the boxes once, and then they won't go anywhere again. Here is a page with the same problem taken down to it's simplest
[jQuery] Help with :not
Here's some markup: <h2 class="drawer-handle"><div>Saved</div></h2> <h2 class="drawer-handle" id="rides-button"><div>Rides</div></ h2> <h2 class="drawer-handle" id="details-button"><div>Details</ div></h2> I'm want to bind click events to the first and last <h2>s, but exclude the #rides-button (because I have a different click event for it). Not really sure how to do it, the docs on :not are pretty sparse (well, that's my excuse today). This is what I started with, which of course is not exclusive
IE7 and reverting draggables
Hi there. I've got a page where you can drag a group of boxes around. Dropping them over a droppable div causes data to be entered into that div. I need to be able to get the data in multiple times, so I need to revert the boxes. This works fine on FireFox, but on IE7 (and 8 and 6) you can only drag the boxes once, and then they won't go anywhere again. Here is a page with the same problem taken down to it's simplest state: http://www.fullonrobotchubby.co.uk/random/drag_text.htm The only jQuery code
[jQuery] Target parent from IFRAME
I want to be able to set the value of an input box in the parent of an iframe from the iframe. The parent has the following input box: <input id="company" type="text" name="contractcompany"> So far I've tried the following in the IFRAME <a href="#" onclick="javascript:$ ('#company',top.document).value='text';return false;"> and <a href="#" onclick="javascript:top.document.$ ('#company').value='text';return false;"> and <a href="#" onclick="javascript:window.parent.$ ('#company').value='text';return
[jQuery] Creating a Submit Button in PHP/jQuery/AJAX Autosuggest search
Hi, I am having my first foray into the world of AJAX and Javascript and have created an Autosuggest search page. However, I want to have a submit button that will list all database entreies that match the search query and I can't work out what the best way to do this! Would it be using a input button and some kind of onClick fucntion? If so, does anyone know what the onClick function would be in jQuery? Would I need to create some new script for this? If anyone can give me any guidance on this I
[jQuery] Selecting elements by namespace and namespace URI
I have an Atom service XML document (example at end of post) and I need to select tags by name and with a specific namespace URI. The equivalent to the following in normal DOM JS: someXML.getElementsByTagNameNS( "http://www.w3.org/2005/Atom", "title" ); Is this possible in JQuery, or do I have to do something like this: $( someXML.getElementsByTagNameNS( "http://www.w3.org/2005/Atom", "title" ) ).each( etc etc ); --------------------------- --------------------------- EXAMPLE DOC ---------------------------
[jQuery] bind() with arguments
I had a quick question with the bind() method in jquery how do i use the bind to bind a function with arguments on an click $('#foo).bind('click',clickMe); function clickMe(x) { alert(x); } i thought i could do this.. $('#foo).bind('click',{x:'clicked'},clickMe); but that doesnt work. Im sure this is easy, but i cant seem to find examples of this. thanks for your help. -Matthew
[jQuery] Wrap tagless text fragments?
I develop and host wikis where users enter free-form text, and my server-side parsers create WISIWYG HTML from this. Of course, users can, and do, submit almost anything, and on the server-side I do a pretty good job of marking it up properly. But addressing edge-cases makes the server-side parsing increasingly heavy. One such edge case is islands of text that are not in any tag other than the global containing DIV. Like this: <div class="container"> <h3>I am text within a tag</h3> I am a text island
[jQuery] UI Tabs not working in IE
I am using UI Tabs in the portfolio section of my site to display the different categories of my work ( http://www.adamditota.com/portfolio www.adamditota.com/portfolio ). It seems to work fine in Firefox but not at all in IE7. I guess to kill two birds with one stone, I am also using the jQuery plugin LavaLamp for my navigation which once again works in Firefox but not IE7. Anyone have any ideas? -- View this message in context: http://www.nabble.com/UI-Tabs-not-working-in-IE-tp19200726s27240p19200726.html
[jQuery] ajax success within a plugin
I am trying to create a polling plugin called via $ ("#element").poll(); Within the plugin I am calling the $.ajax function. I have a default success option within the plugin but also allow the developer to override if needed. The problem I am having is that withing the success of the ajax function I have: $(this).html(data). That isn't being called and I can't figure out why. Here is my code: $.fn.poll = function(options){ // extend our default options with those provided var opts = $.extend({},
[jQuery] How to Create a Model Window in JQUERY Modal Window
Hi All, Can any one tell us about jquery modal window usage I would like to know how to use that Thanks and regards Babu
[jQuery] Selectors and changing source of HTML-elements
Hi everyone, this is my first message to the jquery group, hope you don't mind and i'll improve over time :) My HTML is this: <ul id="gallery"> <li> <h2><a href="#targeturl">www.targetlink.com.whatnot</a> Title</h2> <img src="thumb.jpg" alt="" /> Lorem impsum </li> First i'd like to find the IMG tag from every #gallery LI to apply a hover function to the image inside the specifil ul that has been hovered. I tried different versions, and thought this one would be ok, but not working.... $("#gallery
[jQuery] Superfish question
Hi Am I wrong to say that superfish animations won't work when All <ul
[jQuery] Cycle - goto
Hi guys, i need something similar to the solution on http://malsup.com/jquery/cycle/goto.html, but with an addition: i'd like to specify if the scrolling is to be 'forward' or 'backward', so it would be something like: $('#s1').cycle(2, 'forward'); or $('#s1').cycle(2, 'backward'); For example, if there are 4 DIVs and I am on DIV number 2, if I call $('#s1').cycle(3), i want the third DIV to come from the right side; if I call $('#s1').cycle(1), i want the first DIV to come from the left side; Is
[jQuery] Using a Select Tag as a Pager for Cycle Plugin
I'm working on store that sells floor signs and in the cart area, I want the user to be able to pick a sign label and see the image pop up next to them. Then I'll let them do this over and over in the cart so they can order signs with different labels. I tried the jQuery plugin Cycle and got it to work with Prev/Next, but it's not exactly what I want because I want the user to pick a textual label which corresponds to the visual label (http:// safetysignproducts.com/sandbox/cycle-example1.html).
[jQuery] Samples of Popup Flyout
Hi, I wonder if anyone has some code samples of creating flyouts (not menu flyout), something similar to what you see in MyY! when you move the mouse over a news then a flyout popup to give you a summary of the link, or what you see in Microsoft Live or Google map. I am trying to create that kind of popup flyout in my website using CSS and jQuery. If anyone has some code samples of how to build them, please help. Thank you very much! -- View this message in context: http://www.nabble.com/Samples-of-Popup-Flyout-tp19209759s27240p19209759.html
[jQuery] Samples of Popup Flyout
Hi, I wonder if anyone has some code samples of creating flyouts (not menu flyout), something similar to what you see in MyY! when you move the mouse over a news then a flyout popup to give you a summary of the link, or what you see in Microsoft Live or Google map. I am trying to create that kind of popup flyout in my website using CSS and jQuery. If anyone has some code samples of how to build them, please help. Thank you very much! -- View this message in context: http://www.nabble.com/Samples-of-Popup-Flyout-tp19209759s27240p19209759.html
[jQuery] Email Validation
Is it possible to use jquery to validate a comma separated list of emails? If yes, how should this be done? Thanks
[jQuery] Creating a Submit Button in PHP/jQuery/AJAX Autosuggest search
Hi, I am having my first foray into the world of AJAX and Javascript and have created an Autosuggest search page. However, I want to have a submit button that will list all database entreies that match the search query and I can't work out what the best way to do this! Would it be using a input button and some kind of onClick fucntion? If so, does anyone know what the onClick function would be in jQuery? Would I need to create some new script for this? If anyone can give me any guidance on this I
[jQuery] Does JQuery Handle to Window
Lets says if i open a browser window using File -> New -> Window. I am wondering if Jquery creates a handle or reference to the browser window and stores it in Jquery Object. This kind of information will be very helpful to detect if browser has multiple windows opened. Please let me know if its possible to do with Jquery
[jQuery] $ Not defined
I am having trouble with the $ not defined error and after reading Karl's response (http://groups.google.com/group/jquery-en/ browse_thread/thread/17dab2899c5cfc18/7312dc68c84d93af?lnk=gst&q=%24+is +not+defined#7312dc68c84d93af) I have assured myself that it is in fact NOT loading my local copy of the jquery file. I have tried placing it in the same directory as the calling file, my js directory, all diff places. I renamed the download file to jquery126.js and did the following... <script type="text/javascript"
[jQuery] Dan Switzer's Autocomplete plugin - can I do this...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=us-ascii"> <META content="MSHTML 6.00.6000.16705" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=476410121-27082008><FONT face=Arial size=2>I'm using Dan's autocomplete plugin in an app and it's working great. I just have one question. I'm loading in all options (around 5-10) into an array when the page loads. I'd like to trigger the list selection screen when the
[jQuery] replace href url value for anchor tag
this is probably pretty simple but trying to find documentation on how to change the href value on an anchor tag. i've seen docs that let you filter an anchor tag based on class which is prob what i'll do but i need to change the url that it is pointing to href="some/pattern/here" to rewrite to ensure proper encoding (for spaces, etc.) and b/c i want to point it somewhere different. this is prob not best approach overall but data is not easy to change for me so i want to change the url. I'll need
[jQuery] Doc's site down?
Anyone else having issues?
[jQuery] Jquery tooltip
Hi, I have a pblm in with the jquery tooltip I have designed a tooltip structure which is in a div , i want to show that structure as a tooltip when i click the label of the check box how this can be done, can any one help me thnks bab
[jQuery] animate in order
I have two items: $('#backDropLeft').animate({height:550}, {duration: 750, easing: 'easeOutBack'}); $('#contactBox').fadeIn(1000, function() { }); How can I make contactBox wait until backDropLeft is finished to run its animate?
ajax post/put requests breaking on our nginx server - 411
I have the following jquery ajax call, in my rails app. jQuery.ajax({ type: "POST", url: ("/plans/<%= @plan.id %>/add_learning_objective"), data: {"name="+objective_name}, dataType: "script", success: function(msg){ jQuery("#new_learning_objective_name").val(""); } }); It works fine locally, but on our nginx & mongrel cluster server, i get a "411 Length Required" error. I read up on this a little, and found this thread which seems
Next Page