[jQuery] $.getScript Must Take .js File?

2009-03-25 Thread Code Daemon
I am using codeigniter and it forms urls like this: http://mydomain/index.php/system/edit_js I'm trying to call $.getScript by going: $.getScript("http://mydomain/index.php/system/edit_js";) but I get a 404 not found error. I pasted the url in my webbrowser and it works just fine. Is there any

[jQuery] Re: aborting a $.getScript() request

2009-03-25 Thread Karl Rudd
You're right. A quick look in the bug tracker turns up this ticket: http://dev.jquery.com/ticket/1768 Karl Rudd On Thu, Mar 26, 2009 at 3:46 PM, Mauricio (Maujor) Samy Silva wrote: > >> However  you could set a flag in the success/callback function. After >> the getScript() call you could us

[jQuery] Re: aborting a $.getScript() request

2009-03-25 Thread Mauricio (Maujor) Samy Silva
However you could set a flag in the success/callback function. After the getScript() call you could use a setTimeout to test for that flag after a certain time. If the flag isn't set then the load didn't work or took too long. Karl Rudd -

[jQuery] Re: scrollto function works with static html, but not with identical generated html

2009-03-25 Thread Ariel Flesler
I don't see that link... neither a call to scrollTo within any of the included js files. Where should I look ? -- Ariel Flesler http://flesler.blogspot.com On Mar 25, 1:47 pm, ryan wrote: > i forgot to mention that the temporary scroll button i've set up is a > scroll down test in the lower ri

[jQuery] Re: Jquery UI 1.7.1 Tabs - Close open tab on mouseout from overall tab group

2009-03-25 Thread acamar
In context of mouseout event handler the $tabs variable is not visible. So try $('#tabs').mouseout(function () { $("#tabs").tabs('option', 'selected', -1); }); that should help. On 25 мар, 13:44, jq noob wrote: > I am currently using > > $(document).ready(function() > { > var $tabs =

[jQuery] Re: Pointless but fun jQuery experiment

2009-03-25 Thread Nikola
That was really neat... jQuery physics! On Mar 25, 11:40 pm, brian wrote: > I'll second that! > > On Wed, Mar 25, 2009 at 9:26 PM, Rick Faircloth > > wrote: > > > Pretty cool, Kelvin! > > > Rick > > > -Original Message- > > From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups

[jQuery] Re: Jquery Tabs shown Horizontally in Firefox but shown Vertically in IE...?

2009-03-25 Thread acamar
Hi! It's not jQuery related question but CSS. Can you show your CSS rules for the tabs? On 25 мар, 19:59, Martin wrote: > Hello, > > I am using Jquery Tabs in a webpage and the problem I am having is > that the tabs are shown correctly in Firefox (Horizontally), but > incorrectly in IE (Vertical

[jQuery] Re: Pointless but fun jQuery experiment

2009-03-25 Thread brian
I'll second that! On Wed, Mar 25, 2009 at 9:26 PM, Rick Faircloth wrote: > > Pretty cool, Kelvin! > > Rick > > -Original Message- > From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On > Behalf Of Kelvin Luck > Sent: Wednesday, March 25, 2009 9:22 PM > To: jquery-en >

[jQuery] question about getJSON and surrounding JavaScript comments in JSON

2009-03-25 Thread jt
I'd like to use the getJSON function but my data source has surrounding javascript comments on it. Is there a way I can use getJSON and pass it a parameter to strip this off. If not is there a different function that would be more appropriate? I am able to remove the Javascript comment characters

[jQuery] Re: Wrapping p siblings following h1 in divs

2009-03-25 Thread Ricardo
jQuery.fn.nextUntil = function(expr) { var match = []; this.each(function(){ for( var i = this.nextSibling; i; i = i.nextSibling ) { if ( i.nodeType != 1 ) continue; if ( jQuery.filter( expr, [i] ).r.length ) break; match.push( i ); } });

[jQuery] Re: Pointless but fun jQuery experiment

2009-03-25 Thread Rick Faircloth
Pretty cool, Kelvin! Rick -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Kelvin Luck Sent: Wednesday, March 25, 2009 9:22 PM To: jquery-en Subject: [jQuery] Pointless but fun jQuery experiment Inspired by google's chrome experiments

[jQuery] Pointless but fun jQuery experiment

2009-03-25 Thread Kelvin Luck
Inspired by google's chrome experiments I recently put together a pointless but fun experiment with the help of jQuery and I thought that people on the list might like to check it out: http://www.kelvinluck.com/assets/jquery/boingPic/index.html As I said, completely pointless but makes a nice ch

[jQuery] Re: Post Form to Two Servers

2009-03-25 Thread James
You can do this using AJAX by just firing off the request to two different URLs with the same POST form data. Otherwise, you could do it using a server-side method by submitting the form to one URL, and the script can push some of that data to another URL using something like cURL. On Mar 25, 1:

[jQuery] Re: looping through json and adding dom elements (options)

2009-03-25 Thread mkmanning
"remove all options from a drop down and populate it with new items from the json" "if possible, it will be good if i can have a default "null" option eg "Please select an option" that does not do anything if the user selects it or shows at the start and disappears once user selects it?" ??? If

[jQuery] Re: looping through json and adding dom elements (options)

2009-03-25 Thread iceangel89
thanks all. but what about the default "Please select a value" option? how can i have it such that the user either - cannot select that option - shown only on 1st run - can select the option but will cause the 2nd dropdown to empty - dunno if this is good idea or any other suggestions ? btw, as

[jQuery] Re: I jQery!

2009-03-25 Thread riotbrrd
Um, I really did mean "jQuery". :-\ On Mar 25, 4:08 pm, riotbrrd wrote: > Just wanted to send a little luv note to the jQuery team. I'm a UI > designer and NOT a programmer, but learning jQuery has allowed me to > make my software wireframes/prototypes way more functional. Yesterday > a client s

[jQuery] Post Form to Two Servers

2009-03-25 Thread Glen Lipka
I have a form with a normal action to submit the data. However, I want to submit SOME of the data to another form on another server. How does one do this? Thanks, Glen Lipka

[jQuery] Re: aborting a $.getScript() request

2009-03-25 Thread Karl Rudd
If the script does not exist then the insertion of the

[jQuery] I jQery!

2009-03-25 Thread riotbrrd
Just wanted to send a little luv note to the jQuery team. I'm a UI designer and NOT a programmer, but learning jQuery has allowed me to make my software wireframes/prototypes way more functional. Yesterday a client said to me, "I'm amazed at how fast you guys turn around these wireframes." Well, i

[jQuery] Re: looping through json and adding dom elements (options)

2009-03-25 Thread mkmanning
I've not tried Eric's plugin, but if converting the JSON is an issue, you can use what you have (but be sure and quote the string values; preferably the keys too even though most people don't): [ {Value: 1, Item: 'Physics'}, {Value: 2, Item: 'Chemistry'}, {Value: 3, Item: 'Biology'} ]; Here's the

[jQuery] Re: one check box to select entire group

2009-03-25 Thread MorningZ
How about just showing the HTML instead of hard to follow explainations It's still not clear what the header column is is it text? is there a checkbox? what has the id "cat1"? On Mar 25, 5:22 pm, Andy H wrote: > That is close, the item section will be different for each check box. > The t

[jQuery] Re: [autocomplete] jquery + dwr

2009-03-25 Thread Diego Plentz
I suspected :-) Well, I archived the results that I want doing a modification to the autocomplete source code. I've added a "async" option, so if someone want's to use asyncs requests as a source of data it can now be done. The result is pretty simple: $("#city").autocomplete({ async: dwrHandl

[jQuery] Re: Need to get value of table cell

2009-03-25 Thread Josh Powell
What unique identifier do these cells have? Do the cells have id's? $('#theid'). Do the rows have ids? $('#theid > td').get(1) will get you the second cell of the row with an id of 'theid', does the table have an id? $('#tableid > tbody > tr' > td) will return all of the tds in that table inside

[jQuery] Re: Cycle plugin adds white background in ie6 and ie7

2009-03-25 Thread Mike Alsup
It might have something to do with cleartype option. Try setting the cleartype to false: $('#slideshow').cycle({ cleartype: false }); On Mar 25, 6:09 pm, Merindol wrote: > I have the same problem, but it's not white : it's the same color as > the first parent that has its background-color

[jQuery] Jquery and MShtml automation??

2009-03-25 Thread phrankbooth
Hello, Wondering if anyone might have insight into using jQuery with Mshtml. I'm trying to automate a textarea control that is inside of a dojo widget (ajax). I want to send text to the textarea and have it display as if the user were manually entering the text. I've tried the standard method

[jQuery] Scroller controls on the web page

2009-03-25 Thread Shalu
I have created a scroller at www.electricitynoida.com/moneyxe. I wish to provide the front end user a control panel where he can choose the speed of the scroller. The choices can be speed = slow, medium or fast (radio buttons). Is there a way to do this? I do not wish to reload the entire page, ma

[jQuery] Building a Widget

2009-03-25 Thread dadonk
I want to build a widget for one of my websites that users can cut and paste onto their site. The widget should take a value from a form submit and return data from PHP and MySQL back to the widget. Would JQuery be the best place to start for something like this? Any suggestions would be welcom

[jQuery] Re: Fire up on field focus

2009-03-25 Thread Ed J
Hello, I am trying to get the same functionality as Andrea also. Here's my use case: I currently have a traditional form select drop down list that can get very long. It's tedious to scan and scroll through the entire list when it gets long. I would like to use autocomplete to show the entire l

[jQuery] Noob Question - How do you use the plugins created here in Dreamweaver?

2009-03-25 Thread Ruester
I am new to the whole plugins thing. Can someone help me? I am looking to use the JQuery Carousel and want to know how to use these plugins. Please be descriptive if possible, or point me to a tutorial. Thanks all in advance, Aza

[jQuery] Re: Cycle plugin adds white background in ie6 and ie7

2009-03-25 Thread Merindol
I have the same problem, but it's not white : it's the same color as the first parent that has its background-color defined. As a workaround I added "background: transparent !important;" to the cycled blocks. But that doesn't help to find where the problem is. Regards. On 25 mar, 02:26, Smoggy

[jQuery] Image/map Viewer

2009-03-25 Thread Todd
I'm trying to make an image view similar to googlemaps. What I would like to do is make a custom map/image and have link tat when the person clicks on it the map would move to a specific location and size. I also would like to be able to drag, move and scale the image up and down to a certain size

[jQuery] JCarousel and non-image carousel items

2009-03-25 Thread oswaldcobblepot
Has anyone had any luck with turning small blocks of markup (like an unordered list or something) into items within jCarousel? What I mean is, if i have 10 list items that i want to scroll through in the carousel, and 9 of them are images while the last one is a bit of html text, has anyone been

[jQuery] Re: one check box to select entire group

2009-03-25 Thread Andy H
That is close, the item section will be different for each check box. The table will have three columns that will be populated with check boxes only. The header section in the table will have a global select for each column. So if there is a row that has the following chk__ each ro

[jQuery] Need to get value of table cell

2009-03-25 Thread webspee...@gmail.com
Hey all. I have a table and I need to access the value of a particular cell in the selected row. I've seen this type of code before but can't remember what to search on. Any clues?

[jQuery] Re: creating search page with "click" for more results.

2009-03-25 Thread iskills
AHAH! Not sure if it was the return false, or clearing up a php error in the return (which I could not see until I removed the display: none - DUH!) but it is working now Thanks for your help!!! On Mar 25, 2:10 pm, James wrote: > I don't see the issue, but I do see something that might af

[jQuery] jQuery SWFObject callback function anyone?

2009-03-25 Thread Andy Matthews
Does anyone know if the jQuery SWFObject plugin offers a callback function? I've got some alternate content inside the container which will contain my Flash movie. Problem is that the page takes so long to load that the HTML is visible for about 2 seconds before SWFobject kicks in. I'd like to hi

[jQuery] Re: simplemodal help - dynamic load of modal content breaks close button

2009-03-25 Thread Eric Martin
If you get the data and then use it in the dialog, it will bind the simplemodal-close class. Otherwise, you have to do it manually in the onShow callback. The following will auto-bind: $('#mylink').click(function (e) { e.preventDefault(); // load the contact form using ajax

[jQuery] Re: attr("href") giving full path instead of relative in IE

2009-03-25 Thread Shane Riley
Right, it's not hard, it was just unexpected is all. I guess I've gotten used to JQuery working the same in all browsers. I've got it working now with some old-fashioned Javascript. Thanks! On Mar 25, 3:20 pm, Shane Riley wrote: > Alright, so your example shows the actual strings for all three

[jQuery] Re: Detect when all ajax queries launched by "for" have finished

2009-03-25 Thread MorningZ
This is totally off the cuff and untested, but http://paste.pocoo.org/show/109610/ should work On Mar 25, 3:20 pm, Jsbeginner wrote: > Hello, > > I've got a script that takes all the elements of a list and on click of > a button it runs an ajax query for each item. It all works fine however >

[jQuery] Re: attr("href") giving full path instead of relative in IE

2009-03-25 Thread Karl Swedberg
Well, the string manipulation is pretty minimal. Just use this.pathname -- or some combination of this.pathname, this.hash, and this.search if necessary. The one problem with this.pathname is that IE and Opera omit the initial slash while FF and Safari include it. But that's not hard to

[jQuery] Detect when all ajax queries launched by "for" have finished

2009-03-25 Thread Jsbeginner
Hello, I've got a script that takes all the elements of a list and on click of a button it runs an ajax query for each item. It all works fine however I would like to have a "searching" message during the search and a "finished" message after the search has finished, but I can't think how to

[jQuery] Re: looping through json and adding dom elements (options)

2009-03-25 Thread Eric Garside
Ice, I just recently released a plugin that might suit your needs. It's basically a way to transmit HTML as JSON for this exact kind of thing. Check out: code.google.com/p/hsjn Taking the case you gave, if you change the JSON your returning to: [['option', {value: 1}, 'Physics'],['option', {val

[jQuery] Re: attr("href") giving full path instead of relative in IE

2009-03-25 Thread Shane Riley
Alright, so your example shows the actual strings for all three values in Safari, and in IE7(Vista) it shows the absolute path for #3. After looking back at my code, I'm actually loading in the links via Ajax when the page is loaded, so they're not in the original document. So I'm guessing that me

[jQuery] Re: Traversing nested lists not working in IE

2009-03-25 Thread Andrew
Stupid standards. :) That's what I suspected. Thanks Richard. On Mar 25, 2:08 pm, "Richard D. Worth" wrote: > That html isn't valid. The nested ul element can't be a child of a ul. It > needs to be a child of an li, like so > > >   >   >     >       >     >   >   > > > - Richard > > On

[jQuery] Re: attr("href") giving full path instead of relative in IE

2009-03-25 Thread Karl Swedberg
Hi Shane, Yes, I believe you're reading me right. Strange, though. I'm not able to reproduce the problem you're having. Take a look here: http://test.learningjquery.com/href.html In IE 7 for #1 and #2 $(this).attr('href') is reporting the actual text string of the href attribute while this

[jQuery] Re: Traversing nested lists not working in IE

2009-03-25 Thread Richard D. Worth
That html isn't valid. The nested ul element can't be a child of a ul. It needs to be a child of an li, like so - Richard On Wed, Mar 25, 2009 at 1:50 PM, Andrew wrote: > > HTML: > > > > > > > > > > JS: > $("ul li").click(function(){

[jQuery] Re: attr("href") giving full path instead of relative in IE

2009-03-25 Thread Shane Riley
After replacing $(this).attr("href") with this.getAttribute("href", 2) I get the same result. If I output the attribute, IE still shows the absolute path. On Mar 25, 2:21 pm, Shane Riley wrote: > Karl, I'm pretty sure I'm reading you right, but are you saying that > by all accounts JQuery should

[jQuery] s3Slider IE opacity question

2009-03-25 Thread Matt
Hi All, I'm trying to make use of the s3Slider plugin. It works great for me in FF and Safari. However in IE7 and 8, the opacity i set shows up correctly for the initial image/slide, but each slide after that is at 100% opacity over the image. Does anyone have any idea what would cause this to ha

[jQuery] Re: jqmodal Ajax issue

2009-03-25 Thread Alexandre Plennevaux
1/ i would make sure the div exist before initalising the jqModal, so add the jqm initialisation to your createDiv function or through a callback executed when the createDiv is done.2/ for your specific question: your check is incorrect. The good use would be to use jqmodal onShow() callback and c

[jQuery] Re: element type of matched id

2009-03-25 Thread jerone
You can do: $("input#foo") $("span#foo") or you can use the "is" function: http://docs.jquery.com/Traversing/is#expr if($("#foo").is("span")){ // code }else if($("#foo").is("input")){ // code } On 25 mrt, 19:15, Brad wrote: > I'm working on a page that dynamically changes many

[jQuery] Re: element type of matched id

2009-03-25 Thread Brad
Exactly what I need. Thanks! On Mar 25, 12:25 pm, James wrote: > $("#foo")[0].nodeName; >

[jQuery] Traversing nested lists not working in IE

2009-03-25 Thread Andrew
HTML: JS: $("ul li").click(function(){ $(this).next().doSomething(); }); When I click on any li that has an li after it, that next li will 'doSomething'. But, when I click on the li that has a ul after, only in IE, the ul is ignored and it will 'doSomethin

[jQuery] Re: element type of matched id

2009-03-25 Thread Brad
Thanks for this too. I was looking for the documentation for .is the other day and couldn't find it. On Mar 25, 12:26 pm, jerone wrote: > You can do: >   $("input#foo") >   $("span#foo") > > or you can use the "is" function:http://docs.jquery.com/Traversing/is#expr >   if($("#foo").is("span")){

[jQuery] element type of matched id

2009-03-25 Thread Brad
I'm working on a page that dynamically changes many form elements. Because of the way that different browsers style disabled or readonly text inputs, I'm swapping the input with a span that displays more consistently. I don't need to submit those fields. However, when I do this the affected elemen

[jQuery] Re: element type of matched id

2009-03-25 Thread James
$("#foo")[0].nodeName; On Mar 25, 8:15 am, Brad wrote: > I'm working on a page that dynamically changes many form elements. > Because of the way that different browsers style disabled or readonly > text inputs, I'm swapping the input with a span that displays more > consistently. I don't need to

[jQuery] Re: attr("href") giving full path instead of relative in IE

2009-03-25 Thread Shane Riley
Karl, I'm pretty sure I'm reading you right, but are you saying that by all accounts JQuery should account for this and return the string- literal value of href and not IE's absolute path? If so, it's not working properly. I wish I could show you the live code, because it's probably easier to visu

[jQuery] Re: IE7 returning 0 for attr("width") on an img with width set

2009-03-25 Thread nabrown78
But for that you have to wait until all the images have actually loaded. I thought it would be faster to get the attribute. Is that wrong? On Mar 25, 11:39 am, MorningZ wrote: > Use > > this_img.width() > > instead > > http://docs.jquery.com/CSS/width > > On Mar 25, 11:47 am, nabrown78 wrote: >

[jQuery] Re: creating search page with "click" for more results.

2009-03-25 Thread James
I don't see the issue, but I do see something that might affect it. Try: $(".vieworderdata").live("click",function() { $(".order_logs1").show("slow"); return false; // <-- added this line }); Since you're clicking on a link, the "return false" te

[jQuery] jqmodal Ajax issue

2009-03-25 Thread Tad
Hello, I'm new to jquery and jqmodal. I have a script that runs fine except when the URL (href) of the anchor tag is Blank or "#". so what I want to do is check for that possibility and stop the Jqmodal from acting or put up an error message, without my page being messed up. I've tried to use call

[jQuery] Re: IE7 returning 0 for attr("width") on an img with width set

2009-03-25 Thread MorningZ
yeah, .width() gets or sets the computed width so in your case, grabbing the attribute makes more sense for your situation On Mar 25, 1:38 pm, nabrown78 wrote: > But for that you have to wait until all the images have actually > loaded. I thought it would be faster to get the attribute. Is th

[jQuery] Re: Need some help with a image opacity thingy.

2009-03-25 Thread Karl Swedberg
for IE6, explicitly setting a background color on the element should do the trick. IE7 is a bit more complicated. You might want to have a look at Mike Alsup's Fade Test page and view source: http://malsup.com/jquery/fadetest.html --Karl Karl Swedberg www.englishrules.com www.l

[jQuery] Re: attr("href") giving full path instead of relative in IE

2009-03-25 Thread Karl Swedberg
Hi Shane, IE has a second "flag" argument for getAttribute that, when set to 2, is supposed to get the literal value of the attribute rather than their special-sauce value. So, this.getAttribute('href', 2) *should* get the relative href. (note: no need to do $(this)[0] ; this works just f

[jQuery] Re: why does load cost so much time?

2009-03-25 Thread Samuel
supplement more information on the issue. $('.words') have html data, ie, this node is not empty, so it must cost some time to remove the children. I made tens of tests, and the average of data() function time is around 500ms, which must be too high. It's possible for me to use a iframe to proce

[jQuery] Re: HowTo Select first two characters of an li and hide them

2009-03-25 Thread info
Im working on the frontend of an old proprietary system that trows those /> before closing the so i dont have a way to change that ... - Original Message - From: "benjamin.josefus" To: "jQuery (English)" Sent: Wednesday, March 25, 2009 2:38 PM Subject: [jQuery] Re: HowTo Select fi

[jQuery] Re: Attribute selector

2009-03-25 Thread Karl Swedberg
Hi Lay, You could do it like this: $('table').filter(function() { return this.style.tableLayout == 'fixed'; }); Not sure what happens when you try it in a browser that doesn't support the tableLayout property, though. --Karl Karl Swedberg www.englishrules.com www.learningj

[jQuery] Jquery Tabs shown Horizontally in Firefox but shown Vertically in IE...?

2009-03-25 Thread Martin
Hello, I am using Jquery Tabs in a webpage and the problem I am having is that the tabs are shown correctly in Firefox (Horizontally), but incorrectly in IE (Vertically). Does anyone know a simple solution to this problem? My html is very vanilla (see below) Tab 1 Title Tab 2 Title Tab 1

[jQuery] Re: scrollto function works with static html, but not with identical generated html

2009-03-25 Thread ryan
i forgot to mention that the temporary scroll button i've set up is a scroll down test in the lower right. i apologize if i'm missing something really obvious here, but really don't understand how javascript can operate differently on two html pages that appears to me to be identical. - r On Mar

[jQuery] why does load cost so much time?

2009-03-25 Thread Samuel
Hi, recently I changed my ajax returned content format to html pieces, using a load() function with an expect of time decreasing used for dom manipulation. On the contract, it could be even longer than the previous xml processing time. After a debugging with firebug, I found the function data()

[jQuery] Re: IE7 returning 0 for attr("width") on an img with width set

2009-03-25 Thread MorningZ
Use this_img.width() instead http://docs.jquery.com/CSS/width On Mar 25, 11:47 am, nabrown78 wrote: > Hi All, I have the following code: > > $('#slides img').each(function(i){//calculate margins and wrap >                 var this_img = $(this); >                 var imgMargin = Math.round((5

[jQuery] Re: Need some help with a image opacity thingy.

2009-03-25 Thread MindTooth
Thank you so much. That fixed it completely. Much appreciated. Just asking, could you provide some info regarding IE compatible. Since now my PNGs has rough edges. Looks like som chainsaw blades. Birger :) On Mar 25, 3:52 pm, Karl Swedberg wrote: > Hi there, > > You could use the hoverIntent p

[jQuery] Re: one check box to select entire group

2009-03-25 Thread MorningZ
Your description of your HTML isn't very clear, but none the less this could work: $("selector for header checkboxes").click(function() { var chk = this; $("input[id^='" + chk.id + "_item']").each(function() { this.checked = chk.checked; }); }) On Mar 25, 12:12 pm, Andy wrote: > Hey

[jQuery] Re: IE7 returning 0 for attr("width") on an img with width set

2009-03-25 Thread nabrown78
Aha! The problem was that the li elements which contained the images were set to display:none in the CSS. I guess I can work around that. On Mar 25, 10:47 am, nabrown78 wrote: > Hi All, I have the following code: > > $('#slides img').each(function(i){//calculate margins and wrap >              

[jQuery] Re: Need some help with a image opacity thingy.

2009-03-25 Thread MindTooth
Thank you so much. That fixed it completely. Just asking, could you provide some info regarding IE compatible. Since now my PNGs has rough edges. Looks life som chaiw saw blades. Birger :) On Mar 25, 3:52 pm, Karl Swedberg wrote: > Hi there, > > You could use the hoverIntent plugin or update t

[jQuery] Re: attr("href") giving full path instead of relative in IE

2009-03-25 Thread Shane Riley
Ha! I looked at your post too fast, and didn't notice that it was pure Javascript. Sorry. I'll try it and see. The way I currently have it will not work with javascript turned off either. I'm doing it this way only because the client is requiring the user to have Javascript enabled to use the sit

[jQuery] looping through json and adding dom elements (options)

2009-03-25 Thread iceangel89
i am new to jquery and what i intend to do now is to load json from server and then based on the json, remove all options from a drop down and populate it with new items from the json. something like a cascading drop down. i dunno if the json outputted is correct? do i need something like "depart

[jQuery] Multiple AJAX requests using jQuery

2009-03-25 Thread jakenoble
Hi I am trying to use jQuery's AJAX functionality to make a progress bar. A request is submited via AJAX, which starts importing data to a database. Once submited another AJAX request is called on an interval which checks the progress of this import, a progress meter is then updated using this i

[jQuery] Attribute selector

2009-03-25 Thread Lay András
Hello! I'd like to set a css property on every table, that have style="table-layout: fixed" attribute. I tried this, but don't works: $('table[style="table-layout: fixed"]').css('background-color','#DD'); With id attribute works: $('table[id="mytable"]').css('background-color','#DD');

[jQuery] Re: HowTo Select first two characters of an li and hide them

2009-03-25 Thread benjamin.josefus
> 22 Spacious Garden Why don't you put the Metadata into one of the appropriate attributes like "id"? If you do so, any of your Element is "addressed" by that and could easily be handled. And please don't use the if there's no proper use for it

[jQuery] IE7 returning 0 for attr("width") on an img with width set

2009-03-25 Thread nabrown78
Hi All, I have the following code: $('#slides img').each(function(i){//calculate margins and wrap var this_img = $(this); var imgMargin = Math.round((550 - (this_img.attr("width") + 35))/2) + 5; this_img.wrap(''); $('#content').appe

[jQuery] Re: attr("href") giving full path instead of relative in IE

2009-03-25 Thread Martijn Houtman
On Mar 25, 2009, at 5:04 PM, Shane Riley wrote: Thanks for the article link, but your proposed change isn't valid JQuery, is it? My exact jQuery code to read in the value looks like this: pageID = $(this).attr("href"); Adding what you suggested to make it $(this)[0].attr("href") will not do anyt

[jQuery] one check box to select entire group

2009-03-25 Thread Andy
Hey guys, I have a table where the header has check boxes so if you click on that, it will select all of the other checkboxes in that row. The issue I have, it's not a select all checkboxes, but ones that have a specific naming convention. Example. If my header is named ckb_category1 I need

[jQuery] Re: attr("href") giving full path instead of relative in IE

2009-03-25 Thread Shane Riley
Thanks for the article link, but your proposed change isn't valid JQuery, is it? My exact jQuery code to read in the value looks like this: pageID = $(this).attr("href"); Adding what you suggested to make it $(this)[0].attr("href") will not do anything apart from force the link to be followed. I

[jQuery] Re: jQuery.preload - Getting Link Mode To Work

2009-03-25 Thread Nic Hubbard
Thank you! This did the trick. I didn't realize that how I had it would only load up the first match. I appreciate the help! On Mar 24, 6:05 pm, James wrote: > Try replacing this line: > var $links = $('#artistsColumns a').attr('rel'); > > with: > var $links = []; > $.each($('#artistsColumns

[jQuery] simplemodal help - dynamic load of modal content breaks close button

2009-03-25 Thread dbonneville
I have an include that contains all the HTML for the modal dialogue content. In the HTML, I also have a close button with the class "simplemodal-close" attached to it, which triggers the close function. That works great. However, I decided to load the snippet via jquery.get. It loads in just fine

[jQuery] Re: attr("href") giving full path instead of relative in IE

2009-03-25 Thread Martijn Houtman
On Mar 25, 2009, at 4:32 PM, Shane Riley wrote: I'm wanting to read in the exact string that's contained in an anchor's href attribute in order to use it as the POST variable list for an Ajax call to a PHP script, however in IE6 and 7 the string read from the href attribute ends up being the a

[jQuery] attr("href") giving full path instead of relative in IE

2009-03-25 Thread Shane Riley
I'm wanting to read in the exact string that's contained in an anchor's href attribute in order to use it as the POST variable list for an Ajax call to a PHP script, however in IE6 and 7 the string read from the href attribute ends up being the absolute path, not just the href attribute. Here's ex

[jQuery] Re: How to use ThickBox in asp.net pages?

2009-03-25 Thread MorningZ
What do you feel the difference would be from their provided examples? http://jquery.com/demo/thickbox/ it's looking for tags with the class of "thichbox" so if you had or it wouldn't matter to the thickbox code On Mar 25, 8:24 am, Sachin wrote: > Hi, > I am new to using jquery and wan

[jQuery] Re: Need some help with a image opacity thingy.

2009-03-25 Thread Karl Swedberg
Hi there, You could use the hoverIntent plugin or update the script with suggestions posted here: http://www.learningjquery.com/2009/01/quick-tip-prevent-animation-queue-buildup --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 25, 2009, at 8:00 AM, Mi

[jQuery] aborting a $.getScript() request

2009-03-25 Thread Maujor
I have the following AJAX request. $(document).ready(function() { var iconLoading = $(' mini.gif '); var pluginLoaded = $('Plugin ready'); var requestScript = function() { $(iconLoading).insertAfter('#my_button'); $.getScri

[jQuery] Thickbox half-works.

2009-03-25 Thread Devin
This is my code. The problem I'm having is that when I click the thumbnail all I see the loading bar. It just hangs there animated. Interestingly if I take the rel tag out of the images it works, but it doesn't show the previous and next options in the thickbox. Suggestions?

[jQuery] Re: Convert js to jquery

2009-03-25 Thread Richard D. Worth
var val = $("#searchopt").val(); On Wed, Mar 25, 2009 at 9:38 AM, mdjamal wrote: > > Hi Richard, > > Thanks for your help, the tabs switch the class on click, but how to > get the value assigned to the hidden field? > > Regards, > > Jamal

[jQuery] slide/scroller to top

2009-03-25 Thread introvert
Hello How is it possible to slide scrollbar to the top with jquery? Thanks a lot for help!

[jQuery] Re: Convert js to jquery

2009-03-25 Thread mdjamal
Hi Richard, Thanks for your help, the tabs switch the class on click, but how to get the value assigned to the hidden field? Regards, Jamal

[jQuery] Re: Intelisense in VS2008

2009-03-25 Thread MorningZ
Without more code it's hard to help, but I could venture a guess that where you are in your code that Intellisense has no idea what the type of variable/object "event" is to help understand that, take this sample: var s; if you went to do something with "s", the compiler has no idea what kind o

[jQuery] Re: .load of content does not always include DB connection

2009-03-25 Thread Tim
Unfortunately it's in a cms, that I can't really expose. My host company is looking at the problem as I expect there are server issues. Tim On Mar 24, 5:49 pm, James wrote: > This sounds more like a server-side issue. Are you running into > highloadissues on yourdatabase, or some kind of conne

[jQuery] Re: HowTo Select first two characters of an li and hide them

2009-03-25 Thread info
Tank you so much for both tips - Original Message - From: To: "jQuery (English)" Sent: Wednesday, March 25, 2009 2:07 PM Subject: [jQuery] Re: HowTo Select first two characters of an li and hide them Something like this maybe $('div.multiple_options li').each(function(){ var t

[jQuery] Re: cluetip plugin issues

2009-03-25 Thread Karl Swedberg
Hi Adam, If you want the content to be "ajaxed" in, then by default you need to use the rel attribute and set it to the file. you can override that by setting the attribute option to something else, e.g. .cluetip({attribute: 'href'}); hope that helps. --Karl Karl Swedberg w

[jQuery] Re: [autocomplete] jquery + dwr

2009-03-25 Thread Jörn Zaefferer
Ah, sorry. "source" expects a synchronous return as well, doesn't help at all in this case. Jörn On Wed, Mar 25, 2009 at 2:24 PM, Diego Plentz wrote: > Thanks Jörn. Btw, the problem still here, because even if I do something > like that: > > $("#city").autocomplete({ >     source: handleDWR > }

[jQuery] Re: HowTo Select first two characters of an li and hide them

2009-03-25 Thread johan . borestad
Something like this maybe $('div.multiple_options li').each(function(){ var text = $(this).html() $(this).html( text.replace(/\d+\s+/,'') ) }) But please remove that ugly inside your tags and make them block elements instead to achieve the same effect. / Johan On 25 Mar, 14:03, 262Rui

[jQuery] How to use ThickBox in asp.net pages?

2009-03-25 Thread Sachin
Hi, I am new to using jquery and want to understand how i can implement thickbox in my asp.net website. Is there any one who can provide me a simple example? Thanks in advance Sachin

  1   2   >