[jQuery] return value of previous element confusion
I am having a bit of difficulty with this; I have a few similiar divs that share a class name: <div class="test"> <input name="id" type="hidden" value="1" /> <div> <input type="submit" /></div> <div> <div class="test"> <input name="id" type="hidden" value="2" /> <div> <input type="submit" /> <div> <div class="test"> <input type="hidden" value="3" /> <div> <input name="id" type="submit" /> </div> <div> Now if I try find the value of the first: $("input[type=submit]").click(function(ev){ ev.preventDefault();
[jQuery] use setDate with passing options
I know use $(<id>).datepicker("setDate", date, endDate); but I also need to pass some options like {rangSelect:true} to datepicker. How can I do it? use this way? $(<id>).datepicker("setDate", date, endDate, options) Or maybe have any other way to implement it. Give me some ideas please.
[jQuery] load() Not Working in IE
For some reason my .load() function at http://www.imperishableinheritance.com/ works fine in FF/Safari but not so much in IE (7, I don't care about 6). Any ideas why? It's also painfully slow. $("#sideblog").load("/wp-content/proxy.php?csurl=http%3A// tumblr.imperishableinheritance.com #content",function() {$ (this).slideDown();}); Thanks.
[jQuery] Please help (first attempt using jQuery
Hi all, This is my first development project using jQuery (actually it didn't start out using it but someone recommended I did along with using an ASP.Net WebService Method (both of which I had never used before) so there are a lot of new things for me here. Here is what I have: <script language="javascript" src="js/json2.js" type="text/ javascript"></script> <script language="javascript" src="js/jquery-1.2.6.min.js" type="text/ javascript"></script> <script language="javascript" type="text/javascript">
Strange problem with AJAX and mod_rewrite
I'm really don't know what to do. I have similar forms on different pages. The first one is situated on http://www.site.com/new/register.php. The second one is located at http://www.site.com/blogs/someones-blog/account. The second is modified by mod_rewrite, and physically that form has address http://www.site.com/new/blogs.php?user= ... on=account. File ajaxengine.php which process data sent by that form throught AJAX is located at http://www.site.com/new/ajaxengine.php. So, I have script on JS:
[jQuery] utf8 request/response headers
Quick summary: I'm trying to submit utf8 characters via AJAX to a database. The data submitted via the form includes a text field with utf8 characters, including this one. They look normal in the post headers. http://www.fileformat.info/info/unicode/char/2022/index.htm The response headers include unparseable unicode codes, which for that character (the bullet) is the "\u2022". The following is getting inserted into the database in place of the bullet character. "%u2022" I am pretty sure its javascript
Adding loading gif to gallery - help needed!
Hi there. on my home page i would like to add a loading animated gif (which i already have) and display it while my images are loading. For example if you look at http://impwood.com on Internet explorer you will see that it loads all of the images vertical down the page before the gallery starts. I would like these images to load in the background and only be displayed when they are fully loaded. In the mean time i want the animated gif to be displayed. If you look at this page http://impwood.com/mirrors.php
[jQuery] How to change a background use jquery?
<div dir="ltr">Assume that i had this in <head></head>: <pre style="font-family: helvetica,arial,sans-serif;" id="line16"><font size="2">body{background-image:url("<a href="http://www.powerdirectory.net/tools/backgrounds/photos/med_sovp74a44z.jpg">http://www.powerdirectory.net/tools/backgrounds/photos/med_sovp74a44z.jpg</a>");</font></pre> How i can change this backgroudn by using jquery? Example, i want to change backgound image to <a href="http://tratu.baamboo.com/images/logo.gif">http://tratu.baamboo.com/images/logo.gif</a>
[jQuery] jQuery, $ is Not Defined Errors
Hi all, I'm having an issue on a site I'm building where the datepicker is not loading. Firefox throws two errors, one on "jQuery is not defined" and the second on "$ is not defined." Demonstration page is up at http://ficclaims.com/perf/new/ I've googled the errors, and I found a few others having the same errors, but either dead ends or no resolution was ever posted. It seems like it must be something simple, but I can't root out the problem. Currently, I'm using a custom configured download of
[jQuery] Problem with timer and ajax
I have the following code that seems to work for some people and not for others. THe page it is retrieving is supplying a piece of data that is pulled from a database randomly. I have confirmed that the data is definitely being delivered correctly. The users who report the problem say that the first piece of data displays correctly but from the second one on it just displays the second piece of data over and over. Every time I test the page it works fine. Is there someting that could be causing the
[jQuery] check if disabled attribute is true?
I know how to change the disabled attribute of a form element, but I can't figure out how to check the disable attribute. I can't seem to get this to work: if ($(this).attr("disabled")) { $(this).css("cursor","not-allowed"); } Any ideas? Thanks Peter
Very slow display if GET wait too much to receive the page
Hi guys.. I noticed that when I do a GET, if it takes to much time to generate the page that is to be get (i.e. more 0,5 second), it then takes about 5 second to update my DIV. The last 3 second the cursor transform in an hourglass in Firefox. And the delay is there in every browser, although a bit less in Safari. Any idea why or solution? p.s. I had the same code written with prototype.js before and it worked.
[jQuery] IE6: Can't insert IMG tag, using html()
I'm trying to replace the content of a span with some text and an image tag, using JQuery's html(). However, IE6 only inserts the text, not the image tag (or a SWF for that matter). All other browsers I tested seem to work. See a demo at: http://people.ischool.berkeley.edu/~hannes/swftest/swfie.html Can anyone figure out what's going on? Thanks! Hannes SOURCE ------ <script src="js/jquery-1.2.6.js" type="text/javascript"></script> <script type="text/javascript" charset="utf-8"> function activate(element_id)
[jQuery] Back Button plugin/techniques
Hi all, As you all know, AJAX request causes the back button to loose it's functionality. I'd wounder if there is any plugin or sample of technique to simulate for example gmail's back button handling (with anchors). It is probably pretty simple to create some own anchor syntax and then use that to populate the page needed (of course it would be a new AJAX request per each back button click, but it would work). But if someone have a working technique, that would be great :) /Peter
[jQuery] Can't wait for the Ajax Experience
So just booked the trip to attend this event..... the jQuery sessions look great and i look forward to seeing John and Karl among others speaking
[jQuery] autocomplete asp.net problem
Hi, I'm trying this http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ plugin with asp.net. How I can call webservice in it? ---- Sharique
[jQuery] Identify which button submitted the form
Hello, I have a form with two <button type="submit"> inside. Each one with his own name attribute. One of the buttons might show an alert to confirm submission. So, my question is, how can I identify which button submitted the form inside the function of the .submit(fn) event? Thanks, rics
tabs by Klaus Hartl, making external link open normally
Hi, Nearly everything is working fine but one problem that i can't seem to resolve. I want to have one of my links which is an external link open as a new page and i can't seem to do this. I don't want this to open in a new window but in the current page. The reason for this is the external link is an externally hosted survey form and when it loads up via the ajax tabs the form no longer works. So i want one of the links to actually completely navigate way from the current page. Any ideas on how
[jQuery] New jQuery Plug-in: Multicolumn Dropdown
Awhile back I blogged about a plug-in that my company was planning on releasing called mcDropdown (multicolumn dropdown.) Well, the plug-in was officially released today: http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm If you like the plug-in, feel free to digg it: http://digg.com/programming/Multicolumn_Dropdown_jQuery_Plug_in You can jump directly to the example here: http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm#example In a nutshell, this plug-in creates a tree-like form control.
Ajax $.post optimisation
Hi all, Problem: I have created a wallboard application to be used in a call center. It uses an asp script to echo out xml to a jquery(ajax) html frontend. The application i made works, however it is very inefficiant. I think the reason for this is that I run $.post calls to the asp script on a timer rather than waiting for the information being echoed out by the asp script to change. Also im pretty sure the data is being cached somewhere causing the memory use to sky rocket. Question: Does anyone
[jQuery] how to add a callback to my plugin?
hi there, it may seems trivial, but i would like to know the proper way to add a callback to a javascript function. Is this correct? function dummy(arg1,arg2,callback){ // do this, do that... if (typeof callback == 'function'){ callback(); } } or a simple eval(callback) ? what's the best practice ? Thanks for your input ! alex
What if I've got several div's of the same name?
Hi All, I'm new here so please be gentle with me!! I've a news thingy and initially I want the news to display like this: News headline1 and date News headline2 and date News headline3 and date When a user clicks on one of these headlines I'd like it to show the details: News headline1 and date News headline2 and date News Details2 blah blah blahblah blah blahblah blah blahblah blah lahblah blah blahblah blah blahblah blah blahblah blah blahblah blah blahlah blah blah News headline3 and date I have
[jQuery] xmlHttpRequest
Hi there, I am writing a login screen and then retrieving a list of data from a server that accesses a web service that processes the requests. The web service takes a non SOAP xml structure. the server would be something like: http://localhost:7777/scripts/aorta.dll and an example request would be: <METHOD_LOGINUSER> <Login> <IDSource>AssessorWeb</IDSource> <Name>admin</Name> <Password Encryption="Cura Web" >password</Password> <ClientType>Assessor Web Client</ClientType> <TimeZone> <Offset>-120</Offset>
Event effects multiple elements
Hi All, I have 3 button divs (empty div's over a png that have borders for now), and 3 text container div's that I would like the buttons to fade in or out. All elements are nested in a container div. Currently, the only button div wired to fire is the "contact us" button, and it is set to fade out the "Contact Information" text div. This was done for testing and first step procedures. When I click my button, the text div does fade as anticipated, but so do all 3 buttons! They totally leave the stage,
[jQuery] Looking for an AutoSuggest plugin
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=Content-Type content="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 11 (filtered medium)"> <style> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;}
[jQuery] creating metadata on the fly using .metadata() or .data()
What are the main differences between the metadata plugin and jQuery's built in .data() method? Has the metadata plugin been incorporated into jQuery core? I'm currently using the metadata plugin and its working great for the data that the server adds to the elements upon page creation. I need to be able to dynamically add metadata to certain elements on the fly. The metadata I'm using is stored as an attribute like so: <tr data="{some: 'data'}">. I'm not seeing a way to add to the existing metadata
multi dimensional array via json?
Hi, is there a way to send a multi dimensional array from php to jquery JSON handler and how has the jquery function to look like? Or is it better to flaten it to a normal array? thanks T.C.
[jQuery] Dropdown menu issues with images in WordPress blog
Got a problem with the JQuery dropdown menu and it only seems to happen on IE/PC on a WordPress template. If you go to http://www.granolagourmet.com/index.php and rollover the buttons in the nav menu you'll see if you're using IE7 that the menu goes behind the images. Not in front as it should be. What's really odd is it's only happening on the WordPress template. Not anywhere else. For example, go to http://www.granolagourmet.com/store and see the difference. Is there a fix to this?
[jQuery] autocomplete asp.net problem
Hi, I'm trying this http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ plugin with asp.net. How I can call webservice in it? ---- Sharique
[jQuery] slideDown and slideUp are jerky
Hello, I have a site: www.lovinggodlovingyouonline.com that the menu is jerky in IE6 & 7 on xp. FF is really smooth. I would prefer onmouseover, but I changed my code to onmouseclick to help remedy the problem, but it did not work. Does anyone have any suggestions regarding this? My jquery code is below: <script type="text/javascript" src="jquery-1.2.3.js"></script> <script type="text/javascript" src="jquery.blockUI.js?v2.04"></ script> <script type="text/javascript" src="bubble.js"></script> <script
BackgroundPosition & IE
Hi all, sorry but I don't speak english very well (I'm french) so I will be quick. Here is my code : <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <link rel="stylesheet" media="screen" type="text/css" title="Design" href="design2.css" /> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script> <script type="text/javascript" src="javascript.js"></script> <title>Test</title>
[jQuery] New Plugin - sylish select menus with icons.
http://www.adelaidewebdesigns.com/2008/08/01/adelaide-web-designs-releases-customselect-with-icons/ Let me know what you think Its designed to allow you to have a drop down menu with icons in the options. My first plugin, hopefully someone will get some good use out of it.
[jQuery] Applying the ac_over style to a custome div class in Autocomplete
In Autocomplete, I have built a custom <div> to insert into the li class so that several components can be included in the display of each search result. The problem is that the ac_over style is applied to the li class only, and when pressing the UP and DOWN keys the ac_over style is triggered, but my custom <div> class obscures the style change on the li class underneath. The result of this is that the result list item does not appear to be highlighted to the user when selected with the arrow keys,
[jQuery] Draggable adding drag cursor to wrong element
Can anyone suggest why creating a draggables widget (having just destroyed one on the same object/element) would place the nominated cursor for dragging, on the body element, instead of the element it is called from? Paul
[jQuery] ajax request with span update
Hi, i create a function to update a span-element in a cell with an image. when i klick the image, it will be replaced and the image-tag should be replaced with the response. the response is ok, but it doesnt display like response. my function: $j.ajax({ url: "/include/getstatus.php", type: 'POST', data: "table=" + table + "&field=" + field + "&status=" + status + "&id=" + id, beforeSend: function(){ $j('#'+table+id).fadeOut(500); }, success: function( neuerstatus ) { window.setTimeout(
[jQuery] Jquery with ajax and return data is a javascrpt
I write one paragraph:code ================== $.get( 'sad_ajax.php', { option: "pass_blog", password: encodeURIComponent(document.getElementById("pass_blog").value), action: encodeURIComponent(document.getElementById("url_act").value), cat_id: encodeURIComponent(document.getElementById("url_catid").value), topic_id: encodeURIComponent(document.getElementById("url_topic").value)
[jQuery] jquery remove leaving leading whitespace
<div dir="ltr">Hi, I'm using the remove, though if I have lots of elements and then I remove one by one, there is a lot of leading whitespace left behind. I'm not sure where it's coming from, I used the FireBug dom inspector and see no whitespace elements or anything else goofy... My html is as below, seems straightforward enogh <fieldset id="someid"> <span onclick="removeme(this);"> <img src="blah.jpg"/> data1 </span>
[jQuery] jcarousel problem in IE6
Have been testing out jcarousel on a site I am working on and the gallery works in all browsers except IE6. It just loads all the images horizontally across the page. Link below: http://test.shakingpaper.com.au/passport/gallery.html Any help would be great.
[jQuery] Apple Mac Dashboard widget and jQuery integration
Hi All, I've just become the proud owner of a Mac and have just started playing with Dashboard widgets. What I am wondering is if it is possible to use jQuery within a widget? To be honest I haven't really tried to do anything really useful just yet - apart from communicate with a PHP file via Apache, but I would really like to use the $.get() and XML handling stuff from jQuery instead of having to 'roll-my-own' just to achieve the same effects. I have tried searching both here and via Google for
[jQuery] jquery lightbox - balupton question
Hi guys, I'm trying to add lightbox to my page, and i needed to change the default directories because our static files can't fall directly under our jsp/html files(it's a deploy thing). I changed my lightbox.js to match the baseurl: baseurl: '', files: { // If you are doing a repack with packer (http://dean.edwards.name/ packer/) then append ".packed" onto the js and css files before you pack it. js: { lightbox: 'javascript/curator/edit/jquery.lightbox.js'
Next Page