[jQuery] how to load data into a text area?
Hi, Is it possible to use .load and populate the contents of a TEXT AREA or do I have to .load into a hidden DIV and then extract the text from the DIV into the TEXT AREA ? I'm currently doing this but it's not working... $('#libNotePadTextArea').load('/4dcgi/test/test1.4dp'); Thanks, N
[jQuery] Recursion Issues with jQuery
Hello, I am not sure if my previous post was really posted.I couldn't see it here even after about an half an hour since I posted. I am trying to get a feature accomplished and Recursion seems to me like the most obvious solution. I have written some functions designed for the same. These functions call each other and themselves at depending on the situation. Here are they: Search.method ( 'process_search_node', function (context, string, status) { var me=this; alert('preocess_search_node
[jQuery] Recursion Issues with jQuery
Hello, I am trying to get a feature accomplished and Recursion seems to me like the most obvious solution. I have written some functions designed for the same. These functions call each other and themselves at depending on the situation. Here are they: Search.method ( 'process_search_node', function (context, string, status) { var me=this; alert('preocess_search_node called!'); var lstring = string; if(status != 'break') { /***** Process Child *****/ /***** Child does
[jQuery] Javascript question.
I am writing an object that gets data using AJAX and shows it in <DIV> Also this object must provide refresh method so data can be easily refreshed. Here is my implementation function GetD(tb) { $this = document.getElementById(tb); var obj = new MyData($this); return obj; } function MyData(tb) { this.init(tb); } MyData.prototype = { init : function (tb){ this.div = tb; this.refresh(); }, refresh: function(){ var tb = this.div; $.ajax({ type: 'POST', url: 'Default.aspx/Fetch', data: "{}", contentType:
[jQuery] UI Tabs and a submit button
Is it possible to place a submit button on the same line as a row of tabs using the ui tabs? | tab1 | tab2 | tab3 | tab4 | (submit button) |--------------------------------------------------------------------------| Any suggestions? Thanks Steffan --------------------------------------------------------------- T E L 6 0 2 . 7 9 3 . 0 0 1 4 | F A X 6 0 2 . 9 7 1 . 1 6 9 4 Steffan A. Cline Steffan@ExecuChoice.net Phoenix, Az http://www.ExecuChoice.net USA AIM : SteffanC ICQ : 57234309 YAHOO : Steffan_Cline
[jQuery] jQuery getJSON syntax error
hi all, I have a valid json string returned from the server(checks valid, ok by jsonlint.org) But get a syntax error from the browser. The call looks like: " $.getJSON(url, addData);' The returned string looks like: [{"EMAIL":"newal@domparaiski.com","FIRSTNAME":"Neal","ID": 80235,"LASTNAME":"Dombroski","PHONE":"9258958113"}, {"EMAIL":"5yughew90r@alertu.net","FIRSTNAME":"Flaviomeral","ID": 80236,"LASTNAME":"UBertitidito","PHONE":"4152861138"}, both IE and firefox show error, firefox error console
[jQuery] Simple Code, not working.
var lawls = 1; $('#next').click(function () { $('.item').hide(); $('.item:eq(lawls)').fadeIn(); ++lawls; }); I have multiple divs, that I would like to sequentially appear when a button is clicked. My current code isn't working. This will work: $('#next').click(function () { $('.item').hide(); $('.item:eq(2)').fadeIn(); }); ...but obviously it's not dynamic, and won't cycle through the divs. Help!
[jQuery] [validate] Dynamic required fields
Hey all, I am wondering whether it's possible to set up a form with dynamic required fields? Basically what I am after is a feedback form with a question like How would you rate this site? with possible answers as Great Okay Needs Work to finish this up there will be a comment box which will default to not required assuming the user will tick Great or Okay. But if they say it needs work then I'd like to have the comments area switch to required so to get them to leave comments as to why they think
[jQuery] Count of checked checkboxes
Does anyone have a quick trick for getting a count of all checked checkboxes? I tried $("checkbox:checked").length and I always get 0. Is there a trick for this? Thanks Steffan --------------------------------------------------------------- T E L 6 0 2 . 7 9 3 . 0 0 1 4 | F A X 6 0 2 . 9 7 1 . 1 6 9 4 Steffan A. Cline Steffan@ExecuChoice.net Phoenix, Az http://www.ExecuChoice.net USA AIM : SteffanC ICQ : 57234309 YAHOO : Steffan_Cline MSN : steffan@hldns.com GOOGLE: Steffan.Cline Lasso Partner Alliance
[jQuery] animated robot cartoon with jquery
Hi all, I occasionally volunteer as a guest speaker for the web design class at my child's elementary school. I wanted to introduce them to jquery and html in a fun way so I created an animated jquery 'robot'. Now, I'm not really adept at javascript or any type of programming at all. I'm a designer turned wannabe' web developer :) I used multiple divs and transparent png's to create the different parts of the parallax background and the bouncing robot. The code I was able to piece together to make
[jQuery] Preloading WAV file?
I need to preload a WAV file so that it doesn't end up behind the graphics that its supposed to match with... However I can't seem to find a plug-in or simple script to do this. Help is appreciated :) -CodingCyb.org
[jQuery] jQuery object with variable id name. Is is possible?
Hi, is it possible to passed the jQuery object a variable with the the js functions for example? I'm having problems with jQuery. I have an img that on click it runs this function however nothing gets hidden or shown. I have the following in my page header Code: function hide_Show(RegionID) var $jQuery = jQuery.noConflict(); //Icon that is clicked var objectClickedID = '#' + RegionID + '_img'; //Region to hide var objectID = '#' + RegionID; $jQuery(document).ready(function(){ $jQuery(objectClickedID).click(function()
[jQuery] Open iframe Link in a iFrame - jQuery ThickBox
Hi, I have an Orkut application which is iFrame. I have this parent iFrame with scroll down. When use thickbox & jquery to open links as iFrame, The Popup Window opens in middle of the Page, Instead of where the link was clicked ? Any IDea how to fix this?
[jQuery] JCarousel multiple column/row view?
Yeah I posted on the other list and no one bothered to reply heres original link http://groups.google.com/group/jquery-plugins/browse_thread/thread/3a7764d42f7be662
[jQuery] ajax form post help needed
I am using the ajax form plugin....working GREAT however I need to add a loading grapic to display while it does the post. I have a div (loader) thats just waiting to turn on and off but I can't get it to show...any help would be great!! code: $(document).ready(function(){ $('#chk_area').ajaxForm(function(service_return) { if (jQuery.trim(service_return)==1){ alert("Thank you for your comment! - 1"); } else if (jQuery.trim(service_return)==0){
[jQuery] Query from an already-found node
I am a mostly-jQuery, sometimes Dojo user. I just came off a Dojo contract and one thing I ended up using a lot was Dojo's ability to do a query starting at a given node (subtree) of the DOM. Now I'm on a jQuery project and I find that I don't know how to do that in jQuery. Suppose I have done a query, gotten back, say, 8 nodes. After some processing I know that I want to do another query off a certain one of those nodes. In Dojo, I supply another argument which makes Dojo Query from that node instead
[jQuery] [HELP] How do I get the Id of selected node ?
Hi all, I'm stucking in this trouble about 2 hours T___T .... Because I have to get data from server by ID value of selected node, and till now I found no way to get it :( Plz help and show me how to get the value of ID Atrribute of selected node in TreeView? Thanks a lot!
[jQuery] Exchange a Superfish menu with an Accordion.
I have a menu on a site I am working that by default uses superfish. However, the client would like to have a button that users can click that would change the menu to an accordion; without reloading the page. I assume I need to first remove superfish. Right now, the menu works great with superfish, it works great when I only have the accordion enabled, and I can switch from accordion to superfish with no problems.... SO, my question is, How can I reset an element that I have applied superfish too?
[jQuery] combining slideup, post, slidedown
Hi. I am trying to make a div slide up, update through $.post and then slide down again. I have the following code: $("a").click (function() { $("#content").slideUp('slow', function () { $.post('http://uf.ekdahlproduction.com/itsvintage/text.php', {site: $(this).attr('rel')}, function(data) { $("#content").html(data); $("#content").slideDown('slow'); }); }); }); However, the div just goes up and down without any content on it. Can anyone help me sort this out? (I know the post thingy is working,
[jQuery] Need help traversing an unordered list
How do I access just the titles (ie 'Title 1', 'Title 2')? Every method I tried also includes the content. I tried using: not('[li]") & parent() This is an example list structure. I want to be able to get just the titles: (ie Title 1, Title 2, Title 3) <ul id="mylist"> <li> Title 1 <ul> <li>Content 1</li> </ul> </li> <li>Title 2 <ul> <li>Content 2</li> </ul> </li> <li>Title 3 <ul> <li>Content 3</li> </ul> </li> </ul>
[jQuery] rewrite these few lines of code
Hi, Here's a bit of code I have: function getContent() { $("div#content").load("content.php", '', reload); } function reload() { setTimeout("getContent();", 1000); } $(document).ready(getContent); I'd like to rewrite so as to include the functions within the document ready part: $(document).ready(function(){ //my functions here }); I've tried many different syntax, none worked. Thanks in advance :) Regards, -jj.
[jQuery] Creating an image thumnail rotator help!
Hi Guys This is my first attempt at doing anything jQuery (that is partly my own). So please don't shoot me down :) I would like your help, improving, my "simple" thumbnail rotator script. It is something I'm sure most jQuery gurus could code in a matter of minutes, but has taken me the better part of the day, as I head bang my way thru it. This uses jQuery Timers (http://jquery.offput.ca/every/). Also basically this works in Win..FF3 (haven't tested other browsers) - However it really needs to have
[jQuery] Converting XML String into DOM on Client via JQuery
Hi There, I understand that when a server side page returns an xml response with the headers set appropriately, then JQuery will automatically provide a DOM representation of the xml so that it can be queried easily, for example using something like: var node = $('node',xml). My question is - Is it possible to convert an XML string on the client/ browser into the same type of DOM object so that it can be queried in the same way? The reason is, I am working with a cross domain web service which returns
[jQuery] Simple Filtering Script not working
I am working on a simple filtering script that will match the jquery selector, and find the text inside all the child nodes. Then hide those that are not found. For some reason it is not working, and I am not sure why. Is there a better way I could be doing this? var obj = $(this); $('#filter').keyup(function() { var filter = $('#filter').val(); obj.each(function() { if ($(this + ':contains(filter)')) { $(this).show(); } else { $(this).hide(); }; }); });
[jQuery] span tag is width:80px but is only showing the width of contents?
Hello, I've got a SPAN tag which is set to 80px... <span style="width:80px; background-color:#00FF00;">A</span> The contents of the SPAN is a single character and when rendered on screen, the green SPAN is showing as only approx 15 pixels in width. How can I force the width to be 80px? Thanks, Nick
[jQuery] beginner help jquery.load
HI. I'm really new to jquery, and PHP for that matter. I'm trying to complete a school assignment, and I'm soooo stuck. What I'm trying to do is submit form data through jquery to a php page. The php works as intended when called outside of jquery. It basically takes some POST values, and writes them to a database. It's then supposed to return a string which lets a user know the result of the attempt. All I want to do is load the resulting string into a div on my form page. However, in the way I'm
[jQuery] beginner help jquery.load
HI. I'm really new to jquery, and PHP for that matter. I'm trying to complete a school assignment, and I'm soooo stuck. What I'm trying to do is submit form data through jquery to a php page. The php works as intended when called outside of jquery. It basically takes some POST values, and writes them to a database. It's then supposed to return a string which lets a user know the result of the attempt. All I want to do is load the resulting string into a div on my form page. However, in the way I'm
[jQuery] Poll sumbit
Hi all, I want to build something so that when someone submits his poll choise that the poll will change into the results without any refresh. Whats the best way to start of with for building this? So: - user visite the site - user chooses a option on the poll - he presses on vote - then his answer will be added to the database - poll results will show When a person already voted he also has to show the results. Whats the best way to start of with? Erwin
[jQuery] how can I wait until blockUI shows
Hi all, I am very new to jquery, so please excuse my maybe newbie question :) I have a following problem: when I call blockUI and execute JS afterwards, the blockUI shows after the JS finished executing. When I put alert after calling blockUI, it shows right after alert pops up. I suppose, that without the alert the IE is too busy executing JS and therefore does not show the blockUI. The question is, how can I give blockUI time to show before rest of JS is executed. thank you in advance Michael
help... newbie jquery.post question...
HI. I'm really new to jquery, and PHP for that matter. I'm trying to complete a school assignment, and I'm soooo stuck. What I'm trying to do is submit form data through jquery to a php page. The php works as intended when called outside of jquery. It basically takes some POST values, and writes them to a database. It's then supposed to return a string which lets a user know the result of the attempt. All I want to do is load the resulting string into a div on my form page. However, in the way I'm
[jQuery] Plugin/Object
I am learning JQuery and trying to write my own Plug-in. I have a 'Blinking' plug in. It just makes text blink. Now I want to be able to stop the blinking (for what ever reason) at the same time I want to keep the Plug-In styling. So to make item blink I do $('#myitem').blink(); Now to stop it I want to be able do something like this $('#myitem').stopBlinking(); I am not sure how to go about it.... I've learned the 'event' technique where I can bind to 'StopBlink' event and then do $ ('#myitem').trigger('StopBlink');
[jQuery] sliding left and right effects?
Hi, I've found the slideUp and slideDown functions but I'm trying to find a slideLeft and slideRight function. Do they exist at all? Thanks
[jQuery] [London Beers] Is anyone from London?
Hello, Sorry for the off-topic message but does anyone on the list work or live in London? I've recently started working for myself and thought it'd be a good idea to meet others working with similar tools and in general just have a few beers. Cheers, N
[jQuery] loading an array via Ajax
I have a case where I need to have a few global arrays and/or objects which will be used by numerous scripts. One example would be as a local lookup source for an autocompleter, while the same data might be used to populate a selection menu. The data isn't likely to change during a user's session, but might. I can get this data remotely every time I need it, but I'm hitting some performance problems in doing so. What I'd like to do is load these arrays/objects on page load, but make them globally
UI Draggable / Droppable issues
Hello, I'm rather new to JQuery, and have been goofing around today trying to make a kind of crossword puzzle game with it. You can see it here: http://angrycephalopod.com/projects/cro ... _drop.html (I've only set up for "sprocket" to be rotated vertically.) But I don't even know where to start listing the problems. It's an absolute mess and I have no idea why. After rotating sprocket (just drag it over the blue box) and placing it in the vertical column, for some reason its position gets completely
[jQuery] Jquery on Joomla
Hello I'm using Jquery into Joomla. I'va got a problem when thru many modules, when jquery is includes more than one time. Only the last module work fine and the first don't. So, how can i know if the jquery library is already loaded in order to not include it one more time? thanks. Regards Alexandre
[jQuery] Problem with the first example!
Hmm, This is starting off very well. I followed the instructions on the jQuery home page to set up an alert. My code is as follows: <html> <head> <script type="text/javascript" src="jquery_ui.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("a").click(function(event){ alert("Thanks for visiting!");}); }); </script> </head> <body> <a href="http://jquery.com/">jQuery</a> </body> </html> I just get an error 'Object Expected' Help! :D
[jQuery] Does the JQuery Ajax and load work properly? It seems to work like an iframe rather than like add html in FF, Opera, & Chrome, but works as I would expect in IE
Hi, Check out the example at http://docs.jquery.com/Ajax/load#urldatacallback Click on one of the links in FF 3.0.3 or Chrome and instead of redirecting the entire window, it just redirects the content within the ul tags. However, do it in IE and it redirects the browser window properly. To me the ie functionality makes the most sense if we are just loading in pure html tags. I am trying to use this in a project but when I load any content that contains link in ajax, the link only changes the content
Validating with jQuery...
Hello! I have problems to validate the way I want. I have downloaded the famous jQuery validation and made some modifications to suit me. It is here with all files: http://adissida.net/ovrigt/jquery/validate/ As you can see it says ' Postnummer ', it is Zip. I want it to validate the numbers there and not text. I have tried to solve it but may not work. Would be incredibly grateful if someone could help me with the foundation, I will solve the rest and refine it by my self.
[newbie] automatic fading on all load()?
Hi, i think it's a newbie question but i couldn't find anything related let's put it this way: my website has a userbar which loads a big <div id="main"> for each section with a load(); Is it possible to tell Jquery to add automatically a fadein to ALL load in my application? without having to edit all the load? Thanks!
Next Page