[jQuery] Using Wildcards to find specific ID on a page
Summary: I am new to JQuery. Is it possible to search for a element by ID using a wildcard? Something like this where "*" indicates a wildcard? $('#*btnTest') Background: I develop in ASP.Net. The button in question exist in a user control, which when placed on a page modifies the generated input id to something like "usercontrol1_btnTest". I could find new id and modify the jquerry, but then the jquery code would only work for that page. It seems a better design would be to write the script so it
[jQuery] [Announce] jQuery Reference Guide available for pre-order
<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Hi everyone, <DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN class="Apple-style-span">Thought I'd let you know that book 2, <I>jQuery Reference Guide: A Comprehensive Exploration of the Popular JavaScript Library</I>, is now available for pre-order from the publisher's web site. It won't show up on amazon.com until a week or two after the publication date, so if you want a copy super-fast,
[jQuery] Form plugin, packable?
Hey all, Just downloaded the official Form plugin, and I notice there is not a packed version anywhere that I can find. I can pack it myself of course, but I'm just wondering if there's a reason that there's not a packed version anywhere - is there an issue with packing this particular plugin? -- Josh
[jQuery] Autocomplete
Hello, I found several autocomplete plugins on the jQuery site which do allow remote queries. Since there is too much choice maybe someone can tell me which one I should use ? Thanks -- Erik
[jQuery] IE and Making dynamically added items draggable?
I need some help with solving the following problem: I have eight <ul> elements made .droppable() on mouseover (using Interface), and accepting draggable <li> elements, as so ( Stripped some non-relevant code ): $(document).ready(function() { $('body').mouseover(function(event) { if ($(event.target).is('li.character')) { $(event.target).Draggable( ... ); } }); // Make our group boxes droppable $('.group').Droppable( ... ); }); And the function
[jQuery] CSS and DIV position
Hi people, I would like to develop a web application that would let users configure their own page, ie, they have a certain number of divs available and they can drag it all over the page to the position they desire. So I would like to know how to retrieve the div positions once the configutation is done to redisplay it aftewards. DIV coordinates are stored in a XML document in MySQL. Thanks in advance Joel
[jQuery] populate div with ajax inquiry
Hi all I'm looking to populate a div with information from a database ... don't want to pass any parameters to the serverside script, just want the div updated according to my query if the db record sets are modified, is .ajaxStart() the appropriate function for this? I'm basically looking to have the jquery poll the server every X seconds. Since HTTP is a connectionless protocol, I'm not entirely sure what the proper way would be to stop/start the request using good practices. In pseudo-type code
[jQuery] Partial Accordion Possible?
I've been looking at Jörn's Accordion plugin (http://bassistance.de/ jquery-plugins/jquery-plugin-accordion/) but not found any way to do a partial accordion (i.e. only apply it to part of a list). I have the structure: <ul id="menu"> <li><a href="/">Home</a></li> <li><strong>Header 1</strong><ul> <li>Sub 1.1</li> <li>Sub 1.2</li> <li>Sub 1.3</li> </ul></li> <li>No sub items here</li> <li>Or here</li> <li><strong>Header 2</strong><ul> <li>Sub 2.1</li> <li>Sub 2.2</li> <li>Sub 2.3</li> </ul></li>
[jQuery] Using jQuery on an AJAX called page
I have a question on using jQuery in a page that I call using AJAX. I am using Klaus Hartl's "tabs" plug-in and using its AJAX capability. My problem is this. Clicking on a tab gives me a form that I have wrapped in a div tag. That form needs to use jQuery's form plug-in and other functions I've written that were initialized when the main page was rendered. How do I get the main page to recognize the new DOM elements that were injected by the AJAX call? I would like to use the jQuery form plug-in
[jQuery] Internet Explorer and height()
I need some help with a problem with a div and getting its height. I am wanting to design a layout that will work across across different browser window sizes, so I want to make my main div into which my AJAX content is injected defined by percentage widths and heights. For example, <div id="foo" style="position: relative; overflow: hidden; width: 70%;" height: 70%;"></div> As jQuery only really works with pixels, I need to find the pixel width and height of this div with the width () and height
[jQuery] ContextMenu plugin - right click menu
ContextMenu plugin - right click menu Well since I did not see any contact info on the page, I will just post here. I like this plugin but at least one bug and at least one suggestion. Referring to the plugin found here: http://www.trendskitchens.co.nz/jquery/contextmenu/ 1) If you use jquery with no conflict like I do, you get an error which is caused by the following code at the end of the js include file: $(function() { $('div.contextMenu').hide(); }); I use $t for my query calls
[jQuery] min max in array
Hi there! not really a jquery question this maybe but hopefully someone will answer it anyway... I've got an array with different productprices. I'd like to get the highest and lowest price out of this array. What's the best way to do this? /J
[jQuery] Am I missing something dumb?
I am a newbie (and very much a convert) to JQuery but have spent all afternoon bashing my head against a brick wall with this one. I want to show hide (or in the example, change the class) of a single element in an array of DIV's). Whatever I do, I can only reference the first one, and the others seem to be ignored (even though they appear to resolve to objects). I have narrowed my code down into a near little example. I am using version 1.1.3.1 Cheers in advance. JJ <SCRIPT language=javascript src="jquery.js"></SCRIPT>
[jQuery] SITE SUBMISSIONS: doublerebel.com, villaappiaapts.com
It is my honor to announce the launch of Double Rebel (http:// www.doublerebel.com), my personal design studio. jQuery has allowed me to design my cross-browser web presence in record time. It is still a bit light on detail but my perfectionism will be constantly improving and expanding the site. Hand-coded in Komodo Edit with the jQuery extension, [ DoubleRebel.com Features: ] AJAX with simple backend PHP degradation (my design) JSLint validated JavaScript Validated XHTML transitional code Validated
[jQuery] [NEWS] jQuery in 15 Minutes Slideshow on Ajaxian
Ajaxian has a post describing Simon Willison's slideshare presentation "jQuery in 15 minutes". The preso gives a nice view of some of jQuery's features and is a good intro for anyone wanting to know more about jQuery. http://ajaxian.com/archives/jquery-in-15-minutes
[jQuery] Dimensions plugin, offset is offset
[had trouble posting this on the jQuery plugins discussions list] Been using the dimensions plugin recently and can't get the offset to return the same value on all browsers, IE7 mainly is different from FF2 (opera 9 is same as FF2, but FF3(alpha) is the same as IE7) can't test on IE6. The same problem shows up on the developers website. http://brandonaaron.net/docs/dimensions/#sample-4 If I click run in the different browser I get different results. Need the pixels to be correct. Some help please.
[jQuery] Please fix TreeView bassistance - Please DEV to not stable plugins
Hi Folks TreeView is amazing plugin from <a href="http://bassistance.de/jquery-plugins/jquery-plugin-treeview/">http://bassistance.de/jquery-plugins/jquery-plugin-treeview/</a> But unfortunately just work on FF Please Jörn Zaefferer and Myles Angell do you have a date to fix Treeview? to work with ie6 and ie7? Please John Resig ask to plugin providers make plugins to work with all browsers (or FF and IE at least) if no please post JQuery.NamePlugin(DEV).js or something like this. DEV to Not Stable.
[jQuery] Image loaded
Hi, I have some thumbnails and when clicked they will load a larger image on the same page based on the thumbnails "href" value. Heres the code I'm using to do this. $('a').click(function(){ var selected = $(this).attr("href"); $('.full_img').attr("src", selected); return false; }); What I want to know is, is there a way to display some text saying "Loading..." until new image is loaded. Here's the site so far. Any help would be awesome. b0bd0gz -- View this message
[jQuery] Image loaded
Hi, I have some thumbnails and when clicked they will load a larger image on the same page based on the thumbnails "href" value. Heres the code I'm using to do this. $('a').click(function(){ var selected = $(this).attr("href"); $('.full_img').attr("src", selected); return false; }); What I want to know is, is there a way to display some text saying "Loading..." until new image is loaded. Here's the site so far. Any help would be awesome. b0bd0gz -- View this message
[jQuery] Translate a website using XML file : how to parse xml with Jquery ?
Hello, I would like to use Jquery to parse an xml file. For the moment I use the following javascript code which works with IE, FF and Opera but NOT with Safari (Mac). Jquery is compatible with Safari, so I would like to do the same thing with this librairy but I don't know how to get the "tagname" in a xml file. With the following jquery code, I can get the contains of a tag, but it's not the tagname : var IpAddress = $("IpAddress", xml).text(); $("div#IpAddress").html(IpAddress); Anyone can help
[jQuery] tr[position() mod 3 = 0]
What would be the jQuery way of doing tr[position() mod 3 = 0] ? Thank you!
[jQuery] tabs + jqmodal = bad things in IE6
Hey folks, So I'm trying to combine the excellent jQuery tabs (www.stilbuero.de/ jquery/tabs/) with jqModal (http://dev.iceburg.net/jquery/jqModal/) and am having a bit of trouble in IE6. Basically, you click a button, jqModal pops up with some tabs. Easy, you'd think, but then you get this IE6 bug: "Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept focus." Since the jqModal window is hidden through CSS by default (before you click) this is obviously
[jQuery] input's form with "[ ]" in its name
Hi everybody. At first I hope you will excuse my bad english. I must use a form with some inputs which have "[ ]" in their name to be able to record some values in an array. But when I use this sample code, checkbox are not returned : <input name="try[]" type="checkbox" value="" /> $("input:checkbox").each(function() {... }); Thanks a lot for your help... niKo
[jQuery] Thickbox - why isn't the window centered?
<!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.16481" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=245250819-06082007><FONT face=Arial size=2>Okay...</FONT></SPAN><SPAN class=245250819-06082007><FONT face=Arial size=2>as a secondary post about my thickbox auto-select.</FONT></SPAN></DIV> <DIV><SPAN class=245250819-06082007><FONT face=Arial size=2></FONT></SPAN> </DIV>
[jQuery] use of this in jQuery selectors
Hi All Can someone clarify the use of the JavaScript keyword this in a jQuery context? I find it strange that the following code doesn't work $(this + '.requiredField') but this does $(this.id + '.requiredField') even when the object calling the code does not have an id attribute! Is there a way to mix the very handy this keyword with the sensational ability of jQuery to get an array of objects with blah class name ?
[jQuery] Slightly OT: overview of HTML5 elements
i thought this might interest some of you: http://www.ibm.com/developerworks/library/x-html5/?ca=dgr-lnxw01NewHTML
[jQuery] Need JQuery Interface Expert for Fun Project - Contract or Employee
Apologies in advance for posting this on the general discussion, there is no jobs board! We are a newly funded startup that is building some really cool stuff with JQuery, including a lightweight, drag-and-drop HTML builder and visual dataflows similar to Yahoo! Pipes. We are looking for a developer proficient in JQuery who knows the draggables and resizables plugins and canvas. Please send your location, rates, and some pointers to your work to peter@yared.com. Thanks! Peter Yared, wdgtbldr.com
[jQuery] [SITE SUBMISSION] http://www.hotswap.com/
Came across this site today: <a href="http://www.hotswap.com/">http://www.hotswap.com/</a> Looks to be using: <ol><li><span class="sourceRowText">Tooltip </span></li><li><span class="sourceRowText">blockUI </span> </li><li><span class="sourceRowText">bgIframe</span></li><li><span class="sourceRowText">Autocomplete </span></li><li><span class="sourceRowText">deminsions </span></li></ol> -- Benjamin Sterling <a href="http://www.KenzoMedia.com"> http://www.KenzoMedia.com</a> <a href="http://www.KenzoHosting.com">http://www.KenzoHosting.com</a>
[jQuery] Slide Right
Is there a plugin that slides divs to the right?
[jQuery] Query String Object
So recently, I needed a quick easy way to both access query string parameters as an object and to output that object as a query string. I found a meta-plugin that Joern had written a while back for parsing into an object and I decided to expand on that. The two key features I added were a 'set' method for adding new things to the object and adding a toString method so that when outputting in the context of a string the object would, by default, convert to the proper querystring representation. The
[jQuery] ANNOUNCE: Truncate v.2.2 plugin for jQuery released
Hi All, I am happy to announce that I have updated this jQuery plugin after I received quite a few requests for a very useful feature. The plugin now supports the ability to reveal the text that has been truncated, as well as the ability to click and re-truncate. The JavaScript is still 1KB, which really speaks to jQuery's motto, which is "write less. do more." I could not agree more. http://www.reindel.com/truncate Thank you everyone for taking the time to offer feedback. Brian
[jQuery] jquery+XML
<div>Hi!</div> <div> </div> <div>I have a func to read a XML file to load a image.</div> <div>Well. At the first time it works fine, but, when I reload the page, the script don't load the image, and don't return a error.</div> <div> </div> <div>Here the code:</div><font size="1"> document.myImage.onload = function(){ $("#img").fadeIn(); $("#ajax-loader").css("display","block") //image gif to make a loader } document.myImage.onerror = function(){ alert("erro"); }</font> <div>If someone can help me,
[jQuery] Detecting AJAX calls - Controlling Ajax Injection Vulnerabilities
I have a generic security question related to AJAX: Are there any established technique, method or recommendation on how a server can distinquish a AJAX call versus a LINK call vs a manual ADDRESS BAR call? Is the Http request header Referrer, one method to consider? Now that we are doing more AJAX calls, we see that we need to make sure we have control over how unrestricted AJAX calls are done. I think we already concluded that we will restrict any AJAX calll to our web services to a POST only.
[jQuery] Ajax Call and Javascript In Result Not Working
Why isn't the Javscript contained in an HTML file executed in IE or Safari when I call: $.get("/mobile/includes/shc/p2.php", function(data) {$("#p2Div").html(data);}); Using the current version of jquery 1.1.3.1 Thanks, Michael
[jQuery] IE bug or rookie mistake?
Hi, I am having trouble getting events to trigger on a select/option box in IE. Let me preface the link with a disclaimer: I don't plan on using the jquery header/footer, I just wanted a temp fix. http://epistemicdev.info/studgov/ The problem is located when you click on the "Office Hours" tab on the right hand side. Upon clicking an option in the second select ("view a chair's hours"), it should alert the user "yo". This was an ajax load call to load the hours, but I've sinced replaced it with this
[jQuery] conflict betwen thickbox / dimension / flash ?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"> <META content="MSHTML 6.00.6000.16481" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=437563412-09082007><FONT face=Arial size=2>hello!</FONT></SPAN></DIV> <DIV><SPAN class=437563412-09082007><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=437563412-09082007><FONT face=Arial size=2>i'm tracking down a bug but i 'm puzzled on the error message:</FONT></SPAN></DIV>
[jQuery] Optimize WINDOWS XP
Learn how to optimize your Windows XP with powerful tips and tricks <a href="http://windowsxpsp2pro.blogspot.com">http://windowsxpsp2pro.blogspot.com</a>
[jQuery] Opera 9 bug
I want to have a horizontal scrolling list of products so that a user can compare them side by side. I produced something that works, but discovered an extremely disconcerting problem that occured in Opera 9.x. Here is a simplified test case: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/ TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Grid Demo</title> <!--[if ie]><script
[jQuery] annoying newbie
I have read through the site, and fear I am asking in the wrong place. If I am, please accept my sincear apologies. I use the modal pop up in many situations - it is fantastic! I am forever indebted to the skills of the programmers, your skills make me look clever! I am trying to have the pop-up do something (upload an image in this case) then when the image loads, pass the file name to a text box in the form on the parent window. With the onload command I have been able to make the window close
[jQuery] ANNOUNCE: jQuery.YAV v1.0.1 plugin for more complex form validations
I just updated the plugin for integrate YAV form validation with jQuery. Version 1.0.1 repair a little bug with IE. http://jquery.com/plugins/project/jquery_yav AJAX Magazine: "The solution took the best of jQuery Validation plugin <http://bassistance.de/jquery-plugins/jquery-plugin-validation/> and YAV <http://yav.sourceforge.net/>, in addition to the flexibility of creating custom validation rules.[...]" http://ajax.phpmagazine.net/2007/08/jqueryyav_easy_clientside_web.html -- Best Regards, José
Next Page