[jQuery] Object architecture problem.
Hi everybody, ok, I'm in a big trouble right now. Let me try to explain my problem :) I'm trying to create a simple photo editing system. I need to define a DIV as the canvas, then to have many methods applicables to this object. My first reflex was to create a jQuery extension, something like this (just to give the idea): jQuery.Photo = { create: function(settings){ .... }), crop: function(...){ .... } }; jQuery.fn.extend( { Photo: jQuery.Photo.create, crop: jQuery.Photo.crop }); Very
[jQuery] Img Src replacement
<span style="font-family: trebuchet ms,sans-serif;">I have a nav that I do not control the HTML Source.</span><br style="font-family: trebuchet ms,sans-serif;"><br style="font-family: trebuchet ms,sans-serif;"><span style="font-family: courier new,monospace;"> <div class="nav"></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <a href="foo.htm"><img src="foo.gif" /></a> </span><br style="font-family: courier new,monospace;"><span style="font-family:
[jQuery] dimensions plugin error
I am getting this follow error and not sure what it means [Exception... "'Dimensions: jQuery collection is empty' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no] -- View this message in context: http://www.nabble.com/dimensions-plugin-error-tp14301281s27240p14301281.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] jqchart
Hello, I'm using jqchart, and am finding it very nice. I'm wondering if there is a way to have y values display on both sides of the chart so if you have a chart with 2 sets of values you could have one side show 1 - 100 and the other side show 200 - 500 for example.
[jQuery] pushStack documentation
A few of the recent posts have mentioned using jQuery.pushStack to turn an array into a jQuery object and allow the use of end(). Is there any official documentation for it? I can figure out how to use it from the source code, but to me if it's not documented then it's not supported and may disappear in future releases. I hate to take that chance. Can one of the jQuery team tell me if it's part of the official jQuery interface and if so, add it to the Internals documentation? Danny
[jQuery] intent of $('selector').title() call
John's got an example of chaining in his book, "Pro JavaScript Techniques", that isn't working for me. More importantly, I don't understand what the code is intending to do, so I can make an attempt to fix it. The code in general is adding a help cursor and a red star to a field in a form to indicate that the field is required. The chain looks something like this: $('input.required') .prev('label') .css('cursor','help') .title(errMsg.required) .append('<span class="required">*</span>'); I've substituted
[jQuery] How to toggle "display" value?
Hi, Apparently, the ".toggle" method doesn't change the "display" value of an element. I want to toggle the "display" of a table row on and off. Here is my Jquery: $(document).ready( function () { $('input[@type="radio"]').click( function() { $('#giftMsg').toggle(); }); } ) and here is my HTML: <tr id="giftMsg" style="display:block"> <td> <table align="center" class="orderField" cellpadding="0" cellspacing="0" border="0"> <tr><td>Add
[jQuery] jqModal iframe window content
hi all! i was wondering if anyone has achieved to use jqModal to actually display content in an iframe (instead of doing an ajax call). On Brice's page, he says "Inline or remote (ajax/iframe) Window Content." has an available feature, but i haven't managed to do so. I thought using an iframe as window container would do the trick but apparently not... Anyone knows more about it ? thank you, Alexandre -- View this message in context: http://www.nabble.com/jqModal-iframe-window-content-tp14299200s27240p14299200.html
[jQuery] Using jQuery to track advert clicks
Hi, Is it possible to use jQuery to track advert clicks? I have adverts that appear on certain pages of my site. Whenever someone clicks on an advert, I would like to record this as a new entry in a database table (tblAdvertClicks). I know I could pass the visitor to a processing page then forward them on to the advert destination, but I want the link to do directly from my site to the advertisers - without a 3rd page being involved (this is for SEO purposes in case anyone is interested). Someone
[jQuery] $.get and $.ajaxSetup
$.get does not seem to comply to the defaults set with $.ajaxSetup. Is this a bug or a feature? Alternatively, I would like to have customized $.ajax calls ala $.getJSON. For example, something like $.getJSONPwithBasicAuth(url, data, callback, username, password) and have datatype default to 'jsonp' and request headers automagically setup for basic auth. How would I go about defining my own customized $.get ajax functions? Thanx in advance for your precious help! Dado
[jQuery] plugin to reorder children elements of selected elements
I needed to randomly reorder the <li>'s in a <ul> each time the page loaded. I couldn't find anything to do this that would actually show all the elements at once -- everything I found was slideshow-related -- so I wrote a little plugin: http://blog.rebeccamurphey.com/2007/12/11/jquery-plugin-randomly-reorder-children-elements/ In my particular case today, I needed it to randomly reorder a list of case studies, but I can imagine other uses as well. Curious for any thoughts/suggestions for improvement.
[jQuery] dragging elements out of an area
Hi group, is there a way to detect if a draggable element is outside a given DOM object when released? I have some markers (divs) on a picture that I want to remove when they are dragged off the picture.. I've tried to search the list and on google, but I probably can't come up with the right keywords for it... 'element inside' and similar give me hits about the structure of the DOM, not the visual appearence of the elements. tx, Siemen
[jQuery] jCarousel custom clipping and variable sizing of both list and items - any ideas on howto?
Hi, I'm trying to configure a jcarousel to use in a navigation menu system. - The width of the div containing the list is 100% and before the implementation of the carousel, overflow:hidden would nicely hide the li elements that vas overflowing, including the item that was only partially visible. I am trying to use the carousel to be able to set prev/next buttons to show more items if there are overflowing items in the list. The list is generated through a php application depending on user status
[jQuery] Discussion in french
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" 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 12 (filtered medium)"> <style> <!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face
[jQuery] printing ajax-retrieved content
hello friends, i'm in need of a bit of advise here. i use jqmodal to retrieve a contact's details via ajax in a slick looking layout marked up in a definition list. I would like to have a "print this contact" button, but of course, window.print() offers to print the whole page, not only the < dl > element. So i was wondering if it was possible to control the content to print via javascript / jquery... thanks for any advise!
[jQuery] Escape HTML Entities
Hej everyone, i got some problems on html entities within my script. I am kinda building a CMS, but it is for a swedish website, so they use lots and lots of öäë. Now I gather my input fields from the document and post it to a php file like this: ---------------------------------------------------------- $(".createpreview").click(function() { $("#previewform").children().each(function() { $.get("import/createpreview.php", { fieldname: $ (this).attr("name"), text: $(this).attr("value") }); }); } For
[jQuery] [PLUGIN] jQuery Chart
Found this one today on DZone and it's been around for awhile. Surprised I missed it. Very good stuff. jQuery Chart http://www.reach1to1.com/sandbox/jquery/jqchart/ Rey...
[jQuery] So... Dating site using jQuery....
I posted a while back (a couple months or so ago) about the free dating site (LoveDango) I was working on. Well, looks like I have all the most basic features all ready to go. Basically, you can search, send/receive messages, send winks, edit your profile, upload/view photos+captions and a few more small things. My basic rule of thumb was keep it simple, very very simple. I am adding new things every day and starting today it will begin to grow fairly rapidly in terms of feature set. I use jQuery
[jQuery] Superfish problem in FF
I have a problem with Superfish in FF2.0. It seems that all list items are set in line. I have not a clue where this is coming from. In IE everything works oke. Does someone know an answer to this problem? see: vinkbouw.whooozwebmedia.nl for the site.
[jQuery] return function true or false
Just wondering if someone can assist. I need to know how to return the value of a function, IE is it true or false, All help is much appreciated. Thanks
[jQuery] What happened to clueTip?
Karl, Although I can still find some clueTip pages, such as plugins.learningjquery.com/cluetip, I can't seem to find it in the main jQuery plugins page. You're not thinking of canning it are you??? That would be the worst thing ever!!! ;) Dan
[jQuery] jEditable Callback Function
I'm using jEditable within a table that uses tableSorter. Currently, when data within the table is updated, the sorting of the table is off. Calling trigger.("update") fixes that, but I am unable to get the call to function properly at the end of an jeditable request. An example: $(".edit").editable("save.php", { height : "25", width : "110", indicator : "Saving...", tooltip : "Click to edit...", style : "inherit", select : "true" }, function(value, settings){$("table").trigger("update") }); Basically,
[jQuery] jqModal and "onHide" callback
Hi! I have a need to do something everztime jqModal window is closed. Reading documentation revealed that I could use onHide callback. Calling this function works correctly but I need to retrieve id of the element that triggered jqModal in it and I don't know how to do it. I tried: <code> var id=h.t.attr("id"); </code> and <code> $(h.t).attr("id"); </code> but it doesn't work this way. Can someone point me in the right direction, please?
[jQuery] Exception with tablesorter+pager when table is empty
Hi all at jquery.tablesorter.pager.js:149 I have this line $(this).trigger("appendCache"); which causes this to be executed (jquery.tablesorter.js:243) var c = cache, r = c.row, n= c.normalized, totalRows = n.length, checkCell = (n[0].length-1), tableBody = $(table.tBodies[0]), rows = []; if the table is empty this will give me a n[0] has no properties checkCell = (n[0].length-1), since c is empty...I think some check is missing here. Anyone is having this? Cheers Francesco -- View this message in
[jQuery] .click() issue
Hello everyone! Could someone please explain me how could this be?? Works: $(".flag").hide(); Doesn't work (wont alert): $(".flag").click(function (){ alert("hello"); }); WORKS: $(".flag").click(function (){ alert("hello"); }).click(); It seems like the browser just doesn't see the click event! Weird.. Could some one help me please?? Thanks, Leon.
[jQuery] Show/Hide Div with checkbox options providing same results
I'm completely versed in the show/hide options available, but have a problem I haven't been able to figure out. I'm hoping jquery will have the answer. I have 5 checkbox input options, the first two options providing the same show div. For example, <html> <head> <script type="text/javascript"> <!-- function showMe (it, box) { var vis = (box.checked) ? "block" : "none"; document.getElementById(it).style.display = vis; } //--> </script> </head> <body> <form> <input type="checkbox"
[jQuery] Alter Status Message
Hello, I have a redirect page, but would like to change the status bar message to show only the target link, rather than the full URL. So, links that hit the redirect page are formed like so: <a href="http://mydomain.com/redirect.cfm?DURL=http://www.realtarget.com/realpage.htm"> http://mydomain.com/redirect.cfm?DURL=http://www.realtarget.com/realpage.htm</a> What I want to actually show in the status bar is: <a href="http://www.realtarget.com/realpage.htm">http://www.realtarget.com/realpage.htm
[jQuery] jqModal: how to get the attribute of the trigger link?
hi friends! i would like to use the jqModal plugin in an addressbook-like application, where, from the list of contacts, clicking on an icon next to a contact show the full contact information in a jqModal window. the html i have is unobtrusive: <a href="fetch_contact_details.app.php?contact_id=8" title="Click to read all contact data" class="view jqModal"> </a> jqModal gets its parameters like this: $().ready(function() { $('#ex2').jqm({ajax: 'examples/2.html', trigger: 'a.ex2trigger'});
[jQuery] Yet another page I can't get to work with validation! Aaarggghh!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <META NAME="Generator" CONTENT="MS Exchange Server version 08.00.0681.000"> <TITLE>Yet another page I can't get to work with validation! Aaarggghh!</TITLE> </HEAD> <BODY> <!-- Converted from text/rtf format --> <P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas">Does anyone have a clue why this page</FONT></SPAN></P> <P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas">is
[jQuery] Share my trick to Deserialized the response of JQuery Forms
Hi All I am working in Jquery Forms <a href="http://malsup.com/jquery/form/#getting-started">http://malsup.com/jquery/form/#getting-started</a> I would like to share a tip/trick in the your php file create a output like this echo '<div id="' .$id .'" title="' .$title .'" image="' .$thumbs .'"></div>'; to deserialized the response $(document).ready(function() { $('#myForm').ajaxForm({ beforeSubmit: validate, success: function(data) { $('#myid
[jQuery] jquery-ui : accordion .. block height issue
Hi all, I have a problem with the accordion from UI ... If I have elements that grow, the container will not. As the accordion set a fixed height on the container, it cannot grow =/ Here is the patch I use in ui.accordion.js (line 151) : function toggle(toShow, toHide, data, clickedActive, down) { var finished = function(cancel) { running = cancel ? 0 : --running; if ( running ) return; // trigger custom change event container.trigger("change", data);
[jQuery] Bookmark with jQuery
Did anyone successed in making a script that can bookmark a webpage? The script I used worked with IE but I would like the script to work with Firefox and Opera too. Do you have any idea how to do that with jQuery? Thanks L.
[jQuery] OT: Browser history object and the back button
<!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.16544" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=465184416-11122007><FONT face=Arial size=2>I recently implemented a mashup of client and server side detection used to collect information about a user's environment:</FONT></SPAN></DIV> <DIV><SPAN class=465184416-11122007><FONT face=Arial size=2>OS, </FONT></SPAN><SPAN
[jQuery] Add a scrollbar to a navigation menu
When the height of the navigation bar is over the window of web browser .,I want a scrollbar show up in my navigation bar instead of in the web browser . I want to know how ? How can I tell whether the height is over the bottom of the web browser????
[jQuery] The qustion abt the navigation bar
here's the problem: I have a navigation bar in my website.
[jQuery] File download with jQuery.
Hi, Anyone know how to force the browser to treat the data returned by the server in response to $.get( ) as a file, not text or html or xml? I'm using the correct mime-type and know that the file is being returned when I use an href on a link, rather than jQuery. I could stick with that, but I'd like to know if it's possible to use jQuery to return data that is treated as a file eg. jpg, pdf etc. Thanks. LT
[jQuery] Superfish delay problem
Hi everyone! Thanks for this great resource, and thanks to Joel for the Superfish plug-in. It's wonderful! I've seen this problem in another post, but I can't seem to troubleshoot it, and it may just be something I've forgotten. The fade is working very nicely, except for a small jog that I should be able to work out myself, but the delay doesn't seem to want to work. Here's the link to the site I've been trying to implement this on: http://www.sugarmaplemedia.com/discover/index.html Here's my css:
[jQuery] Superfish: Keep a menu open on selected page.
Hi, Instead of navigating to the menu everytime, can I keep a menu option with a child item selected for a particular page, like for tabs? It would be great to have. Many thanks, Ibrahim
[jQuery] Superfish - History/Remote Tab Bookmark
Hi Joel, Is it possible to bookmark (open directly on a particular tab) tabs and sub-tabs too, if possible? Thanks, Ibrahim
[jQuery] cluetip events
hey im trying to do a input's that once they are get mouseover it will open a tooltip with options like edit and stuff (icons) my question is in cluetip how can i hide/show a tip via javascript command instad of the "close " button? and also, is there a flag that i can check is the tooltip is currently shown or not? -- View this message in context: http://www.nabble.com/cluetip-events-tf4785879s27240.html#a13691495 Sent from the jQuery General Discussion mailing list archive at Nabble.com.
Next Page