[jQuery] Re-initialize Imagebox after AJAX Call
I am using AJAX calls to update content, some of this content uses imagebox I am having difficulties getting the image box events to apply to content that has been updated. I have a function that is called after the update has been made, with this code to initialise the imagebox events $.ImageBox.init( { loaderSRC: sharkOptions.page.base + 'css/images/imagebox/loading.gif', closeHTML: '<img src="' + sharkOptions.page.base
[jQuery] $.show() improvement
Hi, the jquery function show() is at the moment making objects visible by running elm.style.display = 'block'; This works just fine for all block elements (div, etc.) but causes some problems when running on inline elements like links or other elements like table-cells. I think it'd be better to do this: elm.style.display = get_type(elm); function get_type(elm) { obj = document.createElement(elm.tagName); $('body').append(obj); type = $.curCSS(obj, 'display'); $(obj).remove(); return type; } This
[jQuery] jqModal: How to trigger on load?
Hi there, is there a simple way to trigger a jqModal "window" without a trigger or use the $(document).ready() as a trigger? I would like to open it whenever the home page is loaded (well, with some cookie thingys so it only appears for the first load)... but just putting it into $(document).ready() without the trigger parameter doesnt work... Greets, Arne http://www.arnekolja.com _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] jqModal: Defining a custom event before closing the window?
Thanks Chris, This sounds like a winning idea. I'm still new to JQuery and its plug-ins and syntax, but if the ID of my save button is "saveButton", how would I invoke '.trigger("#cancelButton")'? Would it be ... <input type="button" id="saveButton" value="Save" onclick="doStuff(); .trigger('#cancelButton');"> ? - Dave
[jQuery] Any idea on how to replace select with div
Hi, I am wondering did anyone ever tried to create some alternative for <select><option> list. I like using select-option as it provides the ability to use keystrokes to change selection. However, I can't change the font color or add new icons infront of the test. Hence, I was wondering to replace each line of text with div and write an javascript that implement keystroke behaviour...But I am not a javascript expert... Can some one give me an idea...here what I am planning to do Original <select>
[jQuery] Rounded corners question
I was checking out the rounded corners jquery page: http://methvin.com/jquery/jq-corner-demo.html . I wanted to create a rounded corners DIV in which the rounded border color is black and the rest of the cell is white. On the page above, the border is the same color as the background. How would one work the above so that you have a different color border? If the above can't do it, do you know a jquery plug-in that can? Thanks, - Dave _______________________________________________ jQuery mailing
[jQuery] Does JavaScript Packer work with Jquery
Hi everyone, has anyone used The JavaScript Compressor to compress the jquery file? http://joliclic.free.fr/php/javascript-packer/en/ Is it good? Thanks, Gaston _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Possibly interesting: PQuery
Hi list, Came across this today via my jQuery feeds: http://www.ngcoders.com/php/pquery-php-and-jquery/ From the website: "PQuery is a set of helper classes for JQuery JavaScript library.This library allows you to easily integrate AJAX , Effects and other JQuery functionality into your PHP scripts.IT has a small foot print and is compatible with PHP4 and PHP5." Enjoy, Regards, Tane Piper Work: http://www.nohalfmeasures.com Personal: http://digitalspaghetti.me.uk --------------------------------------------------------------------
[jQuery] jqModal: Defining a custom event before closing the window?
Rock on! Works perfectly. Thanks so much, -
[jQuery] Handling you javascript files
Hi there. I'm working on a site that will be using alot of ajax for edit-in-place, aswell as alot of other javascript. The thing is that there is practicly no javascript for regular users, compared to administrators. So I figured that in the top of my indexfile where all the scripts are I'd do something like this: <?php if ($user->getRights('news') echo '<script src="newsScripts.js" type="text/javascript></script>'; ?> for every page that needs javascript. The thing is that for this to work properly
[jQuery] jqModal: Defining a custom event before closing the window?
Hi, I'm trying to create a modal dialog using http://dev.iceburg.net/jquery/jqModal/ where I want to have two buttons, "Save" and 'Cancel". Clicking "Save" should perform some action, and then close the window. However, if I define the "onclick" handler for the "Save" button, the window no longer closes. How can I execute the functions of my "Save" and then close the modal dialog window? Thanks, - Dave _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Pending Release: jAssistant, a pop-out, tabbed, dialog window for jQuery
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD><TITLE></TITLE> <META http-equiv=Content-Type content="text/html; charset=us-ascii"> <META content="MSHTML 6.00.5730.11" name=GENERATOR></HEAD> <BODY> <P><FONT size=2>hi liquid, nice, really nice!<BR><BR>i spend the last 30 minutes to play around with jAssistant and figured out some issues and another 30 minutes to write this down. hope it supports you to fix things...<BR><BR>1.) in FF 2.0, browsing your demo site: if i drag
[jQuery] Miniscule (<1k) Drag'n'Resize for jqModal via jqDnR
I have written a small Drag + Resize plugin to go along with jqModals minimalistic (lightweight) theme. It supports translucency, opacity preservation, handles, dragging, and south-east resizing. The jqDnR plugin page is @ http://dev.iceburg.net/jquery/jqDnR/ If you require more advanced resizing, jqModal can be coupled just as easily with iResizables from jQuery Interface Elements (http://interface.eyecon.ro/). I plan on adding minimal height/width constraints to jqDnR if it proves popular enough.
[jQuery] jqModal and closing
hey, I am working with the jqModal and I am trying to set a button in the frame to close it. This is what I got: $('.jqmWindow').jqm({ trigger: elem, ajax: $(elem).attr('href'), overlayColor: '#fff', overlay: 30 }, function(h){ $('#cancel_bt').click(function(){ $(this).jqmClose();}); h.w.show(); }, function(h){ h.w.jqmClose(); }); The button is set up like so: <button id="cancel_bt">cancel</button>
[jQuery] Sortable Multi-Column?
Anyone know of a plugin that allows for multi-column sorting? - essentially the same logic as a multi-column "ORDER BY" statement? _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Binding a submit function after ajax
<html> <body> Hi folks, <tt>I'm having difficulty getting the submit of a form, loaded into the page from an AJAX call, being bound to a function. If my description doesn't make sense, hopefully the following code will show what I'm </tt>on about: <tt>function getSS(ej) { $.ajax({ type: 'GET', url: "scripts/ajax_ramosus_editor.asp?id=22d&showID=" + ej + "&q=" + new Date().getTime(), dataType: "html", success: function(html){ $("#advMsg3").html(html).show();
[jQuery] animate only work at the first time?
<div id="test" style="width: 200px; height: 200px; background-color: blue;"> test </div> <a href="#" onclick='$("#test").animate( {opacity : 0} );'>hide</a> <a href="#" onclick='$("#test").animate( {opacity : 100} );'>show</a> only the first link show the correct animation....second link will failed if you click the first link first. it can show up, but not an animation anyway.... _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Using jQuery and Smarty
All you should have to do is set a var in your include statement. {include file="header.tpl" $jqueryWhatever=1} And then in your header, use: {if isset($jqueryWhatever)} <script> {/if} Then you can call each individual script on a per template basis. -Marshall -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of Chris Scott Sent: Wednesday, February 14, 2007 8:55 AM To: jQuery Discussion. Subject: Re: [jQuery] Using jQuery and Smarty Mike Alsup
[jQuery] Using jQuery and Smarty
I'm still a newbie to jQuery so until now I've been using standard HTML pages to try out new code. Now, I need to integrate some jQuery into a site that uses Smarty templates. I'd appreciate any suggestions on how people are using jQuery and Smarty. My main sticking point right now is where/how to put the jQuery code for the page. Sticking it in the template file would mean putting the script block outside the head which I don't really want. To keep it in the PHP file, I think I'd need to set it
jQuery Nightly Builds
This is a re-post of a blog post written by Paul McLanahan: http://jquery.com/blog/2007/02/13/jquery-nightly-builds/ Hey Everyone - After much wailing and gnashing of teeth, we now have automated nightly builds of jQuery ready for mass consumption. These builds came about due to we community members who would like to experiment with the most recent features of jQuery, on our projects, but who for whatever reason, don't have access to the subversion repository. In any case, here are the gory details:
[jQuery] OT - Ajax and destructive links
So I'm reading John's new book "Pro JavaScript Techniques" and came across page 130 in the book about Google's Accelerator deleting a bunch of content on people's sites because they used normal links for editing and deleting content. Does this apply to links that use Ajax to delete something, or a link like href="url.php?delete=1"? I feel kind of stupid asking this :D -- View this message in context: http://www.nabble.com/OT---Ajax-and-destructive-links-tf3228357.html#a8968858 Sent from the JQuery
[jQuery] watching events in iframes
There shouldn't be a problem with this as long as both the parent document and the iframe are showing pages from the same domain. When you bind your events, when you pass in your function/functor/function pointer/etc have the internal code doe something like this: -function() { parent.someFunctionCallThatIsOnTheParentWindow( statusInformationObject ); } i.e. In your IFRAME: - <script type="text/javascript"> - var statusObject = {success:true,filename:"theNameUpdated.txt"}; - - $(document).ready(
[jQuery] watching events in iframes
Yes, I should just try this...or...I should search this mail list. I've searched the list and didn't find what I was looking for though. Am I able, with JQuery, to watch events in an iFrame? Per the usual, I'm trying to build a file uploader that doesn't refresh the entire page. Meaning, that after the files have been uploaded and the iframe returns (with some kind of a trigger for JQuery if need be), I want a div on the parent page to go into action and update the info. Logically, I'm not sure this
[jQuery] (super) newbie IE question
Perfect thanks Jake!! All works fine now :¬) -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of Jake McGraw Sent: 14 February 2007 14:41 To: jQuery Discussion. Subject: Re: [jQuery] (super) newbie IE question Toby, You can search the list here: http://www.nabble.com/JQuery-f15494.html and I don't believe you need a semicolon at the end of each css assignment. - jake
[jQuery] (super) newbie IE question
<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=iso-8859-1"> <meta name=Generator content="Microsoft Word 11 (filtered medium)"> <style> <!-- /* Font Definitions */ @font-face {font-family:Verdana; panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:12.0pt;
[jQuery] Setting an image caption width
I've got a number of pictures with captions that will be floated right in the main body text. The HTML looks like this: <div class="image"> <img src="myimage.jpg" width="250" height="350" alt="Image description"> A caption for the image </div> Because the images will vary in width, I don't want to hard-code the width into the stylesheet. But I don't want the caption ever to be wider than the image. So I tried the following: $('div.image p').width( $(this).prev().width() ); In theory, this should
[jQuery] Interface autocompleter - additional ajax call parameters
Looking at the code, the ajax call passes only one parameter to the server - that of the field which has the autocompleter enabled. I can add multiple parameters to the "url", but in this case the value of the autocomplete field doesn't get passed. Is there a way to add extra parameters dynamically to the url? Thanks, Lincoln. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Closing a tickbox from within an iframe
Marc, No suggestion here, but I'd love to see a tutorial on how you've implemented this if possible... when you get it working. It sounds like something the jquery community could use. -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of mmch Sent: Tuesday, February 13, 2007 8:43 AM To: discuss@jquery.com Subject: [jQuery] Closing a tickbox from within an iframe Is it possible to be able to close an iframe from within itself? I am using an iframe
[jQuery] jQuery Design Decisions? Comparison to MooTools?
I've been working with JS since it was created, and I've written a lot of my own libs and utilities. I'm now taking a serious look at existing frameworks simply because the effort of writing, debugging, and documenting my own code is too time consuming. Of the more mature and robust frameworks available, I think jQuery and MooTools offer the kind of approach that fits well with my thinking. There are differences between the two, but they are very similar in many respects. I'm leaning towards standardizing
[jQuery] populate/generate selectbox on the fly?
Hello there! I've already searched for a plugin but I'm afraid that nobody has faced this challenge before. :-( I have a lot of database entries and I want to make them selectable like so: The first selectbox shows all available categories. This doesn't require jQuery - it's good old PHP. ;-) When I select Category A from that selectbox, jQuery should now generate a new selectbox with the list of states in which the companies in the selected category are. When I select a state it should generate
[jQuery] How to expand the height of a DIV
seems this is a basic effect which didn't cover in the jquery effect methods? thx _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] bind to click in <a> does not work in IE6
Hello ajaxers, I wrote a simple jQuery plugin for form validations. It makes a query server side and uses a placeholder to show the results. After that the user can click in a link choosing the value, assigning it to a input element and erasing the placeholder. For example I have a input hidden with the city code, another input text with the city name. When the use click a button, the plugin look at the text in the city name input (by callback) and make a query in the server showing the list of cities.
[jQuery] How do I get the XML of an ajax request?
Hi all, How do I get the XML response of an ajax request? I want to put the XML text into a textarea and can do find this documented. $.get("/rgeo/", { x: document.rgeo.x.value, y: document.rgeo.y.value }, function(data){ console.log(data); $("textarea#response")[0].value = data; } ); My textarea ends up with the string "[object XMLDocument]" I also tried: $.ajax({ url: "/rgeo/", dataType: "xml", data: { x: document.rgeo.x.value, y: document.rgeo.y.value }, success: function(data){ console.log(data);
[jQuery] [Fwd: Intel Web 2.0 Technology Development Kit (TDK)]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body bgcolor="#ffffff" text="#000000"> Noticed this story on Ajaxian today! <a href="http://ajaxian.com/archives/intel-web-20-technology-development-kit-tdk">http://ajaxian.com/archives/intel-web-20-technology-development-kit-tdk</a> I haven't had a chance to look at it yet myself, but looks like it might be interesting for developing apps, especially with the offline capabilities coming up in Firefox 3, I could
[jQuery] Interface Imagebox with Dynamic image lists problem
Hi All, I'm using Interface (1.2) with jQuery (1.1.1) in a little gallery application (localhost based at the moment!). My problem seems to be that as I load a new gallery (Ajax) of images (with all the required 'rel' attributes etc) the Imagebox works perfectly for two or three galleries then starts showing (and animating) just a white box and the Imagebox 'add-on' section (with the close icon, etc). After it does this all imagebox bits are the same - no ability to go forward or back through images
[jQuery] jquery graphics and comet?
Is anyone working on jquery plugins for graphics and comet functionality? Dojo, prototype and even Mochikit have been coming out with graphics, charts on one hand and 'push' ajax or comet on the other. I hope some of our own gurus are working on bringing us these goodies as well :) -- View this message in context: http://www.nabble.com/jquery-graphics-and-comet--tf3211186.html#a8917653 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery
[jQuery] .replace(href)
Hi, I'm trying to covert some links from pico search on a site into local links. I tried $(".prevnextbutton").each(function () { $(this).attr("href").replace("<a href="http://www.picosearch.com/cgi-bin/ts.pl?"> http://www.picosearch.com/cgi-bin/ts.pl?</a>","/local/path") }); I get this error: <span class="objectBox objectBox-errorMessage hasBreakSwitch">$(this).attr("href") has no properties</span> and then I tried: $(".prevnextbutton").each(function () { link = $(this).attr("href"); link
[jQuery] wrapping or cloning problem
Hi All. I want to accordion an existing content format, and I think that I need to insert a wrapper element. First I would love a sanity check on my general approach then maybe someone can critique the manipulation I'm trying. Here's my content: <div class="accordion"> <h3>heading</h3> <arbitrary content/> </div> I can't change the content and I need the heading to be used as the clickable bar. The approach I want to take (on a high level) is: - put a div around everything after the h3 in the dives
[jQuery] left to right animation
<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] interface autocomplete wont work in IE?
I have been playing with the autocomplete feature of the interface plugin and i have it working nicely in firefox but for some reason it doesnt work in IE. how can i get it to work in IE? see my site here: http://bdee.no-ip.com:9000/asp/index.asp http://bdee.no-ip.com:9000/asp/index.asp and see my previous post about this herE: http://www.nabble.com/interface-plugin-autocomplete-always-starts-with-a-full-query-tf3202858.html#a8911751 http://www.nabble.com/interface-plugin-autocomplete-always-starts-with-a-full-query-tf3202858.html#a8911751
Next Page