[jQuery] Re: Has anybody managed to print a sorted table using table sorter?

2009-01-29 Thread livewire9174
not yet, I would like to know if its possible On Jan 29, 12:10 am, Ricardo Tomasi ricardob...@gmail.com wrote: Have you? On Jan 28, 6:52 pm,livewire9174markmch...@gmail.com wrote: Hi, I've got table sorter, has anybody tried to print a table after sorting it ? Thanls

[jQuery] Re: autocomplete plugin by bassistance - loading of huge number of records

2009-01-29 Thread Jörn Zaefferer
I recommend hard limiting the items loaded from the server, in combination with scrolling. For example, load 100 items (should be fast enough), but display only 10. The other 90 can be checked by scrolling, while it is rather obvious that its easier to reduce the list by typing more. Jörn On

[jQuery] Re: autocomplete plugin by bassistance - loading of huge number of records

2009-01-29 Thread tain
if there is a callback function too filllist() and it should be maybe you should add 50 rows then show it, then in callback add another 50 and so on. On Jan 29, 9:28 am, Jörn Zaefferer joern.zaeffe...@googlemail.com wrote: I recommend hard limiting the items loaded from the server, in

[jQuery] jquery tabs ajax mode

2009-01-29 Thread jampov
Hello. I need some help with tabs jQuery v2.7.4 of stilbuero. I want to use Ajax Mode and open the links in a given container. For example: div id=box ul id=tabs lia href=01.htmlspanTab one/span/a/li lia href=02.htmlspanTab two/span/a/li

[jQuery] Link a complete table row (tr)

2009-01-29 Thread DCT, Heidi Anselstetter
Hi, I have this html code: tr style=background-color: {if $simular}#f6d2d2{else}{$background}{/if} th scope=rowinput type=checkbox name=paradigm value={$value.ver_id}/th td a href=/product.php?ver_id={$value.ver_id} img src=/img/uploads/{$value.ver_daten.ver_bildname} id=hidden border=0

[jQuery] copy input vals to 3 siblings in diffrent TR/TDs

2009-01-29 Thread tlob
Hello I have problems iterating with each() and traversing in jQ. can you help me out with a slick example? thx a lot! $(input.frage).each(function () { var output = $(this).val(); //$(input.frage).nextAll().val(output); /*NOT WORKING*/

[jQuery] Re: jqGrid final preview

2009-01-29 Thread Tony
Hello, There is such file (all in one), but they is provided only with a stable releases. Until jqGrid is in beta there will be no such distribution Best Regards Tony On Jan 28, 7:00 pm, runxc1 bretferri...@yahoo.com wrote: Tony  I really like yourjqGridas far as how it works and the excellent

[jQuery] Re: jqGrid final preview

2009-01-29 Thread Tony
Hello, Forgot to tell you - ajax loading of the js files is only for IE browsers On Jan 29, 1:44 pm, Tony t...@trirand.com wrote: Hello, There is such file (all in one), but they is provided only with a stable releases. Until jqGrid is in beta there will be no such distribution Best

[jQuery] Unobtrusive javascript with jQuery

2009-01-29 Thread B
I have read a lot of articles about separating javascript from markup and jQuery encourages the practice of unobtrusive javascript. Even though jQuery makes it extremely easy to implement event binding, I have a few questions which I was hoping you could help me with. 1) When you bind elements

[jQuery] Strange .attr('src') behavior in IE

2009-01-29 Thread spaceage
I have a hover script that implements image rollovers that goes like this: $(document).ready(function() { $(img.rollover).hover(function() { $(this).attr(src, $(this).attr(src).split(.).join(- hover.)); }, function() { $(this).attr(src, $(this).attr(src).split(-hover.).join (.));

[jQuery] .val is not a function

2009-01-29 Thread trancehead
All the core functions for JQuery seem to have stopped working. Jquery is the first script include so it appears before the other functions. script src=../../Shared/JS/jquery-1.3.1.min.js type=text/ javascript/script script src=../../Shared/JS/Functions.js type=text/javascript/ script script

[jQuery] Problem with superfish example

2009-01-29 Thread Kieren
Hi, I'm trying to get my page working with Superfish based on the example at http://users.tpg.com.au/j_birch/plugins/superfish/example.html But this example doesn't work in IE6, even though the similar example on the main page does work. Unfortunately I have no idea how to fix this. Any

[jQuery] Re: jquery tabs ajax mode

2009-01-29 Thread Stephan Veigl
$(#tabs a).click(function() { $.get( $(this).attr(href), function(data) { $(#contaioner).html(data); }); return false; }); see also: http://docs.jquery.com/Ajax and (since I guess you are German speaking):

[jQuery] Re: [Cycle Plugin]

2009-01-29 Thread Mike Alsup
Mike, thanks for your reply :) It's not clear to me how I would check on this value. Below is my new code, how would I actually code the {booleanflag?!} part? //init vars var initcount = 0; var imgcount = $('div#imgcontainer img').size(); //callback function function onAfter() {      

[jQuery] Re: jquery tabs ajax mode

2009-01-29 Thread jampov
I love you stepahn. A million thanks.

[jQuery] Re: copy input vals to 3 siblings in diffrent TR/TDs

2009-01-29 Thread Stephan Veigl
Your $(input.frage) within your each function would give you all questions for every each iteration. First you need to find the common root object of your current question (the row): var row = $(this).parent().parent(); Then you update all child inputs. Maybe you add a second, general

[jQuery] Re: jquery tabs ajax mode

2009-01-29 Thread Klaus Hartl
Well, with Tabs 2 you could actually do: $('#box').tabs({ remote: true }); --Klaus On 29 Jan., 13:08, jampov jam...@gmail.com wrote: I love you stepahn. A million thanks.

[jQuery] Re: .val is not a function

2009-01-29 Thread Stephan Veigl
And that's right, .val is NO function, the function is .val(). by(e) Stephan 2009/1/29 trancehead williamjhu...@gmail.com: All the core functions for JQuery seem to have stopped working. Jquery is the first script include so it appears before the other functions. script

[jQuery] complex selector question

2009-01-29 Thread Trend-King
Hi there i want to get all select elements on a page with name=test [1],name=test[2]... is there a way to specify a placeholder in the selector? i think about $('select[name=id[*]]').each(function(){ alert($(this).html()) }); is there any possibility for that? thanks for your replies

[jQuery] Re: .val is not a function

2009-01-29 Thread trancehead
Hi, I've tried it with the brackets as well. Same result. I forgot to mention that getElementWithContext is defined as // Returns the element using JQuery to find ASP.NET control ID - includes context for speed getElementWithContext = function(elementId, context) { // Returns all

[jQuery] Re: How to use one button to toggle multiple panels in succession

2009-01-29 Thread Stephan Veigl
That depends on what you want to happen with the hidden divs. Suppose you have added a button-button to every .myPanel div. div class='myPanel'1button-/button/div Scenario 1: hidden divs stay hidden and the next unopened div is shown var myPanels = $(.myPanel).hide(); var nextPanel = 0;

[jQuery] Re: [Cycle Plugin]

2009-01-29 Thread bart
Thanks for all your help Mike, it's working now! Might I suggest that you put this code example on your site where you actually mention the callbacks? It would've done the trick for me if it was there when I first read it :) Might be stating the obvious but it certainly wouldn't hurt people who

[jQuery] Re: Unobtrusive javascript with jQuery

2009-01-29 Thread donb
Check out 'event delegation' and/or the new v1.3 event handling features. On Jan 29, 1:25 am, B bilalallaw...@gmail.com wrote: I have read a lot of articles about separating javascript from markup and jQuery encourages the practice of unobtrusive javascript. Even though jQuery makes it

[jQuery] Re: complex selector question

2009-01-29 Thread MorningZ
$(select[name^='test']) Straight from the docs: http://docs.jquery.com/Selectors/attributeStartsWith#attributevalue On Jan 29, 7:12 am, Trend-King i...@trend-king.de wrote: Hi there i want to get all select elements on a page with name=test [1],name=test[2]... is there a way to specify a

[jQuery] Re: paint columns in alternating colour

2009-01-29 Thread kevind
$(table.Grid tr td:nth-child(even)).css(background,gainsboro); this did the trick - figured it out myself (ok, i read it in the zebra striping tutorial at jquery.com and figured it would work for columns too) thanks all

[jQuery] Re: complex selector question

2009-01-29 Thread Trend-King
Thanks Jquery LOVE makes blind ;-) I love that thing!!! On 29 Jan., 13:54, MorningZ morni...@gmail.com wrote: $(select[name^='test']) Straight from the docs: http://docs.jquery.com/Selectors/attributeStartsWith#attributevalue On Jan 29, 7:12 am, Trend-King i...@trend-king.de wrote:

[jQuery] Inside page jumps,

2009-01-29 Thread pejot
Hi, I have quite complex page with internal link inside. a href=#there id=jump Jump/a and a name=there /a far a way on bottom page. When I click a link Jump page jumps to specific there place. It is fine. Case is that click should be done from jquery code... I put code $(#jump).click();

[jQuery] Re: Selected Attribute in IE6

2009-01-29 Thread markadunca...@googlemail.com
Can you set the .val() on the select object, i've tested this in IE 7 but don't have IE6 to hand html head script src=neworders_files/jquery-1.js type=text/javascript/ script script type=text/javascript $(document).ready(function()

[jQuery] Re: Selection by CSS background-color

2009-01-29 Thread Shane Riley
I'm pretty sure this is going to require using string functions to locate the background-color property for testing. You could use .css (background-color) to read in the color attribute, but it will be in RGB form as shown in the documentation's demo at http://docs.jquery.com/CSS/css#name.

[jQuery] eval(JSON_DATA) how safe is it?

2009-01-29 Thread Trend-King
Hi there another question from my, how save is it eval() data getting via JSON $.ajax() call i want to get javascript data to be executed after JSON $.ajax() call. or is there another way to do that?

[jQuery] Re: Inside page jumps,

2009-01-29 Thread Stephan Veigl
to automatically jump to an anchor use the location hash: window.location.hash=there; by(e) Stephan 2009/1/29 pejot pjonar...@gmail.com: Hi, I have quite complex page with internal link inside. a href=#there id=jump Jump/a and a name=there /a far a way on bottom page. When I click

[jQuery] Re: eval(JSON_DATA) how safe is it?

2009-01-29 Thread Stephan Veigl
hi, check out the secureEvalJSON() method of the json plugin. http://code.google.com/p/jquery-json/ by(e) Stephan 2009/1/29 Trend-King i...@trend-king.de: Hi there another question from my, how save is it eval() data getting via JSON $.ajax() call i want to get javascript data to be

[jQuery] Re: Selected Attribute in IE6

2009-01-29 Thread Chandan Luthra
Try this if ($(this).attr(id) == somevalue) $(this).attr(selected, true); Chandan Intelligrape Software Pvt. Ltd. On Thu, Jan 29, 2009 at 6:55 PM, markadunca...@googlemail.com markadunca...@googlemail.com wrote: Can you set the .val() on the select object, i've tested this in

[jQuery] Re: eval(JSON_DATA) how safe is it?

2009-01-29 Thread Trend-King
ok and thats safe for things like a sting $(#cart_info).fadeIn (500);setTimeout(function(){$(#cart_info).fadeOut(500)},2000); getted from JSON? On 29 Jan., 14:51, Stephan Veigl stephan.ve...@gmail.com wrote: hi, check out the secureEvalJSON() method of the json

[jQuery] Re: Hover Effect on 2 rows

2009-01-29 Thread jQuery Lover
Hi Kevin, I have not checked the code since I just wrote and submitted it. However I don't see any cross browser problems in this script. You could try to add semicolons where I've missed previously and move the function declaration before the jquery script like this: function getNeighbor(el,

[jQuery] Re: Problem with superfish example

2009-01-29 Thread Joel Birch
Hello, It is impossible to know where your error lies without seeing your page. Please post a link to it. Joel Birch.

[jQuery] Re: Superfish - Drop down opacity

2009-01-29 Thread Joel Birch
Hello, it appears that you have the #pillmenu li elements' background set to transparent, which is easy to see by using Firebug. For further CSS issues, you will get better help from a devoted CSS group. Joel Birch.

[jQuery] Re: eval(JSON_DATA) how safe is it?

2009-01-29 Thread jQuery Lover
Reading the plugin homepage it does not. It only encodes and decodes JSON or am I missing anything? Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Thu, Jan 29, 2009 at 6:57 PM, Trend-King i...@trend-king.de wrote: ok and thats safe for things like a sting

[jQuery] Re: Link a complete table row (tr)

2009-01-29 Thread Ricardo Tomasi
Please avoid replying to a message changing the subject, it messes up the group page. $('tr').each(function(){ var link = $(this).find('a[href]')[0].href; $(this).click(function(){ window.location = link; }); }); On Jan 29, 9:10 am, DCT, Heidi Anselstetter

[jQuery] Re: Unobtrusive javascript with jQuery

2009-01-29 Thread Ricardo Tomasi
On Jan 29, 11:51 am, Eric Garside gars...@gmail.com wrote: Yea, I can't speak to number 3, but reading up on how 1.3 deals with events would be helpful there. As for #2, I don't know what standards they're recommending you play to, but I ALWAYS hide from the CSS instead of the javascript.

[jQuery] Re: eval(JSON_DATA) how safe is it?

2009-01-29 Thread Trend-King
ok thats right but $.ajax() also do that so my problem is how safe it is to pass script/script through JSON and the append it to the DOM and it will be executed On 29 Jan., 15:13, jQuery Lover ilovejqu...@gmail.com wrote: Reading the plugin homepage it does not. It only encodes and decodes

[jQuery] Re: Unobtrusive javascript with jQuery

2009-01-29 Thread amuhlou
In response to #1: The idea of javascript being unobtrusive is related to semantics more than efficiency. Putting an onclick inside of an a clutters the code with script. Keeping your event handlers in an external file is good for the same reasons that you keep your css in an external file

[jQuery] Re: Has anybody managed to print a sorted table using table sorter?

2009-01-29 Thread livewire9174
the problem is, i dont want to print the whole page, I just want to print the sorted table, is this possible? On Jan 29, 10:40 am, Fisher Ning ning...@gmail.com wrote: I just gave a try. The page can be printedwith sorted list. Fisher Ningwww.21show.com 2009/1/29 livewire9174

[jQuery] Re: Strange .attr('src') behavior in IE

2009-01-29 Thread MorningZ
I wouldn't call it strange, as IE automatically appends the full domain name on any link anyways, this topic from earlier in the week deals with this exact issue http://groups.google.com/group/jquery-en/browse_thread/thread/7d53af6110ce65d6/b8c52a44333ebbde?hl=en On Jan 28, 10:49 pm, spaceage

[jQuery] Re: Unobtrusive javascript with jQuery

2009-01-29 Thread Ricardo Tomasi
On Jan 29, 4:25 am, B bilalallaw...@gmail.com wrote: I have read a lot of articles about separating javascript from markup and jQuery encourages the practice of unobtrusive javascript. Even though jQuery makes it extremely easy to implement event binding, I have a few questions which I was

[jQuery] Re: Has anybody managed to print a sorted table using table sorter?

2009-01-29 Thread jQuery Lover
Add new CSS file for printers like this: link rel=stylesheet media=print href=printer.css / Hide all other content (display:none) but your table... Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Thu, Jan 29, 2009 at 7:24 PM, livewire9174 markmch...@gmail.com wrote:

[jQuery] Re: newbie: jquery to modify look of broken links?

2009-01-29 Thread T
On Jan 28, 10:27 pm, Ricardo Tomasi ricardob...@gmail.com wrote: Possible it is, but it's a very very heavy burden on the user, completely inneficient and unreliable. You'd have to load the URL in an iframe and wait for the 'onload' call, if it's not called after a certain time you consider

[jQuery] Re: .val is not a function

2009-01-29 Thread Ricardo Tomasi
You're returning a plain HTML Element, not a jQuery object. Either change return $([id*=' + elementId + '], $(context))[0]; to return $([id*=' + elementId + '], $(context)); or change return getElementWithContext(elementId, context).val; to return $( getElementWithContext(elementId, context)

[jQuery] Re: autocomplete plugin by bassistance - loading of huge number of records

2009-01-29 Thread Saumin
Hi Jörn Thanks for your quick response. Would you have some sample code to do that? It would be great if you can point me in a direction with respect to jquery.autocomplete.js. I appreciate it. Saumin On Jan 29, 3:28 am, Jörn Zaefferer joern.zaeffe...@googlemail.com wrote: I recommend hard

[jQuery] Re: .val is not a function

2009-01-29 Thread trancehead
At Last! Thanks for the insight. William On Jan 29, 4:42 pm, Ricardo Tomasi ricardob...@gmail.com wrote: You're returning a plain HTML Element, not a jQuery object. Either change return $([id*=' + elementId + '], $(context))[0]; to return $([id*=' + elementId + '], $(context)); or

[jQuery] fixed cleartype fadeIn issue in IE, but element still doesn't start out hidden

2009-01-29 Thread hypnos
This works in firefox, I load the page into a div, hide it using $ (this).hide() then fade it in. The first function here fixes the issue with fade in destroying cleartype text - but in IE you initially see the ugly text and then when the fadeIn is done you get the cleartype text. Before that

[jQuery] [validate] onkeyup for single field

2009-01-29 Thread simshaun
This question is in regards to the jQuery validation library http://bassistance.de/jquery-plugins/jquery-plugin-validation/ Is it possible to turn off onkeyup for a singe field instead of the entire form? It'd be cool if I could just put onkeyup=false within the rules array for that field.

[jQuery] Re: autocomplete plugin by bassistance - loading of huge number of records

2009-01-29 Thread James Hughes
Personally I'd recommend only returing only a small subset of the results from the backend. Rather than returning all 5000+ results needlessly (is anyone going to really look through them all or just keep filtering?). Limit the DB query to 100 or so. You'll need to set matchSubset = false

[jQuery] Cancel concurrently running ajax events

2009-01-29 Thread Renso
I have a table with a couple of rows in my web-page. When the user hovers over an image on each row, an ajax call is fired that gets some data from the server for that particular row and displays it to the user in a popup. However, the user may move their mouse very quickly over the column with

[jQuery] insertAfter return value

2009-01-29 Thread Dave Brondsema
If I run $('spanfoo/span').insertAfter('p') and there are for example 2 ps, it will insert 2 spans. But the return value of the code is only the first span. So if I want to chain an onclick handler after that, it only gets bound to the first span not all the inserted ones. Is that normal? Is

[jQuery] superfish menu on beez

2009-01-29 Thread liku
I have started to use joomla 1.5 and I would like to change manu and start using superfish. I adde css na javascript link to index.php and now I do no know what to do next. When I insert his code: script type=text/javascript $(document).ready(function(){ $(ul.sf-menu).superfish();

[jQuery] Jquery variable passing

2009-01-29 Thread batuj
Hi all, I'm really new to Jquery. I've a basic ajax form post, my question is how can I take the data section of the below request in pathSubmit.php? My aim is to pass some variables(in the case below pat=12 ) from host php file to the file I'm calling in Ajax without using ? sending and session

[jQuery] Long Image Scroller (jCarousel)

2009-01-29 Thread Sbudah
Hi Guys, I have a long image that is about 2200 px wide that I need to display within a 500px div. I need a solution similar to jCarousel (Lite) that would allow users to scroll horizontal either using a Mouse Wheel or simply hover a button (preferably right or left half of the image to move to

[jQuery] Beginner question: Using a function inside of an external plugin

2009-01-29 Thread kgosser
Hello all, This is a beginner question, and may well be more of a JavaScript answer than a jQuery answer. None the less, here is my example: I'm using the ultra lightweight Rich Text Editor plugin (http:// batiste.dosimple.ch/blog/posts/2007-09-11-1/rich-text-editor- jquery.html) It is called

[jQuery] Re: slideViewer v1.1 + Tooltip v1.3 + jQuery v1.3.1 = tooltips fail

2009-01-29 Thread Matt
I have a little demo up to check out. http://jquery.oniegirl.com/svw/ (the pictures are not mine, just re-using one of the demos from the slideviewer site) 2 versions: the first works (using jQuery 1.2.6, easing 1.3, OLD tooltip plugin, slideviewer 1.1) the second does not

[jQuery] issue with ajax function

2009-01-29 Thread graphicsxp
Hi, I'm trying to send a string to my webservice. The method I call expects a string parameter and returns a string of JSON data. I've tried this way : $.ajax({ url: Publication.asmx/GetPublication, data: pText=some text, type: POST, contentType:

[jQuery] Re: [validate] onkeyup for single field

2009-01-29 Thread Jörn Zaefferer
Good question, and I don't yet have a good solution at hand. One approach I'd try is to add your own keyup-handler to the input field, as always cancel the event (return false). That way the event doesn't get bubbled up to the parent form. Jörn On Thu, Jan 29, 2009 at 4:29 PM, simshaun

[jQuery] Re: superfish menu on beez

2009-01-29 Thread Joel Birch
On Jan 30, 1:22 am, liku li...@centrum.cz wrote: I have started to use joomla 1.5 and I would like to change manu and start using superfish. I adde css na javascript link to index.php and now I do no know what to do next. When I insert his code:   script type=text/javascript    

[jQuery] Re: issue with ajax function

2009-01-29 Thread MorningZ
Right from the docs http://docs.jquery.com/Ajax/jQuery.ajax#options Object must be Key/Value pairs something that data: pText=some text is not (it's a string) so with that pointed out, try $.ajax({ url: Publication.asmx/GetPublication, data: { pText: some text },

[jQuery] Re: [validate] onkeyup for single field

2009-01-29 Thread simshaun
I tried adding onkeyup=return false; to the field. Doesn't seem to work though. The solution I came up with is to add this in the config array. onkeyup: function(element) { if ($(element).attr('name') != 'username') { $.validator.defaults.onkeyup.apply(this,arguments); } }

[jQuery] Re: eval(JSON_DATA) how safe is it?

2009-01-29 Thread Stephan Veigl
If you are trying to send JavaScript via AJAX that's not JSON. JSON is about data only (see: http://json.org/), and that's exactly what makes secureEvalJSON() secure. This function checks that there is nothing else in your JSON except data, especially no JavaScript commands. QUOTE:

[jQuery] Re: issue with ajax function

2009-01-29 Thread graphicsxp
Thanks.. I tried that but I'm getting an error before the webservice is reached : Invalid JSON primitive: pText. Like I said, my webservice's method expects a string, not a JSON key- value pair. I'd be surprised if we can't pass a simple string to a webservice ? On 29 jan, 16:24, MorningZ

[jQuery] Re: eval(JSON_DATA) how safe is it?

2009-01-29 Thread Eric Garside
Honestly, there's not a whole bunch you could do with JSON that's insecure. The entire meaning of JSON is Javascript Object Notation. All it means is, if you were to type a string of json out within a script tag, it would be a Javascript object. var json = {success: true, name: 'Some Customer',

[jQuery] Re: None of the tutorials I try work for jquery

2009-01-29 Thread surreal5335
Well I tried that, and sad to say but the }); was in there. Am I not calling the jquery library properly? Does jquery have a problem the html doc I have at the top of my code? Thanks a lot for your help On Jan 28, 9:32 pm, Karl Swedberg k...@englishrules.com wrote: Hi there, Looks like

[jQuery] Re: Cancel concurrently running ajax events

2009-01-29 Thread Beres Botond
You are looking at this the wrong way. Instead of thinking of cancelling lots of ajax requests once they have been sent already.(which is not really doable, or ugly, as far as I know), you shouldn't be making all those requests in the first place. Let me explain: You shouldn't fire an ajax

[jQuery] Re: eval(JSON_DATA) how safe is it?

2009-01-29 Thread Trend-King
ok, but why is it not JSON to submit a sting variable in json within HTML? for example making a call to a php script which returns an array of strings in HTML for which i could update the DOM for example {items:{box_test:Some HTML here,box_test2:Some HTML there}} and then do something like

[jQuery] Re: None of the tutorials I try work for jquery

2009-01-29 Thread amuhlou
Have you tried linking directly to the jquery code stored by google? Your first script tag would be script type=text/javascript src=http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/ jquery.min.js/script If your code works when you use that, then it's a problem with how you're trying to access

[jQuery] Re: eval(JSON_DATA) how safe is it?

2009-01-29 Thread Trend-King
i think so, who could manipulate that JSON string with script/ script in it? and it is exactly the same if i don't use JSON if somewhere in the javascript is something like $(box_test).html(var_goes_here); some one can manipulate the var_goes_here? and write here scriptalert

[jQuery] Re: newbie: jquery to modify look of broken links?

2009-01-29 Thread brian
On Thu, Jan 29, 2009 at 9:36 AM, T a_j...@bellsouth.net wrote: On Jan 28, 10:27 pm, Ricardo Tomasi ricardob...@gmail.com wrote: Possible it is, but it's a very very heavy burden on the user, completely inneficient and unreliable. You'd have to load the URL in an iframe and wait for the

[jQuery] Re: eval(JSON_DATA) how safe is it?

2009-01-29 Thread Trend-King
$(document).ready(function(){ $.ajax({ url: test.html, cache: false, success: function(html){ do_something(html) } }); }); function do_something(html){ $(#results).append(html); } it's from the jquery docs so that is also unsecure, because i could manipulate the html var an fill

[jQuery] Re: jquery tabs ajax mode

2009-01-29 Thread m.ugues
Sorry for the OT. I have this example: div id=example class=flora ul id=tabs li class=on allarga_tab_100spana href=movimenti.htmMOVIMENTI/a/span/li li class=allarga_tab_120spana href=dettaglio_saldo.htmDETTAGLIO SALDO/a/span/li

[jQuery] Re: eval(JSON_DATA) how safe is it?

2009-01-29 Thread Eric Garside
Javascript is the most unsecure thing ever. But only for the current user of the page. While on your page, I can type in to the URL box: javascript:alert(document.cookie) and it will. And this problem isn't even really all that problematic, until you bring Ajax into it. The fear is never really

[jQuery] [validate plugin] - not working with multiple forms

2009-01-29 Thread Joel Taylor
hi all - so I'm using the 'validate' plugin, and I seem to have an issue where if I have multiple forms, the plugin only validates the first form. $('.validate').validate(); Obviously I have multiple forms, so I'm using a class selector. But when I'm testing the form, the validate plugin throws

[jQuery] [jquery.form.js v2.18] file upload field and standard fields

2009-01-29 Thread phicarre
jquery.form.js v2.18 I have a form with a lot of fields and one upload file field: form action='' id='form1' enctype='multipart/form-data' style='font- size:85%' input type=hidden name=MAX_FILE_SIZE value=10 / table trtdNom: /tdtdinput type='text' size='30' id='nom'

[jQuery] AUTOCOMPLETE HTML support

2009-01-29 Thread Dinesh B Vadhia
Hi! I've always assumed that the text displayed in an autocomplete box is 'text'. What if the text has html tags eg. mathML tags? Is this supported and if not could it be? Thanks. Dinesh

[jQuery] Re: [validate plugin] - not working with multiple forms

2009-01-29 Thread Jörn Zaefferer
Try this: $(.validate).each(function() { $(this).validate(); }); Jörn On Thu, Jan 29, 2009 at 7:00 PM, Joel Taylor joelatay...@gmail.com wrote: hi all - so I'm using the 'validate' plugin, and I seem to have an issue where if I have multiple forms, the plugin only validates the first

[jQuery] Re: eval(JSON_DATA) how safe is it?

2009-01-29 Thread Eric Garside
Technically yes. But only if you don't trust your own server. :) Like, because of the security concern, you can ONLY ajax from the same domain. (*.whatever.com can only perform an AJAX request on *.whatever.com domains). However, you were talking about JSON in the beginning, which has methods

[jQuery] Re: [validate plugin] - not working with multiple forms

2009-01-29 Thread Joel Taylor
Thanks Jorn! That worked. :) Phew. On Jan 29, 12:05 pm, Jörn Zaefferer joern.zaeffe...@googlemail.com wrote: Try this: $(.validate).each(function() {   $(this).validate(); }); Jörn On Thu, Jan 29, 2009 at 7:00 PM, Joel Taylor joelatay...@gmail.com wrote: hi all - so I'm using the

[jQuery] Re: None of the tutorials I try work for jquery

2009-01-29 Thread Karl Swedberg
On Jan 29, 2009, at 12:27 PM, amuhlou wrote: Have you tried linking directly to the jquery code stored by google? Your first script tag would be script type=text/javascript src=http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/ jquery.min.js/script If your code works when you use that, then

[jQuery] Re: Unobtrusive javascript with jQuery

2009-01-29 Thread Karl Swedberg
Hi, I'll take a stab at answer questions one and two: On Jan 29, 2009, at 1:25 AM, B wrote: 1) When you bind elements on document.ready(), isn't that more inefficient than using the onclick() etc function available inside the markup. When you bind the events on document.ready() you have to

[jQuery] Re: Strange .attr('src') behavior in IE

2009-01-29 Thread ksun
I tried it too, and jquery is not consistent in handling the href/src attribute in IE. I don't know why it is giving the absolute url when a/img tags are loaded via ajax. @MorningZ , the topic you have linked to, suggests that using $ (this).attr(href) will always give the actual text in href

[jQuery] Re: script and strange behaviours with ie

2009-01-29 Thread Saledan
any suggest? thx On 18 Gen, 16:31, Saledan bastil...@gmail.com wrote: up! thanks On 8 Gen, 07:18,Saledanbastil...@gmail.com wrote: up, please! thanks On 3 Gen, 11:50,Saledanbastil...@gmail.com wrote: Hi, yes i supposed that browsers older than ie6 are now unsupported by

[jQuery] [autocomplete] changing value of hidden input

2009-01-29 Thread Michael
I'm using Jörn's autocomplete plugin and I'm having trouble changing the value of my hidden input. The first part works fine - it searches the array and I can select select any of the results. However, I'm trying to grab the id key value from the array and use it as the value of my hidden input

[jQuery] Re: None of the tutorials I try work for jquery

2009-01-29 Thread surreal5335
There we go it was the calling of the source that was messing it all up Thanks a lot for helping me get started On Jan 29, 11:35 am, Karl Swedberg k...@englishrules.com wrote: On Jan 29, 2009, at 12:27 PM, amuhlou wrote: Have you tried linking directly to the jquery code stored by google?

[jQuery] Re: Selection by CSS background-color

2009-01-29 Thread kevotheclone
Thanks for the reply Shane! Yes looping through the parent is an option that I was hoping to avoid. Rigth now my Timeline only displays 30 projects (each one composed of 2 div elements), but SIMILE Timeline generates many more div elements within the parent containing div; 380 to be exact. So

[jQuery] Re: if condition within a loop

2009-01-29 Thread pho99
Thank you kindly for your reply. I didn't even think of using PREV. -Long On Jan 29, 4:13 am, Stephan Veigl stephan.ve...@gmail.com wrote: First of all, you have a typo in your css for #portMain (line 5), the color value should have exactly 6 (or 3) hexadecimal digits 1. (line 35) you are

[jQuery] grouping validation

2009-01-29 Thread nxtToU
Hey folks Is there a way to group validation? e.g. $(#myform).validate({ groups: { username: fname lname }, rules: { username: { required: true, minlength: 3 } }, messages: { username: { required: Pls fix your entries, minlength:

[jQuery] Re: newbie: jquery to modify look of broken links?

2009-01-29 Thread James Westgate
You could select all anchor tags, then use the Ajax functions to see if you get a successfull response. You may be able to run this in the background as Ajax is asynchonous, so the links would highlight as each page is called. Not sure if you can stop the request once you get a 200 status, so

[jQuery] jquery slider- make handle clickable

2009-01-29 Thread m...@fonolo.com
Hello, I'm using the ui slider plug-in as a time line for a javascript+flash mp3 player- so I'm setting the min value to 0, and the max value to the duration of the audio clip. Everything works as expected, and I can adjust the location of the handle based on the playback progress. Now I want

[jQuery] Show hide layer on hover problem

2009-01-29 Thread cchun...@gmail.com
I have created a login layer that slides down from the top of the screen and i want it so that if the mouse leaves the layer or you click outside of the layer it slides back up. I have it working on mouse out but it is buggy and since i am new to this i am sure there is probably a much better way

[jQuery] Re: Cancel concurrently running ajax events

2009-01-29 Thread rchung77
We had a similar issue recently. You want to use submission throttling. http://ajaxpatterns.org/wiki/index.php?title=Submission_Throttling Take a look at the section on Zuggest. Rich On Jan 29, 9:58 am, Renso rhollhu...@live.com wrote: I have a table with a couple of rows in my web-page.

[jQuery] cancel jQuery binded event handlers

2009-01-29 Thread 1nd1go
Hi all, I am trying to cancel event propagation in handler I have defined in the following manner: element.onclick = fuction() { /* first handler */ } I have also defined handler with jQuery: $('element').click( function() { /*second handler*/ } ) So the point is I want to prevent invocation

[jQuery] Re: Beginner question: Using a function inside of an external plugin

2009-01-29 Thread James Westgate
Place this inside the plugin closure: jQuery.fn.rte.disableDesignMode = function(iframe, submit) { disableDesignMode(iframe, submit); } Then call it using jQuery.fn.rte.disableDesignMode(x,y); Better still, ask the author to add this as a public function. On Jan 29, 3:48 pm, kgosser

[jQuery] High Point Village Website

2009-01-29 Thread kim3er
Hi, I've just finished working on a new web site using jQuery 1.3.1 and would appreciate feedback. http://www.highpointvillage.co.uk/ Rich

[jQuery] Simple Question from a Student on Functios

2009-01-29 Thread photogeek
Can I use JQUERY even though I have other javascript functions inmy header? Is there an order that I need to load the functions.ie do I link to the JQUERY code first and then set the other functions? Andy

  1   2   >