[jQuery] $().someFunction(); -- The First Pair of Parentheses?
QUESTION: What does the first pair of parentheses indicate in the following statement: $().getBrowserInformation(); BACKGROUND: I have noticed that their presence or absence can make or break JavaScript's acknowledgement of a method's existence on the one hand, but seem entirely unnecessary under other circumstances. Roddy
[jQuery] Binding hrefs in table entries
Hi, I'm quite new to jQuery and have a question. I'm populating a table with rows where some of the columns include links and buttons. For some of these links and buttons I want to run some jQuery stuff before it's redirected (acually, I want to have the result loaded in a div via ajax). In the jQuery function I want to be able to extract the ID of the button or the href target that was clicked. Now, the problem I'm having is that each of the rows in the table will generate a different ID for the buttons (otherwise it's not possible to separate them, right). How will I know in the jQuery function which button was pressed? I would be VERY glad for any help I can get. Please inform me if my explaination of the problem is unclear. Thanks in advance! /Ingo
[jQuery] textarea with line number
Hi all. I am noob in Jquery. Help pls. How to make textarea with line number ? Here is my code: function f1() { var lines = $('#txt').val().split('\n'); var line_number_size = $('#line_number li').size()+1; var max = lines.length; if(max >= line_number_size) { $('' + line_number_size + ' ').appendTo ('ul#line_number'); line_number_size++; } else { $('li:last').remove(); line_number_size--; } } 1 2 3
[jQuery] Minimum amount of checkbox selected validation
Hello, Trying to use jquery to validate that a minimum of 7 check boxes are selected. the code is as follows: $(document).ready(function() { $("form").submit(function() { if (!isCheckedById("AreasOfInterest[]")) { alert ("Please select at least 7 items"); return false; } else { return true; //submit the form } }); function isCheckedById(id) { var checked = $("inp...@id="+id+"]:checked").length; if (checked < 7) { return false; } else { return true; } } }); It works if i set the (checked == 0) and then at least 1 is selected... but when i run it as is... it won't submit even if more than 7 are selected... Is my code wrong?? is the variable checked not an integer?? help!!
[jQuery] Form to HTML Possible
Hello Everyone, I wanted to know if there was a plugin that would allow users to enter form fields and have that input populate table cell information on a separate page. I need this to be flat file based without a server side language like php/.net. I've seen javascript page editors but I need to restrict the input and have it the results formatted in a specific way. Thanks, Zoren
[jQuery] Re: Is any one else experiencing serious slowdowns on their site due to 'waiting for jqueryui.com' ?
Thanks for the note. It's back up. - Richard On Sat, May 2, 2009 at 3:52 PM, hro wrote: > > Same problem here. jqueryui.com is down. > > On May 2, 11:18 am, stasch wrote: > > I was surprised to today to discover that my site was running much > > slower than usual (3 to 4 times slower!). Most of the delay was spent > > with the message 'waiting for jqueryui.com'. This really freaked me > > out. First of all what gives the jquery folks the right to ping their > > site from their code? Second of all, if they're going to do that > > they'd better make sure that the site they are pinging is super fast. > > Can anybody enlighten me as to what is going on here? Better yet, how > > can I remove that code from my jquery library? I can't afford to have > > this kind of performance hit due to uncontrollable 'features' like > > this in my code. And if I'm legally bound to keep that code in the > > library please advise me so that I can go back to Prototype. Totally > > unacceptable! >
[jQuery] jQ Methods Load Order
QUESTION: How does one set the order in which jQuery methods are called? BACKGROUND: Unlike jQ-Impromptu website (see SOURCES below) that launches jQ-Impromptu with mouse clicks, I would like to launch jQ- Impromptu after my page has completely loaded, but before the user can do anything of his own. For the moment, I am unable to make good use of the opacity effect, because jQ-Impromptu is activated before my page has loaded (see SOURCES below). There is also a positioning-quirk in Safari, but this is a topic for another post. CODE: $(document).ready(function() { $('#today').toDate(); $('#clock').JSClock(); $('#duration').timePassed(); $('body').SVG_RoundiesIntializer(); $('body').getBrowserInformation(); // This is the method that I use to call jQ-Impromptu. It is contained in jQ_browserIdentification.js }); SOURCES: jQ Impromptu: http://trentrichardson.com/Impromptu/index.php My WebPage: http://homepage.mac.com/moogoonghwa/Imagine_Prototype/Content/ Roddy
[jQuery] Re: How to select all text in a div except ul
Don't use .text(), you'll get an array-like object of text nodes. Try var text = $('div').contents().filter(function(){return this.nodeType==3;}); console.log(text) On May 2, 6:06 pm, nick wrote: > Thanks for the response. Are you sure thats correct though? > > alert($('div').contents().filter(function(){return > this.nodeType==3;}).text()); > > returns empty.
[jQuery] Re: How to select all text in a div except ul
Thanks for the response. Are you sure thats correct though? alert($('div').contents().filter(function(){return this.nodeType==3;}).text()); returns empty.
[jQuery] Re: >>any error in the code..... please check
You spelled function 'funtion' and the first thing you do is return false, so everything after that is ignored--by js and me :) On May 2, 12:39 am, Amit wrote: > $(document).ready( > funtion(){ > return false; > $("#send").click( > function(){ > $.post("lib/ajax/requests.php", > { > action: "postrecommendmypros", > projectname: {ALL_SEARCH_TXT}, > firstname: {CLIENT_FIRSTNAME}, > lastname: {CLIENT_LASTNAME}, > id: {CLIENT_LASTNAME}, > project_id: {ALL_REQUEST_PID}, > url:{ALL_MY_REQUESTS_REDIRECT}, > id: {EMAIL_UID} > }, > function(data){ > > window.location={ALL_MY_REQUESTS_REDIRECT}; > } > ); > return false; > } > showNotice('Response posted!','Project '+ projectname); > ); > } > ); -- > > Regards, > > > > Amit Kr. Sharma > > > > Mobile: 09780141161 > > > > Profile: http://www.linkedin.com/in/amit2sharma > > > > Email id: amit.mca...@gmail.com > > > > > >
[jQuery] Re: Is any one else experiencing serious slowdowns on their site due to 'waiting for jqueryui.com' ?
Same problem here. jqueryui.com is down. On May 2, 11:18 am, stasch wrote: > I was surprised to today to discover that my site was running much > slower than usual (3 to 4 times slower!). Most of the delay was spent > with the message 'waiting for jqueryui.com'. This really freaked me > out. First of all what gives the jquery folks the right to ping their > site from their code? Second of all, if they're going to do that > they'd better make sure that the site they are pinging is super fast. > Can anybody enlighten me as to what is going on here? Better yet, how > can I remove that code from my jquery library? I can't afford to have > this kind of performance hit due to uncontrollable 'features' like > this in my code. And if I'm legally bound to keep that code in the > library please advise me so that I can go back to Prototype. Totally > unacceptable!
[jQuery] Re: Is any one else experiencing serious slowdowns on their site due to 'waiting for jqueryui.com' ?
Hi Stasch, Be careful before you blame others of wrong deeds... unless you enjoy making a fool of yourself. Make sure you check the issue is not from your side as there is absolutely no such code in jquery, nor in jquery-ui. My guess is that you did some wild copy/pasting from the jquery-ui demos, and didn't actually change the URLS. Another possibility is that one of your plugins calls for jquery right from the server, which is really not a good idea, as you mentionned. Otherwise, as Michael just said, post a link so we can really help. Cheers, a. On Sat, May 2, 2009 at 8:18 PM, stasch wrote: > > I was surprised to today to discover that my site was running much > slower than usual (3 to 4 times slower!). Most of the delay was spent > with the message 'waiting for jqueryui.com'. This really freaked me > out. First of all what gives the jquery folks the right to ping their > site from their code? Second of all, if they're going to do that > they'd better make sure that the site they are pinging is super fast. > Can anybody enlighten me as to what is going on here? Better yet, how > can I remove that code from my jquery library? I can't afford to have > this kind of performance hit due to uncontrollable 'features' like > this in my code. And if I'm legally bound to keep that code in the > library please advise me so that I can go back to Prototype. Totally > unacceptable! >
[jQuery] Re: Is any one else experiencing serious slowdowns on their site due to 'waiting for jqueryui.com' ?
I experienced this, yes. In my case it was the Themeroller Dev tool which was slowing things down. Additionally, I wasn't able to download any themes. I'd say it's probable that the Themeroller and Dev tool are being updated at this time. On May 2, 4:08 pm, "Michael Geary" wrote: > It sounds like you must be loading some JavaScript files directly from > jqueryui.com. Instead of that, you should load the files from your own > server or use Google's copies: > > http://code.google.com/apis/ajaxlibs/ > > If you would post a link to your site, I'm sure someone can give you more > specifics. > > -Mike > > > From: stasch > > > I was surprised to today to discover that my site was running > > much slower than usual (3 to 4 times slower!). Most of the > > delay was spent with the message 'waiting for jqueryui.com'. > > This really freaked me out. First of all what gives the > > jquery folks the right to ping their site from their code? > > Second of all, if they're going to do that they'd better make > > sure that the site they are pinging is super fast. > > Can anybody enlighten me as to what is going on here? Better > > yet, how can I remove that code from my jquery library? I > > can't afford to have this kind of performance hit due to > > uncontrollable 'features' like this in my code. And if I'm > > legally bound to keep that code in the library please advise > > me so that I can go back to Prototype. Totally unacceptable!
[jQuery] Re: Is any one else experiencing serious slowdowns on their site due to 'waiting for jqueryui.com' ?
It sounds like you must be loading some JavaScript files directly from jqueryui.com. Instead of that, you should load the files from your own server or use Google's copies: http://code.google.com/apis/ajaxlibs/ If you would post a link to your site, I'm sure someone can give you more specifics. -Mike > From: stasch > > I was surprised to today to discover that my site was running > much slower than usual (3 to 4 times slower!). Most of the > delay was spent with the message 'waiting for jqueryui.com'. > This really freaked me out. First of all what gives the > jquery folks the right to ping their site from their code? > Second of all, if they're going to do that they'd better make > sure that the site they are pinging is super fast. > Can anybody enlighten me as to what is going on here? Better > yet, how can I remove that code from my jquery library? I > can't afford to have this kind of performance hit due to > uncontrollable 'features' like this in my code. And if I'm > legally bound to keep that code in the library please advise > me so that I can go back to Prototype. Totally unacceptable! >
[jQuery] Re: Incorporating SVG Roundies Via jQuery
On May 1, 3:02 pm, waseem sabjee wrote: > new information > $("body").getBrowserInformation is not a function I discovered the source of this error. I found a space in the file name that includes the getBrowserInformation( ) method. When I removed it the method was found and the alert box appears. Although all of my JavaScript and jQuery now functions without the noConlfict( ) method, it does not function smoothly. This difficulty appears to be caused by the load order, but then what do I know? I am still new to jQuery. Roddy
[jQuery] Is any one else experiencing serious slowdowns on their site due to 'waiting for jqueryui.com' ?
I was surprised to today to discover that my site was running much slower than usual (3 to 4 times slower!). Most of the delay was spent with the message 'waiting for jqueryui.com'. This really freaked me out. First of all what gives the jquery folks the right to ping their site from their code? Second of all, if they're going to do that they'd better make sure that the site they are pinging is super fast. Can anybody enlighten me as to what is going on here? Better yet, how can I remove that code from my jquery library? I can't afford to have this kind of performance hit due to uncontrollable 'features' like this in my code. And if I'm legally bound to keep that code in the library please advise me so that I can go back to Prototype. Totally unacceptable!
[jQuery] Re: listnav, but for tables?
alternatively, there's a plugin i'm working on here: http://bluemoon.reverse.net/~aquaone/tablefilter/ On Sat, May 2, 2009 at 00:46, Tor wrote: > > I'm looking for a plugin like the listnav plugin (demo: > http://www.ihwy.com/Labs/Demos/Current/jquery-listnav-plugin.aspx), > but for tables? > > I'd like to filter / select rows in a table based on the first letter > of one of the rows in the table. The listnav plugin is exactly what > I'm after, but it works on ol/ul only, and I need to use it with > tables. > >
[jQuery] Re: state of the art for corner rounding?
On May 2, 5:21 am, "Richard D. Worth" wrote: > One of the best ones I've seen lately is DD_roundies, by Drew Diller: > http://www.dillerdesign.com/experiment/DD_roundies/ DD Roundies were designed for an IE environment. They do not work well in the Firefox, Opera, and Safari environments. This is the reason that SVG Roundies were developed. My webpage incorporates SVG Roundies into jQuery just fine. View the following webpage in Firefox, Safari, or Opera. http://homepage.mac.com/moogoonghwa/Imagine_Prototype/Content/ You may discover more about SVG Roundies at http://www.highscore.de/SVG_roundies/ Roddy
[jQuery] Re: Disable user input to a div
MorningZ, I'll check out the BlockUI plugin. Jordon, could you explain how to use an overlay on a div? Thank you. On May 2, 1:26 pm, "Jordon Bedwell" wrote: > The easiest way to do that would be to remove it from the DOM, one of the > other easy ways is to just rewrite the link to # and disable the inputs (you > can disable inputs), but the best way in my opinion would be to use an > overlay. > > -Original Message- > From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On > > Behalf Of Dragon-Fly999 > Sent: Saturday, May 02, 2009 11:59 AM > To: jQuery (English) > Subject: [jQuery] Disable user input to a div > > Hi, > > I have a page with a few divs. One of the divs contains several > anchors, text boxes, and list boxes. Under certain error conditions, > I need to disable all the anchors, text boxes, and list boxes inside > that div (but other divs on that page should not be disabled). What > is the easiest way of doing it? Thank you.
[jQuery] Re: Disable user input to a div
The easiest way to do that would be to remove it from the DOM, one of the other easy ways is to just rewrite the link to # and disable the inputs (you can disable inputs), but the best way in my opinion would be to use an overlay. -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Dragon-Fly999 Sent: Saturday, May 02, 2009 11:59 AM To: jQuery (English) Subject: [jQuery] Disable user input to a div Hi, I have a page with a few divs. One of the divs contains several anchors, text boxes, and list boxes. Under certain error conditions, I need to disable all the anchors, text boxes, and list boxes inside that div (but other divs on that page should not be disabled). What is the easiest way of doing it? Thank you.
[jQuery] Re: Disable user input to a div
"easiest" is going to vary from one person to another, but if it was me, i'd use the BlockUI plugin to prevent the user from doing anything further to stuff inside that On May 2, 12:59 pm, Dragon-Fly999 wrote: > Hi, > > I have a page with a few divs. One of the divs contains several > anchors, text boxes, and list boxes. Under certain error conditions, > I need to disable all the anchors, text boxes, and list boxes inside > that div (but other divs on that page should not be disabled). What > is the easiest way of doing it? Thank you.
[jQuery] Disable user input to a div
Hi, I have a page with a few divs. One of the divs contains several anchors, text boxes, and list boxes. Under certain error conditions, I need to disable all the anchors, text boxes, and list boxes inside that div (but other divs on that page should not be disabled). What is the easiest way of doing it? Thank you.
[jQuery] Re: state of the art for corner rounding?
bump. Anyone eval'd the corner plugins recently enough to have an opinion? Thx. Jack Jack Killpatrick wrote: Hi All, I have a half dozen bookmarks for rounded corner plugins, but am wondering if there's a "state of the art" plugin kicking any booty on that these days? What I'd *really* like is to just be able to set -moz border radiuses in CSS and have a plugin magically use those to create rounded corners in IE and Safari (IE mainly... using excanvas or something with it is fine, too). Any advice? For the project I'm working on now I don't need to have lines at the border (ie: no border:1px solid black or anything). Thanks, Jack
[jQuery] Re: listnav, but for tables?
Hi, I wrote the listnav plugin. Can you elaborate a little more on how you'd want it to work? There might be a selector we can tweak to make it do what you want (like use tr instead of li). - Jack Tor wrote: I'm looking for a plugin like the listnav plugin (demo: http://www.ihwy.com/Labs/Demos/Current/jquery-listnav-plugin.aspx), but for tables? I'd like to filter / select rows in a table based on the first letter of one of the rows in the table. The listnav plugin is exactly what I'm after, but it works on ol/ul only, and I need to use it with tables.
[jQuery] Re: Cannot make function run on "load" event
solved! i discovered the each() method, which runs my code beautifully as follows: $('div.expandCollapse').each(function() { $(this).parent().css("height","auto"); var fullHeight = $(this).parent().height(); if (fullHeight == 77) { $(this).hide(); } $(this).parent().css("height","77px"); }); hope this helps other people... On May 2, 5:29 pm, kyleduncan wrote: > UPDATE > > I have found out why this isn't working, but don't know the solution. > > the problem is that this code just runs on the first matching element > (the first div with class "expandCollapse") and then, based on the > height of its parent, applies the rest of my code to ALL instances of > "div.expandCollapse", rather than calculating the height of EACH div > with the correct class, and then applying the necessary action to > each, individually. what should i do?! > > thanks in advance to anybody who can help. > > Kyle > > On May 2, 2:39 pm, kyleduncan wrote: > > > Hi, > > > i use jQuery 1.3 and would like to make the following code run as soon > > as the elements i am targeting have loaded (or as soon as the page has > > finished loading). At the moment, I can only get it to fire on an > > event related to the target (in code below i'm using "hover"). > > > Ihave put this snippet of code inside the document .ready handler, > > which is where I assume i should put it (?): > > > $('div.expandCollapse').hover(function() { > > $(this).parent().css("height","auto"); > > var fullHeight = $(this).parent().height(); > > if (fullHeight == 77) { > > $(this).hide(); > > } > > $(this).parent().css("height","77px"); > > }); > > > What i want to happen though, is for this to fire as soon as all of > > the divs with class "expandCollapse" have finished loading. even if it > > just runs once the page is completely finished loading, that would be > > fine, but i dont know what to use. i tried ".load" to replace ".hover" > > and got nothing. i've also experimented with bind and trigger to no > > avail. > > > Any help would be greatly appreciated! > > > Kyle
[jQuery] Re: POST Redirection
got it installed? Enable it, have it running while viewing the form. Now submit the form and firebug will capture the post URL, will popup inside the firebug window. --- On Sat, 5/2/09, Cryptonit wrote: From: Cryptonit Subject: [jQuery] Re: POST Redirection To: "jQuery (English)" Date: Saturday, May 2, 2009, 9:20 AM Could you please be a little more precise? I've installed firebug, now what? Maybe I also have to be more specific: I don't create a web page, I'm creating a firefox extension. So I can't just debug everything I like... Could you please point me to the exact property I have to look for? On 2 Mai, 02:07, Danny Nolan wrote: > Firebug is your friend > > --- On Fri, 5/1/09, Cryptonit wrote: > > From: Cryptonit > Subject: [jQuery] POST Redirection > To: "jQuery (English)" > Date: Friday, May 1, 2009, 2:22 PM > > Hi Folks! > > Here's my problem: > I want to make a post request to a web service site. This site is > automaticly redirecting me to a file. Now I want to find out the > location of this file. > As far as I can see (please correct me if there are more) there are > two possible solutions: > 1. I somehow disable redirecting (on jQuery) and so I would have the > link to the file in the answer of my call > 2. Or I read the final location after the redirection > > But of course I don't know how to do this... > So I really hope someone can help me! > > Greetz > cryptonit
[jQuery] Re: Cannot make function run on "load" event
UPDATE I have found out why this isn't working, but don't know the solution. the problem is that this code just runs on the first matching element (the first div with class "expandCollapse") and then, based on the height of its parent, applies the rest of my code to ALL instances of "div.expandCollapse", rather than calculating the height of EACH div with the correct class, and then applying the necessary action to each, individually. what should i do?! thanks in advance to anybody who can help. Kyle On May 2, 2:39 pm, kyleduncan wrote: > Hi, > > i use jQuery 1.3 and would like to make the following code run as soon > as the elements i am targeting have loaded (or as soon as the page has > finished loading). At the moment, I can only get it to fire on an > event related to the target (in code below i'm using "hover"). > > Ihave put this snippet of code inside the document .ready handler, > which is where I assume i should put it (?): > > $('div.expandCollapse').hover(function() { > $(this).parent().css("height","auto"); > var fullHeight = $(this).parent().height(); > if (fullHeight == 77) { > $(this).hide(); > } > $(this).parent().css("height","77px"); > }); > > What i want to happen though, is for this to fire as soon as all of > the divs with class "expandCollapse" have finished loading. even if it > just runs once the page is completely finished loading, that would be > fine, but i dont know what to use. i tried ".load" to replace ".hover" > and got nothing. i've also experimented with bind and trigger to no > avail. > > Any help would be greatly appreciated! > > Kyle
[jQuery] Re: ready function mystery
I tried your suggestion and I found that the livequery function binds without being in the ready event. However, on this page, #loginlink binding is inside the ready event. http://highfallsfoodcoop.com And on this page I moved it out of the ready event http://highfallsfoodcoop.com/test.php On the second page I get this error on loading: Error: $("#loginlink").livequery is not a function Source File: http://highfallsfoodcoop.com/test1.js Line: 138 Why am I getting this error when I load the second page? On May 2, 6:28 am, Abrar Arshad wrote: > hi, > what i understood from your explanation is that you expect from > livequery() method not to trigger any event on load event of the page. Well > first of all, livequery() also handles those elements which are not present > initially when the page is loaded for the first time, so that behavior > suggests users not to use it in the ready() event of the document. It works > on the fly. > > you can use it with the form when it is going to be submitted > > $(function(){ > $("#myForm").livequery('submit',function(){ > // do your stuff here > }); > > }) > On Sat, May 2, 2009 at 1:56 AM, rodeored wrote: > > > This page:http://reenie.org/jquery/ > > is linked to 1.js which has this code: > > > $(document).ready(function(){ > > $('#myForm').livequery(function(){ > > alert('why is this happening?'); > > return false; > > }); > > > }); > > > When the page is first loaded, it triggers the alert. It doesn't seem > > like it would because it is in the livequery function. Why does it do > > that?
[jQuery] Cannot make function run on "load" event
Hi, i use jQuery 1.3 and would like to make the following code run as soon as the elements i am targeting have loaded (or as soon as the page has finished loading). At the moment, I can only get it to fire on an event related to the target (in code below i'm using "hover"). Ihave put this snippet of code inside the document .ready handler, which is where I assume i should put it (?): $('div.expandCollapse').hover(function() { $(this).parent().css("height","auto"); var fullHeight = $(this).parent().height(); if (fullHeight == 77) { $(this).hide(); } $(this).parent().css("height","77px"); }); What i want to happen though, is for this to fire as soon as all of the divs with class "expandCollapse" have finished loading. even if it just runs once the page is completely finished loading, that would be fine, but i dont know what to use. i tried ".load" to replace ".hover" and got nothing. i've also experimented with bind and trigger to no avail. Any help would be greatly appreciated! Kyle
[jQuery] Re: Black border on jQuery animations in IE 6-8
i think that happens when the elements being animated have PNG images in them or as backgrounds, that's where i see the ragged black edges you're talking about... i'm not aware of a solution as i guess it's down to IE not natively supporting PNGs. i have a pngfix installed to enable PNG transparency, but that doesn't solve this problem... On May 1, 7:18 pm, palmem29 wrote: > I taught it to myself without even having any true JavaScript > experience and am sure that while functional, many of my > implementations could/should be written completely differently. > > I'm running some animations that look great in everything except for > IE. In IE I'm seeing a thin, ragged black border around some of the > elements that I'm animating. Does anyone know why this would happen?
[jQuery] Re: Nyromodal frame reference
Can anybody please help? On Apr 14, 10:33 pm, Alan Flisch wrote: > Hi, > > I'm using Nyromodal to show some web content that includes page > transitions controlled by Javascript that specifies window.location. The > trouble with this is that it navigates the main browser window rather > than navigating just within the nyromodal frame. > > I'm not sure how to get round this, especially as the Nyromodal frame > seems to have no name, and I'd really appreciate some help. > > Thanks!
[jQuery] Re: POST Redirection
Could you please be a little more precise? I've installed firebug, now what? Maybe I also have to be more specific: I don't create a web page, I'm creating a firefox extension. So I can't just debug everything I like... Could you please point me to the exact property I have to look for? On 2 Mai, 02:07, Danny Nolan wrote: > Firebug is your friend > > --- On Fri, 5/1/09, Cryptonit wrote: > > From: Cryptonit > Subject: [jQuery] POST Redirection > To: "jQuery (English)" > Date: Friday, May 1, 2009, 2:22 PM > > Hi Folks! > > Here's my problem: > I want to make a post request to a web service site. This site is > automaticly redirecting me to a file. Now I want to find out the > location of this file. > As far as I can see (please correct me if there are more) there are > two possible solutions: > 1. I somehow disable redirecting (on jQuery) and so I would have the > link to the file in the answer of my call > 2. Or I read the final location after the redirection > > But of course I don't know how to do this... > So I really hope someone can help me! > > Greetz > cryptonit
[jQuery] Edit in place plugin
Hi all Can u you please tell me , How to do the Edit in place using jquery , Thanks -- உங்கள் நண்பன் பரணி குமார் Regards B.S.Bharanikumar POST YOUR OPINION http://bharanikumariyerphp.site88.net/bharanikumar/
[jQuery] Re: state of the art for corner rounding?
One of the best ones I've seen lately is DD_roundies, by Drew Diller: http://www.dillerdesign.com/experiment/DD_roundies/ Here's an article by Filament Group that shows how you can use DD_roundies to extend support of jQuery UI's border radius to IE: http://www.filamentgroup.com/lab/achieving_rounded_corners_in_internet_explorer_for_jquery_ui_with_dd_roundi/ - Richard On Fri, May 1, 2009 at 4:07 PM, Jack Killpatrick wrote: > > Hi All, > > I have a half dozen bookmarks for rounded corner plugins, but am wondering > if there's a "state of the art" plugin kicking any booty on that these days? > What I'd *really* like is to just be able to set -moz border radiuses in CSS > and have a plugin magically use those to create rounded corners in IE and > Safari (IE mainly... using excanvas or something with it is fine, too). > > Any advice? For the project I'm working on now I don't need to have lines > at the border (ie: no border:1px solid black or anything). > > Thanks, > Jack > >
[jQuery] Re: Dialog position : relative
Currently, you have to calculate the position of the element, then use dialog's position option: http://docs.jquery.com/UI/Dialog#option-position which accepts an array [x, y]. In a future version you'll be able to simply specify the element you want it positioned relative to, with the help of this plugin, currently being designed: http://wiki.jqueryui.com/PositionTo If you have any other questions about jQuery UI, note there's a separate mailing list: http://groups.google.com/group/jquery-ui - Richard On Sat, May 2, 2009 at 2:32 AM, led wrote: > > How can i set the position of dialog relatively to element( as a > tooltip)? >
[jQuery] Re: thickbox like in front page of Jquery website
nobody's know?
[jQuery] Class selection
I need to select all elements that have a class name that is the last element of the class list. So I may have class=class1 class2 class3 for one element and class=class3 class1 class2 for another... I only want to affect everything that has the last class as class3. So in this example, the first element should be chosen and the second should not even though they both have class3. Let me know if that doesn't make sense and I can post a more complete example. Any help is appreciated.
[jQuery] Jquery not working in jsp
I'm a jquery newbie and am trying to use it in a simple web application. This application has a controller servlet that forwards the request to a 'login.jsp' page by default. In the login.jsp page, I used Jquery for the hover effect on the submit button. If I name my file 'login.html', it works absolutely fine. If I rename it to 'login.jsp', the javascript is not working. I see the following error in Firebug console: syntax error [Break on this error] "http://www.w3.org/TR/html4/loose.dtd";> > > > > > Login Page > > media=screen> > > > > > > > > > > > > > > > > > > > My login.js file: > $(function() { >//Load the default button >$('input#submit').attr('src', '../images/new/loginButton.png'); > >//When mouse hovers on button, show button_hover.png, else show > button.png >$('input#submit').hover(function() { > $(this).attr('src', '../images/new/loginButton_hover.png'); >}, function() { > $(this).attr('src', '../images/new/loginButton.png'); >}); > >//Set the max length of the user ID text box >$('input#user').attr('maxlength', '8'); > >//Set the max length of the password box >$('input#pwd').attr('maxlength', '8'); > >$('input#submit').click(function() { > return validateInput(); >}); > > >function validateInput() { > if (($('#user').val() == null) || ($('#user').val() == '')) { > $('#warning').remove(); > $(' ../images/warning.png ').insertAfter('#user'); > $('input#user').focus(); > return false; > }; > > if (($('#pwd').val() == null) || ($('#pwd').val() == '')) { > $('#warning').remove(); > $(' ../images/warning.png ').insertAfter('#pwd'); > $('input#pwd').focus(); > return false; > }; >}; > }); > I have the files 'login.jsp', 'login.js', 'jquery-1.3.2.min.js' under the webapps/QT/jsp/ folder. I think this might be a small problem, but am unable to fix it. Hope someone can help. -- View this message in context: http://www.nabble.com/Jquery-not-working-in-jsp-tp23345068s27240p23345068.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] HELP: how to browser cache json request?
I cannot figure out how to get my json file to be cached by the browser when I download it with an ajax request. I have tried two different methods: method one: $.ajax({ type: "GET", url: "long_url.json", dataType: "json", cache: true, ifModified: true, error: function(XMLHttpRequest, textStatus, errorThrown){ alert('ERROR! \n XMLHttpRequest: ' + XMLHttpRequest + '\n textStatus: ' + textStatus + '\n errorThrown: ' + errorThrown); }, success: function(data, textStatus){ alert('SUCCESS! \n data: ' + data + '\n textStatus: ' + textStatus); }, complete: function(XMLHttpRequest, textStatus){ alert('COMPLETE! \n XMLHttpRequest: ' + XMLHttpRequest + '\n textStatus: ' + textStatus); } }); method two: $.ajaxSetup({ type: "GET", cache: true, ifModified: true }); $.getJSON("long_url.json", function(data, textStatus){ alert('COMPLETE! \n data: ' + data + '\n textStatus: ' + textStatus); }); In both cases, each time I load the page I have to download a copy of the ajax request before it will send the correct last-modified headers. It first sends the default 1970 date. After I initiate the first request, all subsequent requests return proper 304 not modified responses. I am guessing this is because my file isn't being cached by the browser. How do I get the browser to cache my file? The json file that I am loading will not change very often and it is fairly large. I do not want my users to have to download it unless they have a stale copy.
[jQuery] Superfish
'Hello, i'm using the Superfish menu just recently. It works almost like a charm. Exept if i open in other browser then IE it shows bullets in front of the menu items. For example open in let's say Firefox; www.7evenfashion.nl/webshop. Now to see the difference in IE. I'd like to get rid of these dots. Is this in the .js or .css and the next question is it in joomla css or superfish css if in css. I'm a noob, no ict background, self learned joomla etc. in 2 month by reading forums and google. Help would be mutch appreciated.
[jQuery] Re: CSS Style Property Assigned by Class
Hi, I think it may be to do with 'border' being shorthand for all the individual border properties. If you code this $('#byClass').append($('#byClass').css('border-top-width')); then it shows the width as '1px'. hth Paul On May 1, 9:39 pm, Panman01 wrote: > One thing to note, I've found that this only seems to work in Opera. > > On May 1, 1:56 pm, Panman01 wrote: > > > I have not been able to figure this out. If I missed some kind of RTFM > > or something obvious please let me know. I can take it ;) Thanks > > > On Apr 30, 10:22 pm, Panman01 wrote: > > > > I just want to note that Google Groups wrapped a couple lines of the > > > code. The DOCTYPE and jquery script will need to be fixed if you copy > > > the code to test it. > > > > On Apr 30, 10:17 pm, Panman wrote: > > > > > For some reason I cannot get jQuery.css('name') to return a style > > > > property that was assigned by a class. However, it returns the > > > > property if it was assigned by style="". Has anyone else run into this > > > > issue? Bug? Here is my test code: > > > > > http://www.w3.org/ > > > > TR/html4/strict.dtd"> > > > > > > > > CSS Test > > > > > > > > .apply-border { > > > > border: 1px solid blue;} > > > > > > > > > http://ajax.googleapis.com/ajax/libs/jquery/1.3/ > > > > jquery.min.js" type="text/javascript"> > > > > > > > > $(document).ready(function() { > > > > $('#byStyle').append($('#byStyle').css('border')); > > > > $('#byClass').append($('#byClass').css('border'));}); > > > > > > > > > > > > > Border applied by > > > > style = > > > > Border applied by class = > > > >
[jQuery] Re: ready function mystery
hi, what i understood from your explanation is that you expect from livequery() method not to trigger any event on load event of the page. Well first of all, livequery() also handles those elements which are not present initially when the page is loaded for the first time, so that behavior suggests users not to use it in the ready() event of the document. It works on the fly. you can use it with the form when it is going to be submitted $(function(){ $("#myForm").livequery('submit',function(){ // do your stuff here }); }) On Sat, May 2, 2009 at 1:56 AM, rodeored wrote: > > This page: http://reenie.org/jquery/ > is linked to 1.js which has this code: > > > $(document).ready(function(){ > $('#myForm').livequery(function(){ > alert('why is this happening?'); >return false; > }); > > }); > > When the page is first loaded, it triggers the alert. It doesn't seem > like it would because it is in the livequery function. Why does it do > that?
[jQuery] ready function mystery
This page: http://reenie.org/jquery/ is linked to 1.js which has this code: $(document).ready(function(){ $('#myForm').livequery(function(){ alert('why is this happening?'); return false; }); }); When the page is first loaded, it triggers the alert. It doesn't seem like it would because it is in the livequery function. Why does it do that?
[jQuery] listnav, but for tables?
I'm looking for a plugin like the listnav plugin (demo: http://www.ihwy.com/Labs/Demos/Current/jquery-listnav-plugin.aspx), but for tables? I'd like to filter / select rows in a table based on the first letter of one of the rows in the table. The listnav plugin is exactly what I'm after, but it works on ol/ul only, and I need to use it with tables.
[jQuery] [Form submittion not working]>>any error in the code..... please check
$(document).ready( funtion(){ return false; $("#send").click( function(){ $.post("lib/ajax/requests.php", { action: "postrecommendmypros", projectname: {ALL_SEARCH_TXT}, firstname: {CLIENT_FIRSTNAME}, lastname: {CLIENT_LASTNAME}, id: {CLIENT_LASTNAME}, project_id: {ALL_REQUEST_PID}, url:{ALL_MY_REQUESTS_REDIRECT}, id: {EMAIL_UID} }, function(data){ window.location={ALL_MY_REQUESTS_REDIRECT}; } ); return false; } showNotice('Response posted!','Project '+ projectname); ); } ); -- Regards, Amit Kr. Sharma Mobile: 09780141161 Profile: http://www.linkedin.com/in/amit2sharma Email id: amit.mca...@gmail.com