[jQuery] How to get variable from iframe?

2009-08-10 Thread David .Wu
a.php .. var a = 123; Can I catch variable a in b.php?

[jQuery] Re: Best cookie plug-in?

2009-08-10 Thread ldexterldesign
Cheers Jack. I'll check it out. Best, L On Aug 9, 7:09 pm, Jack Killpatrick wrote: > I've used this with success: > > http://plugins.jquery.com/project/cookie > > - Jack > > ldexterldesignwrote: > > Easy guys, > > > Just getting started with cookies this afternoon and wondering what > > plug-in

[jQuery] Re: Is there a way to determine the scrollTop position of the top of the viewport?

2009-08-10 Thread Richard D. Worth
var scrollTop = $(window).scrollTop(); - Richard On Mon, Aug 10, 2009 at 9:28 PM, Rick Faircloth wrote: > I’m trying to position a div that’s used as a modal window 50px from the > top of the > > current viewport, no matter where the page currently is scrolled to. > > > > I found “getScrollTop()

[jQuery] Re: AJAX and JSON

2009-08-10 Thread Cam Spiers
I also recommend using json2.js for anything more then just a basic key-value json string. I ran into troubles with the standard jQuery json approach, when implementing a complex system that transfers a lot of json to and from the server. And as Michael Geary mentions: "If you want to *generate*

[jQuery] Re: Problem on IE8

2009-08-10 Thread Gaiz
User that use my website can customize CSS. I do not know why it error on IE8 only (IE7, FF is work fine) On Aug 11, 2:26 am, Liam Byrne wrote: > How are you setting the border in CSS ? > > If you set it explicitly, it should work cross-browser > > L > > > > Gaiz wrote: > > I found 2 problems w

[jQuery] Re: $ajax() question

2009-08-10 Thread Jules
JavaScriptSerializer is included in AJAX 1.0. It is compatible with .NET 2.0. http://www.asp.net/ajax/downloads/archive/ You don't have to use the ajax component on your client to use it. On Aug 11, 1:18 pm, yi wrote: > Hi Jules: > If i use old version of ASP.net, Can i Deserialize Json data?

[jQuery] Re: $ajax() question

2009-08-10 Thread yi
Hi Jules: If i use old version of ASP.net, Can i Deserialize Json data? thanks Jules!!! On Aug 11, 3:01 pm, Jules wrote: > Opps, > You are right, change the contentType to > > contentType: "application/json; charset=utf-8" > > here is a snippet to handle generic json in C# .NET 3.5 > > JavaScri

[jQuery] Re: AJAX and JSON

2009-08-10 Thread MorningZ
"Speaking of: i recommend AGAINST using getJSON()" I'd also recommend against use of $.getJSON for a totally different reason: There is no option to "catch" errors. getJSON: function(url, data, callback) { return jQuery.get(url, data, callback, "json"); }, so if something happens serv

[jQuery] Re: $ajax() question

2009-08-10 Thread Jules
Opps, You are right, change the contentType to contentType: "application/json; charset=utf-8" here is a snippet to handle generic json in C# .NET 3.5 JavaScriptSerializer ser = new JavaScriptSerializer(); StreamReader reader = new StreamReader(Request.InputStream); object input = ser.Deserializ

[jQuery] OT: 3-day jQuery class next week

2009-08-10 Thread Karl Swedberg
Hey everyone, sorry this is a little off-topic and very late notice, but I thought perhaps a few of you would be interested in a three-day class I'll be teaching next week, August 19-21. It's in the lovely town of Holland, Michigan, and the folks who are putting it together do a fantastic

[jQuery] Re: $ajax() question

2009-08-10 Thread yi
hi Jules: I use Request("Arg") , but it doesn't work. it always give me empty string contentType: "text" is it right? do i need make it contentType: "Json", ? If i need use JSON, do you know how to read json data at sever side in asp.net? thanks so much!!! On Aug 11, 12:50 pm, Jules wrote:

[jQuery] Re: listmenu

2009-08-10 Thread Jack Killpatrick
Paul, I found and fixed that issue, thanks for bringing it to my attention. It also inspired me to add another option that's been on my backburner for a while ;-) I've added an includeOther: true/false option that, if true, will cause a [...] menu item to appear at the end of the nav bar, w

[jQuery] Re: AJAX and JSON

2009-08-10 Thread Miket3
I'll just add my 2 cents from novice to novice. 1. JSON is just a lightweight markup language. Its like HTML, and more like XML but just without the weight. And it is easier to read with the eyeball. JSON uses {} squiggles and : and [] and others to markup the data. JSON {"CATALOG" : "JCPENNY"} X

[jQuery] Re: (Validate) Error messages in Summary section

2009-08-10 Thread Jules
Check out errorLabelContainer http://docs.jquery.com/Plugins/Validation/validate#toptions On Aug 10, 9:32 pm, "dazad...@gmail.com" wrote: > Hi, > > I'm new to jQuery and the validation plugin, I just wondered if it is > possible to get the error messages to be shown in an error summary > sectio

[jQuery] Re: Two Menus Showing up

2009-08-10 Thread Charlie
disabling other menu is a Joomla issue, try their forums. As for links color, that's all in the CSS. The old menu css doesn't get removed so you probably have conflicts between superfish css rules and template menu rules. Firebug can help chase those issues down FlowSnowboards wrote: Forgo

[jQuery] Re: AJAX and JSON

2009-08-10 Thread Stephan Beal
On Aug 11, 12:26 am, "Michael Geary" wrote: > Just use $.getJSON() or $.ajax() with the 'json' or 'jsonp' dataType as > needed. Speaking of: i recommend AGAINST using getJSON() because it muddles up my Apache logs horribly (the JSON gets encoded in the request, which gets logged as urlencoded ga

[jQuery] Re: Fade In/Fade Out effect

2009-08-10 Thread Alexander Freiria
first, try using a combination of a loop to loop through all your "words". then, fade in the first word[i] with the fadein function then, using the callback, call the fadeout function this is very general, i know. in the callback of function (just thought of this) use the settimeout() and pass

[jQuery] Is there a way to determine the scrollTop position of the top of the viewport?

2009-08-10 Thread Rick Faircloth
I'm trying to position a div that's used as a modal window 50px from the top of the current viewport, no matter where the page currently is scrolled to. I found "getScrollTop();", but couldn't make that work. I checked out jQuery's "scrollTop", but that get the y position or offset of a ma

[jQuery] Fade In/Fade Out effect

2009-08-10 Thread jerome
Hi all, At this url - http://thespacebetweenthewords.org/sandbox/ I am attempting to cycle through arrays of words with a FadeIn/FadeOut effect. The array of words displayed doesn't seem to be starting at [0], though. I am perhaps missing something with the order in which the functions are exec

[jQuery] Re: can't return value after $.ajax call

2009-08-10 Thread Steven Yang
by using "var bool = true;"you made "bool" local to your callback and not to your "checkIfUsername" so "checkIfUsername" does not have a reference of bool you have to make bool local to checkIfUsername so you first declare "var bool" in checkIfUsername, then allow your callback to assign it a value

[jQuery] Re: $ajax() question

2009-08-10 Thread Jules
Use Request("Arg") instead, this syntax gets the Arg from data post or querystring. Do not enclose args2, the server will get "args2" instead of the value of args2. data:{Arg:args2} On Aug 11, 10:12 am, yi wrote: > Hi Jules: > thank you for your help!! > if I use this: > > type: "POST", > url:

[jQuery] Re: $ajax() question

2009-08-10 Thread yi
Hi Jules: thank you for your help!! if I use this: type: "POST", url: "mywebpage.aspx, data:{Arg:"args2"} Do you know how can i get value of arg from sever side(code behind)? I use asp.net, but i dont know how to fatch data when data put inside {}, " data:{Arg:"args2"} " Can i still use "Request

[jQuery] Re: refactoring help/ suggestions?

2009-08-10 Thread Jules
Assuming your html format as follows: Para a Paragraph a Para b Paragraph b Para c Paragraph c Use this: $(document).ready(function() { $("a.p").next("p").hide(); $("a.p").hover(function() { $(this).fadeOut("slow"

[jQuery] Re: VALIDATION not validating when submit button clicked....

2009-08-10 Thread Miket3
DO NOT include hidden fields in the plugin data. I had 3 hidden fields that weren't required but they were phoneUS. That must be a no no. I havent thought about the logic behind... but I am moving on to the next problem. and it may have been that i had no messages setup for them. only rules.

[jQuery] Re: VALIDATION not validating when submit button clicked....

2009-08-10 Thread Miket3
Here it is minus the submit handler var v = $("#myform").validate({ rules: { username: {required: true, minlength: 4, remote: {url:"lookup.php", type : "post", data: {table:"members",

[jQuery] Re: $ajax() question

2009-08-10 Thread Jules
There is a limit on url length depending on the browser. http://classicasp.aspfaq.com/forms/what-is-the-limit-on-querystring/get/url-parameters.html use type:"POST" and data: instead and do not enclose the object declaration data:{Arg:args2} instead of data:"{Arg:args2}" On Aug 11, 8:41 am, y

[jQuery] $ajax() question

2009-08-10 Thread yi
$.ajax({ type: "POST", url: "mywebpage.aspx? Arg="+args2, contentType: "text", data:"{}", dat

[jQuery] Re: AJAX and JSON

2009-08-10 Thread Michael Geary
> > From: Joey Derrico > > > > I am a novice at AJAX and JSON (Ok, I am a novice at > > JavaScript.), and > > I am brand new to jQuery. I wanted to use JSON in a project I am > > working on and I read various tutorials on using JSON with jQuery > > however none of them answered some of my ques

[jQuery] Re: VALIDATION not validating when submit button clicked....

2009-08-10 Thread Jörn Zaefferer
Please show the rest of your code. Jörn On Mon, Aug 10, 2009 at 11:49 PM, Miket3 wrote: > > Here is my handler: > >   submitHandler: function(form) { >     alert('I CANT GET THIS TO TRIGGER'); >  }, > > > Here is my button: > > > > How do i trigger a validate when the submit button is clicked?

[jQuery] Re: BlockUI overlapping issue with element negative margin

2009-08-10 Thread Mike Alsup
> Could you consider, if possible, reverting the blocking element's > display attribute back to static after unblocking? The plugin already does that.

[jQuery] VALIDATION not validating when submit button clicked....

2009-08-10 Thread Miket3
Here is my handler: submitHandler: function(form) { alert('I CANT GET THIS TO TRIGGER'); }, Here is my button: How do i trigger a validate when the submit button is clicked? All of my validations work while I am working with the form but the button does zilch.

[jQuery] Re: Using ScrollTo, IE displays hidden info before it hides it — Any help/ideas?

2009-08-10 Thread Stephan Beal
On Aug 10, 6:26 pm, jen wrote: > Do you have any idea how to have the hidden video viewers hidden upon > page load in IE?  It's performing on Mac Safari & FF, and Windows FF, > but in Windows IE it's a lot slower to hide the info. You could try setting an explicit visibility on the element: ...

[jQuery] AJAX and JSON

2009-08-10 Thread Joey Derrico
I am a novice at AJAX and JSON (Ok, I am a novice at JavaScript.), and I am brand new to jQuery. I wanted to use JSON in a project I am working on and I read various tutorials on using JSON with jQuery however none of them answered some of my questions. The biggest one is, does jQuery support JSON

[jQuery] Ajax and LiveQuery

2009-08-10 Thread Kilhom
Hi ! I use the plugin "live query", i have checked many times my code but it dont works, i want to use jquery after an Ajax request. Here is my code : " $('#refresh_inventaire').livequery('click',function(){ajax_storage ();}); " When I click on the refresh link, it does refresh (using "ajax_sto

[jQuery] Re: AJAX and JSON

2009-08-10 Thread Stephan Beal
On Aug 10, 9:58 pm, Joey Derrico wrote: > I am a novice at AJAX and JSON (Ok, I am a novice at JavaScript.), and I am > brand new to jQuery. I wanted to use JSON in a project I am working on and I > read various tutorials on using JSON with jQuery however none of them > answered some of my questi

[jQuery] Re: input has focus

2009-08-10 Thread James
You can still use the same technique but just not use jQuery to do it. On Aug 10, 10:09 am, MartinBorthiry wrote: > On 10 ago, 16:49, "Dan G. Switzer, II" > wrote: > > > You can add a class to your field when it has focus and then check for the > > class: > > $(":input") > > // add focus/blur e

[jQuery] Re: jquery + cycle + IE

2009-08-10 Thread Mike Alsup
> http://negativespace.ca/clients/mirrorbuilder/ > > > > Works fine in Safari and Firefox so far, but for whatever reason, both > of those controllers will not show up in IE6 or IE7. I am a little bit > stumped. Just looked in IE7 - looks good to me. Did you fix it?

[jQuery] Re: Full jQuery website

2009-08-10 Thread Stephan Beal
On Aug 10, 7:19 pm, Cyril wrote: > Is there any project about a website using pure jQuery for rendering > the pages ? It's funny you mention that, because i'm working on exactly that right now: an application framework for writing apps in "pure JS", using HTML only to get the JS and CSS loaded,

[jQuery] Re: Select Option add Class

2009-08-10 Thread Benn
this worked great! thank you muchly! On Aug 10, 11:19 am, Eduardo Pinzon wrote: > try this: > $("#custom1 option").each(function(){ >       var class = $(this).html(); >       addClass(class); > > }); > > Eduardo Pinzon > Web Developer > > 2009/8/10 Benn > > > > > This might have been resolved,

[jQuery] Re: animate image position

2009-08-10 Thread Paul Mills
Hi, Can you post an example of your animation code or link to a demo page. Paul On Aug 10, 4:39 pm, Tom Cool wrote: > Hi, > > I'm experiencing a large amount of flickering in a image i move with > animate(). Looking at jQuery's source code, i think it has something > to do with the setInterval

[jQuery] I need Validation Plugin help... (again)

2009-08-10 Thread Miket3
This thing has kicked my butt all week long. Yesterday, I actually got it to work.(almost). Since I am new to this plugin, I am using FRANKENSTEIN code built from examples and samples. here is my code: success: function(label) { var valid_img = '';

[jQuery] Re: input has focus

2009-08-10 Thread MartinBorthiry
On 10 ago, 16:49, "Dan G. Switzer, II" wrote: > You can add a class to your field when it has focus and then check for the > class: > $(":input") > // add focus/blur events > .focus(function (){ > $(this).addClass("has-focus");}) > > .blur(function (){ > $(this).removeClass("has-focus"); > > })

[jQuery] Re: I need Validation Plugin help... (again)

2009-08-10 Thread Miket3
I found the issue I wasnt using the errorPlacement option. I added this. errorPlacement: function(error, element) { error.appendTo( element.parent() ); }, On Aug 10, 4:17 pm, Miket3 wrote: > This thing has kicked my butt all week long

[jQuery] Re: Problem on IE8

2009-08-10 Thread Liam Byrne
How are you setting the border in CSS ? If you set it explicitly, it should work cross-browser L Gaiz wrote: I found 2 problems when I use jQuery on IE8 1. When I use $('elementId').css('border-top-width'), it return "medium", but other browsers return "0px" 2. After domready, my page, that'

[jQuery] Re: input has focus

2009-08-10 Thread Dan G. Switzer, II
You can add a class to your field when it has focus and then check for the class: $(":input") // add focus/blur events .focus(function (){ $(this).addClass("has-focus"); }) .blur(function (){ $(this).removeClass("has-focus"); }); Now you can just do $("input#1").is(".has-focus") to check if it has

[jQuery] Re: Get the ID of a button that is clicked

2009-08-10 Thread Eduardo Pinzon
sorry, tanks for tip 2009/8/10 Charlie Griefer > Aye, but I've been reprimanded (on this list) for suggesting that (and > incurring the 'overhead' of a jQuery object) when 'this' works just fine :) > > > On Mon, Aug 10, 2009 at 11:56 AM, Eduardo Pinzon wrote: > >> or >> >>$(function() {

[jQuery] [UI 1.7.2] Datepicker: Encapsulated theme?

2009-08-10 Thread Micky Hulse
Hi, For the sake of learning, does anyone know where I could nab a copy of the datepicker CSS that does not have any extra UI css? Basically, I just want to style the datepicker sans extraneous UI css. :) The "ui.datepicker.css" gets me pretty far, but I appear to be missing some styles. Should

[jQuery] Re: Get the ID of a button that is clicked

2009-08-10 Thread Anoop kumar V
Would e.target.id also work in this case? Thanks, Anoop On Mon, Aug 10, 2009 at 3:00 PM, Charlie Griefer wrote: > Aye, but I've been reprimanded (on this list) for suggesting that (and > incurring the 'overhead' of a jQuery object) when 'this' works just fine :) > > > On Mon, Aug 10, 2009 at 11

[jQuery] Re: Two Menus Showing up

2009-08-10 Thread FlowSnowboards
Forgot to mention I am using Joomla 1.5 On Aug 10, 10:04 am, FlowSnowboards wrote: > I installed the Superfish Module and all appears to be working > properly, My question is The Original Horizontal Nav is still showing > up? How do I Disable? > Also, The links with drop down's are gray and the

[jQuery] input has focus

2009-08-10 Thread MartinBorthiry
Hello: I'm trying to know if an input has focus. Is that possible using jquery? samething like this: $('input#1').has_focus()

[jQuery] Re: listmenu

2009-08-10 Thread Jack Killpatrick
Hi Paul, Thanks for this info, I'll add it to my test cases and thanks for letting the community know. I was actually working on a new version of the plugin yesterday, which adds one new feature: an onClick option that you can pass a function to for handling clicks in the dropdown menu. If

[jQuery] Re: Get the ID of a button that is clicked

2009-08-10 Thread Charlie Griefer
Aye, but I've been reprimanded (on this list) for suggesting that (and incurring the 'overhead' of a jQuery object) when 'this' works just fine :) On Mon, Aug 10, 2009 at 11:56 AM, Eduardo Pinzon wrote: > or > >$(function() { > >$('#myGroup input:button').click(function(e

[jQuery] animate image position

2009-08-10 Thread Tom Cool
Hi, I'm experiencing a large amount of flickering in a image i move with animate(). Looking at jQuery's source code, i think it has something to do with the setInterval it uses to calculate the animation; when binding the animation to 'mousemove' its runs smoothly. Any ideas on how to improve th

[jQuery] Two Menus Showing up

2009-08-10 Thread FlowSnowboards
I installed the Superfish Module and all appears to be working properly, My question is The Original Horizontal Nav is still showing up? How do I Disable? Also, The links with drop down's are gray and the links with no dropdown are red? Thanks, Owen

[jQuery] Re: jQuery Cycle Plugin and Links

2009-08-10 Thread artistique
Hi there, I am having a similar issue, but the functionality I want to achieve is a bit simpler. Right now I want to apply a link of my choosing to each slide (in the HTML of the slide), but t this breaks the alt information pulled from the the pager and displays an "undefined" error on the page.

[jQuery] listmenu

2009-08-10 Thread Paul Speranza
This may not be a bug in the jQuery List menu widget but if it saves someone the time it took me to figure it out or the author has an idea of how to handle this then it is worth it. If the items begin with a comma - ", Paul" - it causes the columns in the result to not be created in IE 7 and the

[jQuery] Re: can all jQuery code be included in just one $(function(){}); ?

2009-08-10 Thread Toshiya TSURU
The former is better On 8/10/09, Jesper F wrote: > > I Include my javascript in an includefile. Which is better way to > organize the jQuery code: > > $(function(){ > $(".myboxclass").corner("7px"); > $("#myrandomdiv").corner("7px"); > }); > > > or > > > $(function(){

[jQuery] Re: BlockUI overlapping issue with element negative margin

2009-08-10 Thread snobo
Hi Mike, I just found out that exactly this behavior (changing the display from static to relative) messes up my page too, only in IE: a known issue with the IE's "z-index stacks" (well described at http://mahzeh.org/?p=19). Could you consider, if possible, reverting the blocking element's displa

[jQuery] Re: $ajax() problem

2009-08-10 Thread Eduardo Pinzon
If the type is POST you could set arguments by 'data', or set the type to GET to pass the paraments in querystring ... type: "GET", url: "mywebpage.aspx?Arg="+args2, ... OR ... type: "POST", url: "mywebpage.aspx, data:{Arg:"args2"} ... Eduardo Pinzon Web Developer 2009/8/10 yi > > $.ajax({ >

[jQuery] Re: jQuery validation - Numbers not allowed

2009-08-10 Thread Eduardo Pinzon
try create this method jQuery.validator.addMethod("notNumber", function(value, element, param) { var reg = /[0-9]/; if(reg.test(value)){ return false; }else{ return true

[jQuery] Re: Get the ID of a button that is clicked

2009-08-10 Thread Eduardo Pinzon
or $(function() { $('#myGroup input:button').click(function(e) { self.location = 'foo.cfm?id=' + $(this).attr("id"); }); }); 2009/8/10 Erich93063 > > WOW I thought I tried that. That was my first instinct. I must have > had

[jQuery] Problem on IE8

2009-08-10 Thread Gaiz
I found 2 problems when I use jQuery on IE8 1. When I use $('elementId').css('border-top-width'), it return "medium", but other browsers return "0px" 2. After domready, my page, that's a widget, call ajax to load content. On page, it have menu link to call ajax to load value. I debug and found no

[jQuery] Re: Regular Expression validation

2009-08-10 Thread Eduardo Pinzon
jQuery.validator.addMethod("notNumber", function(value, element, param) { var reg = /[0-9]/; if(reg.test(value)){ return false; }else{ return true;

[jQuery] Re: Select Option add Class

2009-08-10 Thread Eduardo Pinzon
try this: $("#custom1 option").each(function(){ var class = $(this).html(); addClass(class); }); Eduardo Pinzon Web Developer 2009/8/10 Benn > > This might have been resolved, but I can't find a solution with my > search. I'm trying to add a class with the text of the option. Simple

[jQuery] Validate groups of input fields, checkbox highlight and reset

2009-08-10 Thread hendra
Hi, I have 3 problems I need to solve: 1. Validate groups of input fields. I see in the example of tabs, you can do as follows: // validate the other two selects when one changes to update the whole group var birthdaySelects = $("#birthdateGroup select").click(function() {

[jQuery] Re: Get the ID of a button that is clicked

2009-08-10 Thread Erich93063
WOW I thought I tried that. That was my first instinct. I must have had an error somewhere else. That worked. THANKS! On Aug 10, 11:50 am, Charlie Griefer wrote: > this.id > > > > On Mon, Aug 10, 2009 at 11:48 AM, Erich93063 wrote: > > > I have a listing of records on a page and an "Edit" butto

[jQuery] Re: Get the ID of a button that is clicked

2009-08-10 Thread Charlie Griefer
this.id On Mon, Aug 10, 2009 at 11:48 AM, Erich93063 wrote: > > I have a listing of records on a page and an "Edit" button for each > record. I want to write some jquery that fires when the button is > clicked to go to the edit page for the record whose button I clicked. > > Here is what I have.

[jQuery] Get the ID of a button that is clicked

2009-08-10 Thread Erich93063
I have a listing of records on a page and an "Edit" button for each record. I want to write some jquery that fires when the button is clicked to go to the edit page for the record whose button I clicked. Here is what I have. Feel free to tel lme to do it completely differently if there is an easi

[jQuery] Re: Select Option add Class

2009-08-10 Thread amuhlou
You can achieve this with a loop using the each method: $('select#custom1 option').each(function(){ var theText = $(this).html(); $(this).addClass(theText); }); However, with your current HTML, the class names will have spaces in them, which isn't valid.

[jQuery] Re: refactoring help/ suggestions?

2009-08-10 Thread Calvin
Here is a solution I came up with, but there is still some repeated code. Does anyone have any suggestions I could try out to 'DRY' up my code? jQuery.fn.swapFade = function() { if (this.is(':hidden')) { this.fadeIn('slow'); } else { this.fa

[jQuery] Select Option add Class

2009-08-10 Thread Benn
This might have been resolved, but I can't find a solution with my search. I'm trying to add a class with the text of the option. Simple to do the selected option, but not all of them it seems. I want to change: Text 1 Text 2 Text 3 to: Text 1 Text 2 Text 3 I have tried $('#selectList :

[jQuery] Re: Full jQuery website

2009-08-10 Thread Paul Hutson
> Is there any project about a website using pure jQuery for rendering > the pages ? When you say pure jquery, what exactly do you mean? Outer Empires uses Jquery for a LOT of the positioning, animation, etc when in game (http://www.outer-empires.com) - the front page uses a little as well now

[jQuery] Re: load() event on a tag?

2009-08-10 Thread Alexander Freiria
try setTimeOut On Mon, Aug 10, 2009 at 1:28 PM, ebakunin wrote: > > Unfortunately the callback on click() never occurs: > > $("#say_hello").click(function() { >$("body").prepend('') >$.getScript("js/mail.js"); > }, function() { >alert("done"); > }); > > > As a hack, I ca

[jQuery] Re: load() event on a tag?

2009-08-10 Thread ebakunin
Unfortunately the callback on click() never occurs: $("#say_hello").click(function() { $("body").prepend('') $.getScript("js/mail.js"); }, function() { alert("done"); }); As a hack, I can attach the event to the getScript() callback, since it takes roughly the same time

[jQuery] Full jQuery website

2009-08-10 Thread Cyril
Hi everybody, Is there any project about a website using pure jQuery for rendering the pages ? Thanks, Cyril

[jQuery] Re: Cleartype issues with jquery/superfish in IE8

2009-08-10 Thread pixelwiz
I'm having this issue with IE8 as well and my implementation of Superfish menu. Anyone know of a fix? -Roman

[jQuery] Re: load() event on a tag?

2009-08-10 Thread Alexander Freiria
You could dialog box in the callback of the click funciton... $("#say_hello").click( > > function() { >$("body").prepend(' id="example" href="css/jquery-ui.min.css" />'); >$.getScript("js/mail.js"); >$("#say_hello_box").dialog("open"); > }); > On Mon, Aug 10, 2009 at 12:5

[jQuery] load() event on a tag?

2009-08-10 Thread ebakunin
Hello, When a user clicks a button I dynamically load large CSS and JS files. I handle it in this way: $("#say_hello").click(function() { $("body").prepend(''); $.getScript("js/mail.js"); $("#say_hello_box").dialog("open"); }); It works great, but the problem is that som

[jQuery] Using ScrollTo, IE displays hidden info bef ore it hides it — Any help/ideas?

2009-08-10 Thread jen
Hi there, I'm nearly done with this client site, and it works well in all the browsers I've checked, but I'd really like to finetune the performance in IE. http://maximizeutility.com/what/ I know that the video embedding doesn't validate, but it's the best solution I've found that allows the vi

[jQuery] Re: Jquery Game : Outer Empires : Open Beta

2009-08-10 Thread Paul Hutson
p.s. Sorry if I put this in the wrong place!! I didn't know where else to post it...!

[jQuery] Jquery Game : Outer Empires : Open Beta

2009-08-10 Thread Paul Hutson
Well, we've finally entered the open beta phase of Outer Empires (http://www.outer-empires.com) which is a game that is built using a lot of Jquery... :) If you fancy having a go, head on over to the site to get started (the main news item will give you all the information you need) - it'll show

[jQuery] Re: can all jQuery code be included in just one $(function(){}); ?

2009-08-10 Thread Jesper F
Excellent, thanks! On 10 Aug., 15:56, amuhlou wrote: > According to the API, you can have as many $(function(){}); in a page > as you'd like.http://docs.jquery.com/Events/ready > > It just depends on the needs of your project. If it's imperative that $ > ("#myrandomdiv").corner("7px") is appl

[jQuery] Re: Jquery Show/Hide playing up in Safari

2009-08-10 Thread amuhlou
can you post a test page with the code you posted above? On Aug 10, 9:00 am, maffo wrote: > Note:  I have also posted this on jqueryhelp.com but I havent resolved > this issue. > > http://www.jqueryhelp.com/viewtopic.php?p=9713 > > I have just started a new job and am building my first website f

[jQuery] JSONP + two different encoding results

2009-08-10 Thread hedgomatic
I have an edit-in-place plugin I've created for my employer. We *need* to use iso-8859-1* I understand we can set the *response* to be in iso-8859-1 in ajax, but I also need the request to be, so that it's posted properly to our database. So, I'm posting with jsonp, and then getting the updated

[jQuery] Re: Sloppy Documentation of Ajax Methods

2009-08-10 Thread Nick Fitzsimons
2009/8/10 Shawn : > > ALL the functions (load, get, post, etc) are wrappers for the $.ajax() > function.  I only use $.ajax() now and tweak it to meet my needs... Makes > for less confusion. > > Ajax by default will only load files that are in the same domain as the > calling page.  This is a brow

[jQuery] Jquery Show/Hide playing up in Safari

2009-08-10 Thread maffo
Note: I have also posted this on jqueryhelp.com but I havent resolved this issue. http://www.jqueryhelp.com/viewtopic.php?p=9713 I have just started a new job and am building my first website for them. Im using Jquery to try and impress them but after trying and testing the site in Safari, I am

[jQuery] Plugin to view large photos

2009-08-10 Thread Acaz Souza
http://code.google.com/p/jquery-largephotobox/

[jQuery] jquery tabs :: ul li a animation

2009-08-10 Thread kenny
Hello all, I am using the tabs with a fade in/out effect for the "panels", it works nice. $(function() { $("#tabs").tabs({ collapsible: true,fx: { opacity: 'toggle'}, selected: -1 }); }); What I would like to do is a type

[jQuery] Re: Malsup Form Plugin and buttons tags

2009-08-10 Thread NickUK
Ah I was going about it a bit wrong. I've taken out the ajaxSubmit of the click function and changed it to ajaxForm. The click function just adds the hidden fields now. Nick On Aug 6, 7:50 pm, Mike Alsup wrote: > > My buttons are type "submit" and each have values. I believe it could > > be bec

[jQuery] jQuery validation - Numbers not allowed

2009-08-10 Thread nouky
I have this code: $(document).ready(function() { // validate signup form on keyup and submit var validator = $("#signupform").validate({ rules: { firstname: "required", lastname: "required", use

[jQuery] Re: can all jQuery code be included in just one $(function(){}); ?

2009-08-10 Thread amuhlou
According to the API, you can have as many $(function(){}); in a page as you'd like. http://docs.jquery.com/Events/ready It just depends on the needs of your project. If it's imperative that $ ("#myrandomdiv").corner("7px") is applied after $(".myboxclass").corner ("7px"); completes, then leave t

[jQuery] Re: jQuery readonly input text and ie6

2009-08-10 Thread Leonardo K
Maybe this plugins will help you: http://code.google.com/p/js-hotkeys/ On Mon, Aug 10, 2009 at 10:36, Mazi wrote: > > Ok I found the problem. > The problem is that i want to bind the event on the Delete button > keypress. > But in ie the Delete button does not fire any keyCode. > > Any idea/work

[jQuery] Re: Sloppy Documentation of Ajax Methods

2009-08-10 Thread Ricardo
I see your point, it's completely inconsistent. It's a wiki, anyone can fix that. How about this? jQuery.ajax() Start an HTTP request with custom parameters .load() Load HTML from an URL and insert into the selected element(s) jQuery.get() Load data using an HTTP GET request jQuery.getJSON() Load

[jQuery] Re: jQuery readonly input text and ie6

2009-08-10 Thread Mazi
Ok I found the problem. The problem is that i want to bind the event on the Delete button keypress. But in ie the Delete button does not fire any keyCode. Any idea/workaround? Kind regards Massimo On Aug 10, 12:54 pm, "m.ugues" wrote: > Hallo all. > > I got e problem with this piece of code w

[jQuery] Re: Regular Expression validation

2009-08-10 Thread nouky
What I really wanted to do is use the jQuery validator and in the function set a validation that numbers are not allowed in a text input. For example I have this code: $(document).ready(function() { // validate signup form on keyup and submit var validator = $("#signupform").valid

[jQuery] Re: Attribute selection not working in MSIE; eg $("input[name=name]").val()

2009-08-10 Thread Ricardo
You should avoid using reserved words in your attributes, and also avoid names/ids that are also available as properties of forms. IE overwrites DOM methods/properties when you set the attribute: http://www.jibbering.com/faq/faq_notes/form_access.html#faComMis http://meyerweb.com/eric/thoughts/20

[jQuery] Re: AJAX calls acting syncronously

2009-08-10 Thread MorningZ
"Am I missing something here" Yes, you are assuming that the results will come back in the order called, which totally is not the case the success function simply says "when you return from this async call, run this", there is nothing in the logic about "order" There is an older plugin t

[jQuery] Question regarding jQuery.ready method

2009-08-10 Thread ujamu
I have developed a FF extension that loads a few JavaScript files (one of which is jQuery) and attaches them to any given page being viewed by the user. The loading of the js files can ether happen during or after the web page had been loaded into the browser. Obviously, once the js files get load

[jQuery] Re: Disable submit button with Validation plugin

2009-08-10 Thread Jörn Zaefferer
Try this: $(document).ready(function() { $("#myForm").validate({ submitHandler: function(form) { $(form).find(":submit").attr("disabled", true).attr("value", "Submitting..."); form.submit(); } }) }); Jörn On Mon, Aug 10, 2009 at 9:40 AM, Rich Sturim wrote: > $(docume

[jQuery] Re: simple question regarding the 'this' keyword

2009-08-10 Thread amuhlou
to get you started, you can use the each method, something like $('#carousel ul li a').each( function(){ //$(this) equals the current a element var src = $(this).children("img"); //do other stuff here } ); On Aug 10, 2:24 am, svanhess

  1   2   >