[jQuery] Re: MODAL HELP!!!!!!!!

2009-07-19 Thread Theodore Ni
I don't know if you are still having this problem, but the reason it isn't working is simply bad JavaScript syntax. You should use your working code, as there is nothing wrong with it. Teddy On Tue, Jul 14, 2009 at 4:26 PM, Nick wrote: > > Anyone: I cant seem to get this to work. If I pass "m

[jQuery] Re: Adding element to an array of object

2009-07-19 Thread Theodore Ni
Something simple (without any error checking) like the following works for me: Object Array var parArr = new Array('par1', 'par2', 'par3', 'par4'); var valArr = new Array('val1', 'val2', 'val3', 'val4'); function addKeysValues(original, newkeys, newvals) { for (var i = 0; i < newkeys.lengt

[jQuery] Re: Allow iframe from remote domain have javascript access

2009-07-18 Thread Theodore Ni
As far as I know, not directly with JavaScript. You seem to be encountering limitations imposed by the same origin policy for security purposes. For some information on the same origin policy, see https://developer.mozilla.org/en/Same_origin_policy_for_JavaScript

[jQuery] Re: Value adding to drop down

2009-07-18 Thread Theodore Ni
Please post again your current jQuery code including the separator you are using, as well as what is inside the data variable in full. That way, we can understand exactly what's going on; right now, I'm still confused. Teddy On Sat, Jul 18, 2009 at 12:07 AM, naz wrote: > > i have changed '|' se

[jQuery] Re: event.preventDefault(); not working in IE

2009-07-17 Thread Theodore Ni
It's been common practice when coding for Firefox to do this. That it isn't the same in Chrome I hadn't noticed, see: Test var event = 'test'; alert(window.event); window.onload = function() { alert(window.event); setTimeout(function() { alert(window.event); }, 1000); }; Ted

[jQuery] Re: non-ajax Post?

2009-07-17 Thread Theodore Ni
Your best option is to log on the server-side page the form submits to. Barring that, you can always submit the form on a callback from your $.get() call. Ted On Wed, Jul 15, 2009 at 4:26 PM, IMStarboard wrote: > > There is a form that performs a post on our site that I need to insert > an "oncl

[jQuery] Re: data: $("#contact_form").serialize(),

2009-07-17 Thread Theodore Ni
It is because you get rid of the form when you replace the message inside #form before calling serialize(). Move this line $("#form").html('Please wait...'); below everything else, and serialize() will no longer return empty. Ted On Fri, Jul 17, 2009 at 2:54 PM, robotwink wrote: > > Hello

[jQuery] Re: Newbie Question....

2009-07-17 Thread Theodore Ni
Yes, your action script can be anything. Ted On Fri, Jul 17, 2009 at 2:40 PM, Greg Evans wrote: > > That looks great, and I think it is just what I need. I want to clarify > however, this shows to comment.php, but something like comment.pl should > work equally as well correct? > > > > On Jul 1

[jQuery] Re: get hover function behave right

2009-07-17 Thread Theodore Ni
Define var curwidth; var curheight; outside of any functions or jQuery blocks. Then, refer to them inside your functions without the var in front. Ted On Fri, Jul 17, 2009 at 1:01 PM, runrunforest wrote: > > make the curwidth and curheight variables global, could you help me? > >

[jQuery] Re: show dynamic changes when a refresh occurs

2009-07-17 Thread Theodore Ni
James has some good ideas. If they still don't work for you, you can consider storing the new form values in a cookie. Ted On Thu, Jul 16, 2009 at 7:42 PM, James wrote: > > The data is still there since the browser does a cache of the form > info, but dynamically created elements do not get cac

[jQuery] Re: My new website AllJobsXChange.com developed with Jquery

2009-07-17 Thread Theodore Ni
Sounds great that your site is getting ready to launch. The notice page, from what I see, seems to work fine at least :-). Just as a point of professional interest, with your doctype the tags should have their own ending forward slashes. You seem to know this, so maybe your CMS is preventing it? T

[jQuery] Re: Disabling Button in jQuery HTML Form Plugin

2009-07-17 Thread Theodore Ni
Perhaps success: function() { var ht = $('#htmlExampleTarget'); ht.fadeIn('slow'); if (ht.html().indexOf('Success') >= 0) { $('#htmlForm :submit').val('Success').attr('disabled', true); } } Ted On Fri, Jul 17, 2009 at 3:06 AM, icuucme wrote: > success: function() { >

[jQuery] Re: Disabling Button in jQuery HTML Form Plugin

2009-07-16 Thread Theodore Ni
In addition to trying Cesar's suggestion, you should give us some more code details and context. You can do this sort of check on a number of events, including onclick and onsubmit, or whenever your div is updated. Ted On Thu, Jul 16, 2009 at 6:41 PM, Cesar Sanz wrote: > > you can check the messa

[jQuery] Re: Fading background images in and out

2009-07-16 Thread Theodore Ni
Using z-index seems like the way to go. If you show us the code that didn't work, maybe we can help you figure out why it didn't. Ted On Thu, Jul 16, 2009 at 4:17 PM, osu wrote: > > Hi, > > Just wondering what the best way to cycle (fade in and out) background > images is? I´ve got to create a

[jQuery] Re: Get the HTML of the current node plus its Inner HTML

2009-07-16 Thread Theodore Ni
I was going to work on a proof of concept, but then I had the idea to see if anyone else has already implemented this. Sure enough, Brandon Aaron has: http://brandonaaron.net/blog/2007/06/17/jquery-snippets-outerhtml Ted On Thu,

[jQuery] Re: Drag and Drop

2009-07-15 Thread Theodore Ni
I'm not completely clear with what you want. Do you mean that you don't want your images to be dragged outside of a containing div? If so, you can set containment option: http://docs.jquery.com/UI/Draggable#option-containment Ted On Wed, Jul

[jQuery] Re: Superfish conflicht with Header Image for Joomla 1.5

2009-06-19 Thread Theodore Ni
I don't know the details behind your specific problem, but a solution may be found at the following link: http://docs.jquery.com/Using_jQuery_with_Other_Libraries Teddy On Fri, Jun 19, 2009 at 2:42 PM, deboni wrote: > > Hi > > I'm using your superfish menu on a joomla website. It works perfec

[jQuery] Re: add property name via a variable

2008-11-15 Thread Theodore Ni
Something like this would work: foo("bar"); function foo(prop) { window[prop] = 1; } Ted On Sat, Nov 15, 2008 at 1:24 PM, Johnnie Walker <[EMAIL PROTECTED]> wrote: > > Hi, > > Is there any way to add a property named via a variable to a > javascript object? > > this is what I would like t

[jQuery] Re: Float on top using jQuery

2008-07-10 Thread Theodore Ni
You may also like to hear that there is the CSS position fixed property, which does what you want, even though there are some problems with it and IE6-. Check out position fixed at http://www.quirksmode.org/css/position.html Also, you may be able to use fixed positioning in IE6, see http://home.ta

[jQuery] Re: [jquery validate] Validating disabled inputs

2008-06-30 Thread Theodore Ni
If you really want to validate all disabled form fields also, the relevant line in the plugin is .not(":submit, :reset, [disabled]") to which you can add or remove functionality. Again, as Jörn has said, usually disabled elements are not meant to be validated, so make sure it's what you reall

[jQuery] Re: Help getting the AJAX load() to work in Firefox

2008-05-22 Thread Theodore Ni
What page are you trying to load with AJAX? Is it outside your domain? On Thu, May 22, 2008 at 7:47 PM, John <[EMAIL PROTECTED]> wrote: > > It's just faster to write self closing p tags and I was just giving an > example. I don't normally use them in my code. They're not related to > my problem.

[jQuery] Re: Javascript breakout Game

2008-05-22 Thread Theodore Ni
Very nice. I got to 111 points before I got bored; is there supposed to be an invisible block in the upper left for you to keep hitting? :-) On Thu, May 22, 2008 at 2:21 PM, David Decraene <[EMAIL PROTECTED]> wrote: > > I took my mind of things and had some fun with jQuery, John's Simple > Javasc

[jQuery] Re: cluetip plugin and IE6

2008-05-19 Thread Theodore Ni
Include the bgiframe plugin in your section: http://plugins.jquery.com/project/bgiframe On Mon, May 19, 2008 at 2:13 PM, cfdvlpr <[EMAIL PROTECTED]> wrote: > > Has anyone else noticed that in IE6, select menus show up in front of > the cluetip? Is there a fix for this? > -- Ted

[jQuery] Re: Get System Error with "jCarousel and Thickbox 3 "

2008-05-02 Thread Theodore Ni
You are getting this because Thickbox decides if your link is an image or not based on the file extension. If all your images are from yimg, you can fix this with a bit of a hack. Go into thickbox.js, find the function tb_show(), and these lines: var urlString = /\.jpg|\.jpeg|\.png|\.gif|\.bmp

[jQuery] Re: the dropdown menu flashes on the screen on page load.

2008-05-01 Thread Theodore Ni
You'll need to give us more information, a demo or at least some code, before we can help you diagnose. On Thu, May 1, 2008 at 5:18 PM, all4one <[EMAIL PROTECTED]> wrote: > > I have two drop-down lists in the "main menu" at the top of the page. > When you click on link items in the "top menu" (di

[jQuery] Re: slideUp slideDown and mouseover mouseout (solved)

2008-04-30 Thread Theodore Ni
I would recommend changing the script type from text/jscript to text/javascript, since the former does not, at the very least, work on Firefox 3b5. On Wed, Apr 30, 2008 at 3:59 PM, Waters <[EMAIL PROTECTED]> wrote: > > Sorry about that ignore my previous post - - a quick search of the > archive r

[jQuery] Re: click on a link and have a table appear - can't get it to work

2008-04-05 Thread Theodore Ni
Shouldn't it be Schedule On Sat, Apr 5, 2008 at 9:09 AM, ktpmm5 <[EMAIL PROTECTED]> wrote: > > I'm a newbie to jquery, so no flames please...I have a basic 3 column > web > page - nav, center and left. That works great. My left column is > navigation. When I click on a link on the left nav p

[jQuery] Re: Getting PHP_REFERER value from jQuery

2007-11-09 Thread Theodore Ni
I've always wondered why only Javascript spells it right. On Nov 8, 2007 6:21 PM, Aaron Porter <[EMAIL PROTECTED]> wrote: > > How about document.referrer? :) > > Aaron > > ElTibetano wrote: > > Hi, maybe someone can help me on this: > > > > I'm using jqModal plugin to open a form from different p

[jQuery] Re: Toggle visibility.

2007-11-09 Thread Theodore Ni
You can use toggle(): $("a").click(function() { $('#Content').toggle(); }); On Nov 8, 2007 7:06 PM, shapper <[EMAIL PROTECTED]> wrote: > > Hello, > > I have an anchor on my page. > When I click it I want to Toggle the visibility of a Div with ID = > "Content". > > If the div is visible then

[jQuery] Re: how to check hide elements?

2007-09-17 Thread Theodore Ni
You should be able to test if an element is hidden by doing something like $(element).is(":hidden") which should return true or false. On 9/17/07, james_027 <[EMAIL PROTECTED]> wrote: > > > hi, > > using the hide() function, how do I know if an element is hidden or > not? > > THanks > james > >

[jQuery] Re: Dynamic loading of PHP array into jCarousel?

2007-09-16 Thread Theodore Ni
I built my JavaScript > array using server-side data. Still has some work but I got an > example page up that's working: > > http://devel.phpgeek.org/inventory/single/10 > > - sf > > On 9/16/07, Theodore Ni <[EMAIL PROTECTED]> wrote: > > That example is dynamic

[jQuery] Re: Preloading an image before further handling

2007-09-16 Thread Theodore Ni
Instead of using $(document).ready( ... ), you can try to use $(window).load( ... ): $(window).load(function() { $("#photo").fadeIn("slow"); }); I believe that will wait until the image has been loaded. On 9/16/07, To <[EMAIL PROTECTED]> wrote: > > > Hello all, > > I'm looking for a while to

[jQuery] Re: Selecting text of an object (in this case a span) onclick.

2007-09-16 Thread Theodore Ni
Using a Range object doesn't mean that it becomes selected/highlighted on the page. It is just a way of selecting a several nodes in the document behind the scenes (thought not exactly, it's somewhat like document.getElementById()). As far as I know, there is no way of forcing text on a page to be

[jQuery] Re: Going to a particular element (or emulating anchor in javascript)

2007-09-16 Thread Theodore Ni
Why not use an anchor? A very simple example, $(document).ready(function() { $('.item').each(function(i) { $(this).before(''); }); $('#next').click(function() { // get current anchor var match = self.location.href.match(/#anchor(\d+)$/); if (match !== n

[jQuery] Re: Please help: How to simulate a Tab key press with jQuery

2007-09-16 Thread Theodore Ni
Moreover, you can make sure each of your form elements has a tabindex attribute, and you can find the element with the next tabindex and focus it. Ted On 9/15/07, Erik Beeson <[EMAIL PROTECTED]> wrote: > > Can you not just focus the next field? Assuming your fields are all at the > same level, ju

[jQuery] Re: Dynamic loading of PHP array into jCarousel?

2007-09-16 Thread Theodore Ni
That example is dynamic in the sense that you can populate that Javascript array in many different ways. For example, you could take in user input and create an array, or you can let your PHP echo out a Javascript array. For dynamic in the sense that we use AJAX to pull data and then create the ca

[jQuery] Re: Downloading 1.2 minified, getting 46kb instead of 14kb ??!?

2007-09-14 Thread Theodore Ni
I'm not going to enter this argument, but I do suggest that both gzipped and non-gzipped file sizes be present, because a download link should have the accurate download size. Otherwise, I agree that with the big gains gzipping provides (less than 1/3 file size!), the gzipped size should be present

[jQuery] Re: Downloading 1.2 minified, getting 46kb instead of 14kb ??!?

2007-09-14 Thread Theodore Ni
Unless you have other .htaccess files in your subdirectories which overwrite Joan's .htaccess rules, then I believe only one in the root folder should work. On 9/14/07, Glen Lipka <[EMAIL PROTECTED]> wrote: > > Where does that .htaccess file go? Just in the root? Or in every folder > that has a

[jQuery] Re: onclick page goes to top (have to scroll back down to content)

2007-09-13 Thread Theodore Ni
Often this occurs when the onclick event for a link does not return false, and then the browser loads the href, often # which moves the page to the top. Is there a test page you can show us where this is happening for you? On 9/13/07, FrankTudor <[EMAIL PROTECTED]> wrote: > > > Hi have a page that

[jQuery] Re: Getting parsererror calling XML

2007-09-13 Thread Theodore Ni
l is not malformed. > > Thanks for the tip by the way, you confirmed my suspicions... > > Ryan > > On Sep 12, 8:45 pm, "Theodore Ni" <[EMAIL PROTECTED]> wrote: > > This could be because your server is not sending the correct mime type > of > > XML

[jQuery] Re: blockUI IE6 checkbox

2007-09-13 Thread Theodore Ni
I took a quick look at the blockUI code, and you can fix the problem by changing the bind function to this: // bind/unbind the handler bind: function(b, el) { var full = el == window; // don't bother unbinding if there is nothing to unbind if (!b && (full && !this.p

[jQuery] Re: Waiting for Ajax Response

2007-09-13 Thread Theodore Ni
I responded through email, but it didn't seem to get through. Perhaps you meant your options to be: $.ajax({ type: "POST", url: "adddata.php", dataType: "html", data: name+"="+entry, success: function(msg) {

[jQuery] Re: Help for super dummy newbie

2007-09-13 Thread Theodore Ni
Also feel free to post snippets and use http://pastebin.com/ if you need. It's usually better to post queries on the board, where there are many talented people instead of limiting yourself to one talented person :-) On 9/12/07, Glen Lipka <[EMAIL PROTECTED]> wrote: > > I have a whole mess of exam

[jQuery] Re: "No such interface supported" error in Internet Explorer

2007-09-13 Thread Theodore Ni
You are getting "error" because the parameter you use, the err parameter, is a simple status indicator that gets set to a few general values like timeout, success, or error. In your case, use the function(xhr,err,e) function and try to print out e.name and e.message On 9/12/07, 0xCAFE <[EMAIL PRO

[jQuery] Re: Getting parsererror calling XML

2007-09-13 Thread Theodore Ni
This could be because your server is not sending the correct mime type of XML documents. If you are serving a server-side page as XML, you must use the server-side language features to set the Content-Type header. If you are just serving .xml pages, make sure the server is sending the correct text/

[jQuery] Re: Waiting for Ajax Response

2007-09-13 Thread Theodore Ni
Perhaps you meant your options to be: $.ajax({ type: "POST", url: "adddata.php", dataType: "html", data: name+"="+entry, success: function(msg) { $('#'+holder).html(msg); }

[jQuery] Re: Vibrator Plugin

2007-09-13 Thread Theodore Ni
Put your mouse over the image and see how long it takes before it vibrates off :-) I noticed that the setTimeouts aren't canceled. Is that intentional to get more vibration? On 9/12/07, JFSIII <[EMAIL PROTECTED]> wrote: > > > > > A fun plugin, with very few real world use cases. > > The quote a

[jQuery] Re: yav plugin could be use Jorn's approach

2007-09-12 Thread Theodore Ni
On that website, Sevir mentions that the need to have each individual rule in Javascript is something that he found a problem in other validation packages, so I'm sure that using the title attribute was a specific design decision. That said, I'll be looking forward to seeing if Javascript rules wi

[jQuery] Re: Unavoidable Duplicate DOM IDs?

2007-09-09 Thread Theodore Ni
If you must use IDs, then you can always create an object to keep track of all the ID names. Just maintain a counter variable that can be appended to your ID. On 9/7/07, Su <[EMAIL PROTECTED]> wrote: > > On 9/7/07, Collin Allen <[EMAIL PROTECTED]> wrote: > > > > working on this project with some P

[jQuery] Re: Request: Quick tutorial on jQuery filtering/limiting methods

2007-09-06 Thread Theodore Ni
You're right. There isn't any technical problem at all, but it is a design decision the HTML designers made, for simplicity or whatever other reason. In the HTML specs, elements are only allowed children elements: http://www.w3.org/TR/html401/struct/lists.html#edef-UL As mentioned, most browsers

[jQuery] Re: Request: Quick tutorial on jQuery filtering/limiting methods

2007-09-06 Thread Theodore Ni
Exactly. It is a subtle point, but lists do not contain other lists, they contain items which may be lists. On 9/6/07, Karl Rudd <[EMAIL PROTECTED]> wrote: > > > He's referring to how lists (UL and OL) are built up in the DOM (from > the HTML). Lists can only have LI elements as children. > > So t

[jQuery] Re: remove a single css-property?

2007-09-05 Thread Theodore Ni
I don't have time right now to look at this in depth, but other than putting the filter style inline on each of your objects, the only other way I can see to fix this is to somehow modify the jQuery code to first grab the current filter style from currentStyle or something along those lines. I hope

[jQuery] Re: Hover bug in Firefox?

2007-09-05 Thread Theodore Ni
I can't reproduce this using just the table and jQuery code you provided. I tried putting a separate style on td but that just stifles any hover effect on both FF and IE7. Is there any more information you can provide, or perhaps a test page showing the problem? On 9/5/07, Andy Matthews <[EMAIL P

[jQuery] Re: jqModal .. where is this 'on open' thing

2007-09-05 Thread Theodore Ni
I have not looked at this in depth, but you might be able to use onShow() callback to run your own ajax if you don't use the built-in one. On 9/4/07, Joe <[EMAIL PROTECTED]> wrote: > > > from the jqModal README: > > NOTE; To use custom ajax routines, utilize an "on open" callback > function. If

[jQuery] Re: What's wrong with my syntax?

2007-08-29 Thread Theodore Ni
I believe you need a comma after all but the last function, because they are name : value pairs in an object. On 8/28/07, juliandormon <[EMAIL PROTECTED]> wrote: > > > > I'm trying to use both afterFileAppend and afterFileRemove. I get an > syntax > error in javascript: > > "Missing } after proper

[jQuery] Re: Live Query with Draggables

2007-08-29 Thread Theodore Ni
alert($(this).find('[EMAIL PROTECTED]').attr('value')); return false; }); // until I make this draggable $('#modal').Draggable(); }); Drag me! On 8/28/07, Theodore Ni <[EMAIL PROTECTED]> wrote: > > I kn

[jQuery] Re: Live Query with Draggables

2007-08-29 Thread Theodore Ni
alert('boo'); return > false; }); > > Also, try to give the selector more scope, like a parent element with an > ID. > > $('#containerID form.client ').livequery(...); > > Could you upload an example somewhere that we could see? > > -- > Brand

[jQuery] Re: Live Query with Draggables

2007-08-28 Thread Theodore Ni
ve DOM methods. Try registering > the Draggable plugin via the registerPlugin method ( > http://brandonaaron.net/docs/livequery/#plugin-developers) like this: > > $.livequery.registerPlugin("Draggable"); > > Now Live Query will know to watch for changes created by the Draggab

[jQuery] Live Query with Draggables

2007-08-28 Thread Theodore Ni
Hey guys, I'm having a spot of trouble combining live query with interface draggables, and I'm afraid I don't have the time to study the internals of both plugins (I'm in midst of trying to meet a deadline), so I hope you guys can briefly explain how both work. When I am dragging something, does

[jQuery] Re: document.location in 1.1.4

2007-08-27 Thread Theodore Ni
has cropped up twice now, with Ajax. > > --John > > On 8/27/07, Theodore Ni <[EMAIL PROTECTED]> wrote: > > > > I have not looked at the code in depth, but I know that 1.1.4 supports > > recursive $.extend(), which might look at the fields inside your > > doc

[jQuery] Re: document.location in 1.1.4

2007-08-27 Thread Theodore Ni
I have not looked at the code in depth, but I know that 1.1.4 supports recursive $.extend(), which might look at the fields inside your document.location object and return something the function was not expecting. On 8/27/07, drew <[EMAIL PROTECTED]> wrote: > > Hi all, > > I've been using $.ajax

[jQuery] Re: general JS Q: when to use the delete operator?

2007-08-27 Thread Theodore Ni
I only recently learned that delete was even a Javascript keyword when my editor highlighted it ;-) I'm sure there are cases when you can use it, although I can't think of anything where it is completely necessary. Maybe someone who knows more about the intricacies of Javascript can tell us wheth

[jQuery] Re: Order of execution with onclick and click

2007-08-27 Thread Theodore Ni
I just did a quick test because I had to visit this very issue when I had some problems combining Live Query with Interface draggables. It seems that click() doesn't touch onclick (which makes some sense because it might get messy firing multiple click() functions and unbinding them). >From my te