[jQuery] Removing Single Option from Select
How can i remove a single option (with value -1, if possible) from a select?
[jQuery] [JQuery UI] Styles
i am wondering how can i create a button like the open dialog button in http://jqueryui.com/themeroller/ when i copy and paste the source for the button from the jqueryui site, i dun get the right positioning without editting the css. am i missing something? <a href="#" style="display: block; padding: 2px; float: left;" id="dialog_link" class="ui-state-default ui-state-hover ui-corner- all"><span class="ui-icon ui-icon-newwin" style="float: left"></ span>Open Dialog</a> inline style="" are added
slideToggle shows result..but why dont I see it in debugger?
Hello guys, I have following HTML structure: <div style='display:inline-block;'> <a href='#' id='offsetWellDataExtension' onclick='javascript:return ToggleOffsetDataDetail(this);'>Show Details</a> <div style='display:none' class='detailsHolder'> Item 1 Item 2 Item 3... </div> </div> The idea is when Show Details is clicked, the div with items shows or hides. When shown, the TEXT of Show Details A tag changes to Hide Details. I got it working the following way: function ToggleOffsetDataDetail(sender)
[jQuery] Using $.get with preload page seems to strip JavaScript
Hi guys, I want to display a simple "Loading..." image while my page loads. I've got it halfway working at http://pranshuarya.com/test.html. The problem is that once the page gets loaded, the JavaScript functionality in it doesn't work (even though the files are getting loaded). You'll know what I mean if you compare what gets loaded to the main page (http://pranshuarya.com). The approach I'm taking is to call the following function via <body onload"loadSite()"> function loadSite(){ jQuery.get("test.php",
[jQuery] scrollto and jumping
I have a vertical scrolliing area and inside the first area I have an <a> link that when clicked calls scrollto to scroll the main vertical area. What is happening is that the link is jumping to the link, then it scrolls. Any thoughts Thanks Kevin
[jQuery] $this.filter('.myclass').myplugin() OR $this.is('.myclass') && $this.myplugin()
I have a curiosity question, Imagine I want to apply a function (myplugin()) to a jquery object if this has a particular className. Imagine that NO jquery object has 'myclass' associated and myplugin() NOT exist. so $this.filter('.myclass').length == 0 and $this.is('.myclass') == false 1. most common possibility: throws an error (myplugin doesn't exist: It tries to bind an inexistent function to ZERO) $this.filter('.myclass').myplugin() 2. alternative possibility: no error (does nothing) $this.is('.myclass')
[jQuery] Plugin to display large image of thumbnail on hover
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body bgcolor="#ffffff" text="#000066"> <tt>As the subject says, I'm looking for a plugin that will display a larger image of the thumbnail when the mouse is hovered; something similar to iStockPhoto or Fotolia. Anyone know of such a plugin?</tt> </body> </html>
[jQuery] Redirect to anchor after form submit
Hello, I've got a simple form with a return false function to stop it being submitted as I use ajax to update it. However I've come accross a functional problem : if the user's screen is to small and he has not scrolled down enough then he doesn't see the search results and gets the impression nothing has happened. Is it possible to have a form submit button that does not send the form but redirects the page to an anchor (id) on the page, so if the user submits the form and the result is not visible
[jQuery] Survey Check fails in Internet Explorer
Hello everybody, Ok so i am a complete beginner in both jQuery, JavaScript and english. I build a script to check a survey for empty questions, if so show a new tr and make a list of empty questions. If the script detects no errors it will submit the form. It worked like a charm in firefox but on no other browser it seemed to work. function checkSurvey(){ $(".error").removeClass("error"); $("#error").addClass("error"); errormsg = ''; error = false; $(".question").each(function(){
[jQuery] Accordian
what can i do to allow users to click on the accordion header to navigate to a page? the reason is, i am using accordions for my navigation. for some of the pages, there are subpages so an accordian is used. but for others, there are no subpages and i want users to be able to click the "header" of the pane to navigate to some page
[jQuery] SildeDown and table rows.
Hello, I'm trying to use the jquery slidedown function with table rows but it does not work as jquery defines them with display:block which places the whole row in the first colomn and makes the whole table layout go wrong ... Do you have any suggestions how to get around this ? Here's my code : $("#tableid tbody").append("<tr style=\"display: none\" id=\"rownum"+TotalRows+"\"><td>"+data.rowone+"</td><td>"+data.rowtwo+" </td><td>"+data.rowthree+"</td></tr>"); $("#rownum"+TotalRows).slideDown(); This
Help getting the Sender [SOLVED]
Hello all, Thx for u'r time and atention. I am using qTip, a plugin based on JQuery to help building Tooltips. plugin website: http://craigsworks.com/projects/qtip/ The broblem is that im getting "text 1" all the time! I wanted to show "text 1" on the qTip of the 1st item, "text 2" on the 2nd... and so on. I also tried: $(this).attr('alt') But it doesn't work! I really need help with this. My Html Code <img src="img/img1.jpg" class="myTip" alt="text 1" /> <img src="img/img2.jpg" class="myTip" alt="text
[jQuery] jquery form plugin problem
Hi, I'm having a problem with the jquery (ajax) form plugin. It says on the page (malsup.com) to seek help here :) When I invoke ajaxSubmit() with a function it is called on success. But when I invoke ajaxSubmit() with a Options object with success: function() {..} the function is not invoked. Any help appreciated! By the way: is there any (good) way to access the response status code and content type from the "success" callback function? Thanks, -dennis
[jQuery] adding jQuery causes my page to flash/blink on load
Hi when I added jquery-1.3.2 and jquery.ui-1.7.1 to my page here http://ssmedgroup.com/beta/index.html it causes my page to flash/blink as the browser redraws the page on load. (click on the navigation tab; you'll see what I mean.) It happens on safari 4, chrome (though less so), and IE6&8. does not happen on firefox. I notice that merely include the js files will do it; i.e., I don't have to actually create any UI objects or write any onload code of my own. If I take out links to the jquery* js
[jQuery] Autocomplete + click : What do i do wrong here ?
Hello everybody, I am brand new using jquery and have some problems ! I have to say I am not un professional so be indulgent with my code ! Could someone tell me if there some obvious mistake in this script : <script type="text/javascript"> $(document).ready(function(){ $(".txtSerial").click(function () { $(this) .autocomplete("./serieComplete.php", {max: 10, scrollHeight: 220, mustMatch: true}) .result( function(){ var
[jQuery] jquery form plugin problem
Hi, I'm trying to use the form plugin from malsup.org to submit a form with ajax, but it does not seem to work with options. This works: $("#loginform").ajaxSubmit(function(obj, statusText) { alert(obj); }); This does not work (nothing happens): $("#loginform").ajaxSubmit({ dataType: "json", success: function(obj, statusText) { alert(obj); } }); Oh, and by the way. Is there any way to get access to the request in the 'success' function - to obtain status codes, content-type header etc.? Thanks, -dennis
[jQuery] trigger a dialog from a click event
hi im new using jquery..im playing around with it, and i find it interesting..i was wondering how can a trigger a dialog from a click event..here is my code: $('#btn_delete').click(function(){ $('#msj').dialog(); }); but its not working. what im i doing wrong?
[jQuery] Thickbox half-works.
This is my code. The problem I'm having is that when I click the thumbnail all I see the loading bar. It just hangs there animated. Interestingly if I take the rel tag out of the images it works, but it doesn't show the previous and next options in the thickbox. Suggestions? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <script type="text/javascript" src="thickbox/js/jquery-latest.js"></ script> <script type="text/javascript" src="thickbox/js/thickbox- compressed.js"></script>
Detect copy text to clipboard
Hi guys I am looking for a snippet of code to trigger an event when the user selects and copies piece of text to the clipboard (either by pressing ctrl-c or right click/copy). The event would trigger at this moment with the contents of the selected text. Is it possible?
[jQuery] jQuery and ASAH
Anyone had any problems pulling jQuery through ASAH? I have a lightbox plugin working on a page I am trying to embed somewhere else and all the js is stripped out...not sure how to work around it. Everything is on my server, I'm not pulling in any external HTML. Cheers!
Hi, add an auto click event + example
hi, a few days ago i wrote here but nobody really got what i wanted, so i decided to come with an example. here is the code that i have: http://www.wpfeed.com/carousel/carousel.html as you can see i have three tabs and three divs with content. a click on each tab, changes the content on the Main div. now my question: what code do i need to add in order to create an effect of "auto play" so every X second the next tab is clicked automatically? please help, i need this and my jquery knowledge is quit
[jQuery] Detecting user selecting text and copying
Hi guys I am looking for a snippet of code to trigger an event when the user selects a piece of text and copies to the clipboard (either pressing ctrl-c or right click/copy). Is it possible?
[jQuery] How hide DIV on body onclick
Hi All<div> </div><div>Can some one send example snippet for </div><div> </div><div>Show DIV </div><div> </div><div>and Hide DIV in Body On click,</div><div> </div><div>I have some snippet, but that are not full fill my need,</div> <div> </div><div>Exact example for clear view is in yahoo classic r<span class="Apple-style-span" style="font-weight: bold;">eply and reply-to-al</span>l ,</div><div> </div><div> </div><div><br clear="all"> -- உங்கள் நண்பன் பரணி குமார் Regards B.S.Bharanikumar POST YOUR
[Solved] jQuery UI widgets are very large using custom theme
I have implemented a UI datepicker and am working on some Ajax tabs. When I click on the target field of the datepicker, the popup calendar is very large. I figured there was an issue with css and I was just going to browse forums to find the solution since I it must be common. Well, it's not. I then tried to move on and implement UI tabs and those are huge too! <Links are obsolete> Datepicker: http://www.halecowellness.com/escape/in ... d=register Tabs: http://www.halecowellness.com/escape/in ...
[jQuery] .splice(i,1) method
Hi, Below I post js code from jquery website. $(document).ready(function() { var selected = new Array(); $('select').mouseover(function() { if (this.multiple == true) { for (var i=0,a=0;i<this.options.length;i++) { if (this.options[i].selected == true) { selected[a] = this.options[i].value; a++; } } } }); // safe them when you click the mouse $('select').click(function() { // make sure it's a multiple select if (this.multiple == true) { for(var i=0;i<selected.length;i++) { for(var a=0;a<this.options.length;a++){
[jQuery] jQuery + PHP Form Validation
So I am working on an AJAX call to a PHP script which validates the data submitted in a form. My question concerns the best way to get the data from PHP back to the jQuery script. Should the dataType field be html or script? I tried html and I know I could parse out what I need, but in the documentation it says script runs the code as a javascript script, but I'm not sure of the scope of this script. I tried setting a variable name in the script and changing a global variable value, but I saw no
[jQuery] [autocomplete] - Request
Hi, I have an autocomplete feature request. My request is that when a particular prefix is not found on the database, adding to the prefix should not cause more calls to the remote system: As an example, say I type in "ThisIsANewEntry", the following might happen: T - 5 entries returned Th - 3 entries returned Thi - 0 entries returned This - 0 entries returned ThisI - 0 entries returned ThisIs - 0 entries returned . . . Once the jQuery sees that a prefix isn't returning anything more, I'd like jQuery
jquery Popup onload || with cookie
Firstly, it's about time jquery got a decent support forum And of course secondly , I would like a popup on my site that informs someone they are using IE and should convert to firefox. So far I have comeup with the following which works but I still need to implement the following. Cookies - so it displays once every 10 days or so. someway to detect if a user is using Internet Explorer. Here is what I have come up with so far.It pops up alright but thats about it. popup.js /***************************/
[jQuery] JQuery and PS3?
Hi I was just wondering whether Jquery works on the PS3 natively (even if limited) and if not, how to do so? thanks
[jQuery] Can I use JQuery to receive multipart data?
I need to receive a multipart message from server, how can I use jquery to do that? Thanks! Cindy
[jQuery] How to remove elements from the page efficiently.
Hi Guys ! Situation is the following, I display a list of entries ~60 inside div. Each entry is a div too. When I try to clear this list using either jQuery("#list").empty() or $('#list').html('') it's terrible slow especially on firefox. Any suggestion how the list should be emptied? Best regards and thanks in advance Pawel
[jQuery] [validate] email validation problem
I am trying to validate emails in the format name@chs.k12.oh.us. This format fails using the email method of the validate plugin. It appears to fail on the length because name@chs.k.oh.us works but name@chs.ka.oh.us does not (basically anything longer than one character fails). I'm using this on a site for schools so there will be lots of emails in this format. I am terrible with RegEx so any help would be greatly appreciated.
[jQuery] jQuery + PHP Form Validation
So I am working on an AJAX call to a PHP script which validates the data submitted in a form. My question concerns the best way to get the data from PHP back to the jQuery script. Should the dataType field be html or script? I tried html and I know I could parse out what I need, but in the documentation it says script runs the code as a javascript script, but I'm not sure of the scope of this script. I tried setting a variable name in the script and changing a global variable value, but I saw no
JSTree help please
Hi Guys, Im tying to get one of the http://www.JStree.com examples working. The one that interests me is the Flat xml example. I've downloaded the package and unzipped the files all in one folder removing all the subfolders they are in. Anyway looking at the documentation for the flat file xml, Ive got the following code to create my tree. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <script type="text/javascript" src="jquery.js"></script>
[jQuery] Using ".live" between 2 ULs without bubbling or premature stopProp
I am having some difficulty using the click event between two functions. Either it bubbles like crazy or it only works for one function then stopPropagation kills it altogther for the other. Using jquery 1.3.2 for this and .live. Please if you have suggestions let me know. Working on a script where there are two unordered lists, #school_choices and #selected_schools. When the user clicks on a LI from the #school_choices an LI is appended with the same text and id to #selected_schools, the clicked
[jQuery] OT: AIR sync?
Sorry for the slightly off topic post, but I know there are some AIR devs on this list and someone might have a tip for me. I'm planning an Adobe AIR app that will be written with HTML/jQuery and needs to do offline sync (using SQLite db on AIR side, mysql on server side and json web services). IE: an online user must be able to sync their SQLite db from the server, disconnect, modify records, then reconnect and sync back to the server, with any conflicts (due to someone else changing the same record
[jQuery] Collect all IDs in a DOM & then act on specific ones
Hi all. Hopefully this question is not so dumb that it will be ignored completely. I would like to collect all IDs that start with a specific string (say #edit-field-*) and then apply the spin() plugin function to each of the matches. Thanks in advanced, Dan
[jQuery] Collect all IDs in a DOM & then act on specific ones
Hi all. Forgive my simplistic question, but how would one go about applying a jQuery plugin function to IDs that start with a specific string (say "edit-field-*"). For example, instead of applying spin() to the field specified below, how do I traverse the DOM and apply it to all IDs that start with "edit-field-*")? $(document).ready(function(){ $("#edit-field-player-strength-0-value").spin({imageBasePath:"/ files/",max:100,min:2,interval:2}); }); Thanks in advance. Dan
[jQuery] Array of all checked checkboxes
I have a series of checkboxes with class="the_checkbox". I can get all checkboxes by classname and manually loop through each to find out the checked ones. I'm wondering if I can get an array of checkboxes that have been checked with one line of jQuery?
[jQuery] Help using click event on looped LIs for two functions with stopPropagation and .live
Hello, I am having some difficulty using the click event between two functions. Either it bubbles like crazy or it only works for one function then stopPropagation kills it altogther for the other. Using jquery 1.3.2 for this and .live. Please if you have suggestions let me know. Working on a script where there are two unordered lists, #school_choices and #selected_schools. When the user clicks on a LI from the #school_choices an LI is appended with the same text and id to #selected_schools, the
Next Page