[jQuery] Re: javascript loaded via ajax

2010-01-13 Thread Ami
Yes. Two options. 1. to remove function from the DOM: window.functionname=null; 2. To create one-time functions, like: (function (){ function a() {alert('a')} function b() {alert('b')} function c() {a();b();} })(); the function a,b,c are relase after they run. OR (function (){ a=function()

[jQuery] Re: JavaScript switched off

2009-11-10 Thread Scott Sauyet
On Nov 10, 10:53 am, factoringcompare.com firstfacto...@googlemail.com wrote: What’s the best way to redirect when a users browser has JavaScript switched off? How about going the other way? document.location.href=enabled.html; Better still when possible is to unobtrusively enhance the

Re: [jQuery] Re: JavaScript switched off

2009-11-10 Thread waseem sabjee
the op wanted to redirect without javascript On Tue, Nov 10, 2009 at 7:02 PM, Scott Sauyet scott.sau...@gmail.comwrote: On Nov 10, 10:53 am, factoringcompare.com firstfacto...@googlemail.com wrote: What’s the best way to redirect when a users browser has JavaScript switched off? How

Re: [jQuery] Re: JavaScript switched off

2009-11-10 Thread Charlie Griefer
Scott's solution, as he mentioned, goes the other way, but still does what the OP wanted. If the user doesn't have JS enabled, the location.href won't fire, and the current page will still render fine. If the user does have JS enabled, the location.href call will redirect them to the JS-enhanced

[jQuery] Re: javascript

2009-09-23 Thread Anantha Kumaran
Hi to all i found a working solution for that problem but i have a feeling that i am missing something(may be) instead of using a object option i created a function and that returned the object options : fuction(){ return { beforeSubmit: SocialSite.Home.UserInfo.friendRequest, success:

[jQuery] Re: javascript

2009-09-17 Thread Anantha Kumaran
hi mike if i change the 'this' to SocialSite.Home.UserInfo then i get the error SocialSite.Home.UserInfo is undefined code options : {beforeSubmit: SocialSite.Home.UserInfo.friendRequest, success: SocialSite.Home.UserInfo.friendResponse }, On Wed, Sep 16, 2009

[jQuery] Re: javascript

2009-09-16 Thread Mike Alsup
i don't know why this is not working but the later is working well please tell me what is wrong with this // not working SocialSite.Home.UserInfo = {    options : {        beforeSubmit: this.friendRequest,         success:  this.friendResponse    },     friendRequest :

[jQuery] Re: Javascript error on IE

2009-05-20 Thread ryan.j
give cornerz a go http://labs.parkerfox.co.uk/cornerz/ On May 19, 5:12 pm, Aaron Lee waifun...@gmail.com wrote: Thanks! I tracked it down to the use of curvycornerhttp://www.curvycorners.net/(whichbtw causes IE to pop up operation aborted error when you visit the site) I did

[jQuery] Re: Javascript error on IE

2009-05-19 Thread ryan.j
it's going to be one of your selectors - if you're at a loss where to start maybe just chop out functions until it starts working, and then look more closely at what it was doing in that function. On May 19, 7:00 am, Aaron Lee waifun...@gmail.com wrote: Hi, I got the following error when I

[jQuery] Re: Javascript error on IE

2009-05-19 Thread Aaron Lee
Thanks! I tracked it down to the use of curvycorner http://www.curvycorners.net/(which btw causes IE to pop up operation aborted error when you visit the site) I did $(.class_name).corner() and comment out that line works. So the mystery is solved but I wonder if anyone can recommend a good

[jQuery] Re: Javascript city state zipcode country component

2009-03-20 Thread Vijay
Do you use this from the client side using Javascript like jquery ? Thanks for your response. Vijay On Mar 19, 7:47 am, ricardobeat ricardob...@gmail.com wrote: I'm using Maxmind's GeoLite City open-source database. It's free and has surprising accuracy. They also have paid webservice plans

[jQuery] Re: Javascript city state zipcode country component

2009-03-20 Thread Vijay
Thanks for your response. I am looking for a full fledged commercial ready to use product hopefully making a call from the client side. Vijay On Mar 19, 9:04 am, MorningZ morni...@gmail.com wrote: Another option to possible look at

[jQuery] Re: Javascript city state zipcode country component

2009-03-19 Thread ricardobeat
I'm using Maxmind's GeoLite City open-source database. It's free and has surprising accuracy. They also have paid webservice plans with more precise data. http://www.maxmind.com/app/geolitecity cheers, - ricardo On Mar 19, 12:06 am, Vijay Balakrishnan bvija...@gmail.com wrote: Hi, Has

[jQuery] Re: Javascript city state zipcode country component

2009-03-19 Thread MorningZ
Another option to possible look at http://bassistance.de/2009/03/03/jquery-snippet-autocomplete-city-based-on-zip-code/ although i have idea if it applies to PJUG since I have no idea what it is On Mar 19, 10:47 am, ricardobeat ricardob...@gmail.com wrote: I'm using Maxmind's GeoLite City

[jQuery] Re: JavaScript Loading Question

2009-03-17 Thread MonkeyBall2010
OK, this did the trick, thanks! On Mar 16, 7:15 pm, Karl Swedberg k...@englishrules.com wrote: This is the best way I've found to initially hide content with   JavaScript without having the flash of unstyled content. http://www.learningjquery.com/2008/10/1-awesome-way-to-avoid-the-not-...

[jQuery] Re: JavaScript Loading Question

2009-03-17 Thread Eric Garside
Also, as an aside, I'm not sure the browser handles Javascript last, just asynchronously. If you have: link ... / link .../ script .../ link .../ I'm pretty sure it will fetch your css first, then wait on the JS, then load the next CSS file. On Mar 17, 8:40 pm, MonkeyBall2010

[jQuery] Re: JavaScript Loading Question

2009-03-16 Thread MonkeyBall2010
Is this the best practices workaround? I hardly ever see this on other sites that use jQuery or a similar JS library. On Mar 13, 7:20 pm, James james.gp@gmail.com wrote: For jQuery UI Tabs I get that issue too where it will display the HTML list before turning into tabs. Though usually

[jQuery] Re: JavaScript Loading Question

2009-03-16 Thread Jonathan
Since the browser will always have the Markup and CSS before the javascript is finished it's a pretty typical approach to avoid seeing stuff before the JS is done, although having a simplified version of your page that is accessible to users without JS enabled (for instance all the tabs visible

[jQuery] Re: JavaScript Loading Question

2009-03-16 Thread Karl Swedberg
This is the best way I've found to initially hide content with JavaScript without having the flash of unstyled content. http://www.learningjquery.com/2008/10/1-awesome-way-to-avoid-the-not-so-excellent-flash-of-amazing-unstyled-content --Karl Karl Swedberg www.englishrules.com

[jQuery] Re: JavaScript Loading Question

2009-03-13 Thread James
For jQuery UI Tabs I get that issue too where it will display the HTML list before turning into tabs. Though usually only just for the initial load where the JS scripts have not been cached yet. The only workaround I've tried was making the div container for your tabs hidden initially, and when

[jQuery] Re: Javascript search library

2009-03-05 Thread Nicolas R
Khai, perhaps this may be useful to you: http://code.google.com/p/jdatastore/ If you find it excessive, perhaps just the filter method is what you're after: http://code.google.com/p/jdatastore/source/browse/trunk/store.js#375 On Mar 5, 4:00 am, Khai khaitd...@gmail.com wrote: I have a

[jQuery] Re: Javascript search library

2009-03-05 Thread ricardobeat
Maybe you can use jQuery's filter method: $(JSONObject).filter(function(){ return this.cactus = 'green' !this.water; }); On Mar 4, 11:00 pm, Khai khaitd...@gmail.com wrote: I have a collection of DIVs (or a JSON array).  Is there a javascript library that can search through a JSON array

[jQuery] Re: Javascript Generated by $()load does not render

2009-02-18 Thread Tim Johnson
On Tuesday 17 February 2009, Alexandre Plennevaux wrote: i suppose that you change try specifying the dataType as script that your ajax calls expect: Taken from: http://docs.jquery.com/Ajax/jQuery.ajax dataType The type of data that you're expecting back from the server. If none is

[jQuery] Re: Javascript Generated by $()load does not render

2009-02-18 Thread Alexandre Plennevaux
you can use load, you just have to setup the ajaxSetup controlling your ajax main parameters so you set it to your liking, then you call the load(). It is built on top of the ajax method to ease its use. See: http://docs.jquery.com/Ajax/jQuery.ajaxSetup#options On Wed, Feb 18, 2009 at 5:18 PM,

[jQuery] Re: Javascript Generated by $()load does not render

2009-02-18 Thread Tim Johnson
On Wednesday 18 February 2009, Alexandre Plennevaux wrote: you can use load, you just have to setup the ajaxSetup controlling your ajax main parameters so you set it to your liking, then you call the load(). It is built on top of the ajax method to ease its use. See:

[jQuery] Re: Javascript Generated by $()load does not render

2009-02-18 Thread Alexandre Plennevaux
see if this resolves your issue: ... $(document).ready(function(){ $.ajaxSetup( { dataType: 'script' }) ; $(#dynamic_content).load(myscript,task=entry, function(resp,stat,xhr){ //alert(resp); // leave for testing }

[jQuery] Re: Javascript Generated by $()load does not render

2009-02-18 Thread Tim Johnson
On Wednesday 18 February 2009, Alexandre Plennevaux wrote: see if this resolves your issue: Hi Alexandre: Thanks very much for your help on this issue, but it still does not work. However, I already have a workaround to enable functionality - and in the future - a different approach

[jQuery] Re: Javascript Generated by $()load does not render

2009-02-17 Thread Alexandre Plennevaux
i suppose that you change try specifying the dataType as script that your ajax calls expect: Taken from: http://docs.jquery.com/Ajax/jQuery.ajax dataType The type of data that you're expecting back from the server. If none is specified, jQuery will intelligently pass either responseXML or

[jQuery] Re: JavaScript not executing from external html files from Ajax call into Div

2009-02-12 Thread mumbojumbo
I'm having a similar problem, I have div that gets data from external pages of my site, and I want to use jquery to do a smooth scroll (http://flesler.blogspot.com/2007/10/jquerylocalscroll-10.html) but It won't apply.. any ideas? On Feb 12, 4:55 pm, Alex axer...@gmail.com wrote: Hello, This

[jQuery] Re: JavaScript not executing from external html files from Ajax call into Div

2009-02-12 Thread socratesone
Can you post the code? On Feb 12, 4:55 pm, Alex axer...@gmail.com wrote: Hello, This is my first message and I am extremely new to jQuery. I am using Ajax to call external html pages into a div in my site.  I have three external html forms which uses JavaScript and one .pl file.  When I

[jQuery] Re: JavaScript not executing from external html files from Ajax call into Div

2009-02-12 Thread socratesone
Can you post the code? On Feb 12, 4:55 pm, Alex axer...@gmail.com wrote: Hello, This is my first message and I am extremely new to jQuery. I am using Ajax to call external html pages into a div in my site.  I have three external html forms which uses JavaScript and one .pl file.  When I

[jQuery] Re: $ javascript syntax

2009-01-27 Thread JeromeM
it's okay i found the answer for anyone who didnt read the intro like i didn't $ is an alias for the jquery object. On Jan 27, 9:39 am, JeromeM kingjer...@gmail.com wrote: i tried searching the web, but couldnt find $ notation for javascript, but presumably it is javascript syntax  as per

[jQuery] Re: Javascript performance testing? In need of some help...

2009-01-13 Thread Ricardo Tomasi
http://www.letmegooglethatforyou.com/?q=event+delegation On Jan 13, 2:39 am, websiteguy2...@gmail.com websiteguy2...@gmail.com wrote: Hello: We have an ajax/js-heavy website that relies on Jquery.  Some of the events throughout the site seem to get sluggish as the objects on the page grow.  

[jQuery] Re: javascript namespacer

2008-12-17 Thread Ariel Flesler
No eval() please! function namespace(name, data){ data = data || window; name = name.split(.); for (var i=0; i name.length; i++) { var ns = name[i]; data = data[ns] || ( data[ns] = {} ); } return data; }; It'd a little get shorter if you use

[jQuery] Re: javascript namespacer

2008-12-17 Thread Kean
Thanks! I knew eval was bad, that's why I'd posted it here. :) On Dec 17, 2:24 pm, Ariel Flesler afles...@gmail.com wrote: No eval() please! function namespace(name, data){      data = data || window;      name = name.split(.);      for (var i=0; i name.length; i++) {          var ns =

[jQuery] Re: JavaScript multithreading issues, race conditions, critical sections

2008-12-02 Thread ricardobeat
I've never worked on a really complex project using JS, but I'll contribute with my amateur views anyway: All JS engines are single-threaded, one less thing to worry about :] The exception is of course, AJAX calls which are asynchronous, they are technically not executing at the same time, but

[jQuery] Re: Javascript, or only Javascript-inna-browser?

2008-12-01 Thread ricardobeat
Yes it is. But John Resig has been playing with getting it to run on Rhino: http://ejohn.org/projects/bringing-the-browser-to-the-server/ You may get better technical info at the jquery-dev mailing list. - ricardo On Nov 30, 9:44 pm, Rodent of Unusual Size [EMAIL PROTECTED] wrote: Is jQuery

[jQuery] Re: Javascript question.

2008-11-09 Thread George
I guess I figured it out myself :) function GetD(tb) { $this = document.getElementById(tb); var obj = new MyData($this); return obj; } function MyData(tb) { this.init(tb); } MyData.prototype = { init : function (tb){ this.div = tb; this.refresh(); },

[jQuery] Re: javascript enabled

2008-09-09 Thread mbraybrook
Whether or not a user has javascript is not something you would use javascript for (if you use javascript, detecting a user that has not got javascript is, by definition, impossible. Alternatively, do some research into the html noscript attribute, this will allow you to provide for those who do

[jQuery] Re: javascript enabled

2008-09-09 Thread Sarmad AL-Saiegh
hi, thanks alot. ur answer was quit good :) the tip about noscript helped me to much. best wishes 2 u :) sarmad On Tue, Sep 9, 2008 at 3:24 PM, mbraybrook [EMAIL PROTECTED] wrote: Whether or not a user has javascript is not something you would use javascript for (if you use javascript,

[jQuery] Re: javascript enabled

2008-09-09 Thread mbraybrook
Not a problem, glad I could help. M On Sep 9, 3:07 pm, Sarmad AL-Saiegh [EMAIL PROTECTED] wrote: hi, thanks alot. ur answer was quit good :) the tip about noscript helped me to much. best wishes 2 u :) sarmad On Tue, Sep 9, 2008 at 3:24 PM, mbraybrook [EMAIL PROTECTED] wrote:

[jQuery] Re: javascript analogue of php serialize()

2008-07-03 Thread markus.staab
http://docs.jquery.com/Ajax/serialize On 3 Jul., 14:49, Julian [EMAIL PROTECTED] wrote: Hello! I need javascript function analogue of php serialize(). So far, use serialize function from:http://javascript.ru/php/serialize , which not work with Internet Explorer, and opera, with Firefox there

[jQuery] Re: javascript analogue of php serialize()

2008-07-03 Thread Julian
http://docs.jquery.com/Ajax/serialize Serializes a set of input elements into a string of data. That did not work for me. Like i said a have the data in array, and just want to serialize that data, not data from input elements. Greetings!

[jQuery] Re: javascript syntax question

2008-06-24 Thread Karl Rudd
The short: Define and immediately execute an anonymous function. The long: function blah() { ... } // define a named function blah(); // execute a named function function() { ... } // define a function without a name (anonymous) // can't execute the function because it doesn't

[jQuery] Re: javascript runtime

2008-06-17 Thread mmw
ok this[k] is not equal to this.push(k + : + v) delete is an operator (function($) { // public: $.dict = []; // private: var _len = 0; var _dict = [ 'set', 'get', 'del', 'len', 'toArray' ];

[jQuery] Re: Javascript breakout Game

2008-05-23 Thread ontologyonline
I think that ghost block is an unintended glitch :) The only thing I can think of that explains it is that array.splice does not work on removing the last element of an array. But even so, not sure whether I should fix it or keep it there for fun... David Decraene http://ontologyonline.org On

[jQuery] Re: Javascript breakout Game

2008-05-23 Thread David Decraene
Looks like my previous comment did not make it through: the invisible block is a small glitch, but perhaps it more fun to leave it in than to not to :) I think it has something to do with array.splice perhaps not allowing to splice the last element (not really sure otherwise). On May 22, 9:22

[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 Javascript

[jQuery] Re: Javascript of jQuery?

2008-05-19 Thread Mark
jQuery. -- Josh - Original Message - From: Klaus Hartl [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Sunday, May 18, 2008 12:10 PM Subject: [jQuery] Re: Javascript of jQuery? Yes, in the end jQuery is nothing else than JavaScript - although a very

[jQuery] Re: Javascript of jQuery?

2008-05-19 Thread Karl Swedberg
Hartl [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Sunday, May 18, 2008 12:10 PM Subject: [jQuery] Re: Javascript of jQuery? Yes, in the end jQuery is nothing else than JavaScript - although a very excellent piece ;-) --Klaus On May 18, 4:42 pm, Rey Bango [EMAIL PROTECTED

[jQuery] Re: Javascript of jQuery?

2008-05-19 Thread Mark
: Sunday, May 18, 2008 12:10 PM Subject: [jQuery] Re: Javascript of jQuery? Yes, in the end jQuery is nothing else than JavaScript - although a very excellent piece ;-) --Klaus On May 18, 4:42 pm, Rey Bango [EMAIL PROTECTED] wrote: Mark, You should really get a grasp of how

[jQuery] Re: Javascript of jQuery?

2008-05-19 Thread Michael Geary
NOW you tell us you're an experienced programmer... :-) I don't know about this specific book or the other one you ordered, but a lot of these JavaScript introductions are written for people who've never written a line of code. For someone with programming experience, I recommend David

[jQuery] Re: Javascript of jQuery?

2008-05-18 Thread Michael Freßmann
Hi, Mark! You should focus on jQuery, but don't forget to read the one or the other thing about javascript itself. Once being able to do things in jQuery (or any other javascript framework), you surely won't ever again want to write scripts in pure javascript. best regards, Michael Am

[jQuery] Re: Javascript of jQuery?

2008-05-18 Thread Sridhar Kuppalli
Better learn basics of the javascript and you can go ahead. If you have the knowledge of any other programing languages, then it will not take more time to catch javascript. On Sun, May 18, 2008 at 5:25 PM, Mark [EMAIL PROTECTED] wrote: Hi, first post here ... I have searched and cant find

[jQuery] Re: Javascript of jQuery?

2008-05-18 Thread Rey Bango
Mark, You should really get a grasp of how JavaScript works so that you can be a more effective client-side developer. jQuery makes things easier but you still should know how to handle, at the very least, the basic constructs of the JavaScript language. It will help in understanding why

[jQuery] Re: Javascript of jQuery?

2008-05-18 Thread Klaus Hartl
Yes, in the end jQuery is nothing else than JavaScript - although a very excellent piece ;-) --Klaus On May 18, 4:42 pm, Rey Bango [EMAIL PROTECTED] wrote: Mark, You should really get a grasp of how JavaScript works so that you can be a more effective client-side developer. jQuery makes

[jQuery] Re: Javascript of jQuery?

2008-05-18 Thread Josh Nathanson
jQuery. -- Josh - Original Message - From: Klaus Hartl [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Sunday, May 18, 2008 12:10 PM Subject: [jQuery] Re: Javascript of jQuery? Yes, in the end jQuery is nothing else than JavaScript - although a very excellent

[jQuery] Re: javascript in php loop, want to take if out of the php while statement?

2008-05-16 Thread Scott González
you can append the # to the box_id before putting it into the PHP array, resulting in your array looking like: ['#box1', '#box2', '#box3', '#box4'] then you can just do an implode on that array like: $selector = implode(',', $box_array); then just use that selector for your hide call: $(?php

[jQuery] Re: javascript in php loop, want to take if out of the php while statement?

2008-05-16 Thread thekman
Thanks Scott, What I am now using outside of the php loop is: var cookieJar = $.cookieJar('CookieJar'); $.each(cookieJar.toObject(), function(i, val) { if (val == 'closed') { $('#'+i+' .Content').hide(); } }); this works perfectly, unless you know of any reason I should be doing it

[jQuery] Re: javascript in php loop, want to take if out of the php while statement?

2008-05-16 Thread Scott González
That's fine too. Since it looks like you're able to do everything you need without using PHP at all, you may want to consider moving that code into a JavaScript file so that it gets cached. On May 16, 10:31 am, thekman [EMAIL PROTECTED] wrote: Thanks Scott, What I am now using outside of the

[jQuery] Re: javascript in php loop, want to take if out of the php while statement?

2008-05-15 Thread Scott González
Generate an array of the $box_id's in the loop. You can check the cookie directly in PHP using the $_COOKIE superglobal. After the loop, create your script. You can generate a JavaScript array from your PHP array using json_encode(). Just pass that array in as the selector for the jQuery

[jQuery] Re: javascript in php loop, want to take if out of the php while statement?

2008-05-15 Thread thekman
Thnaks Scott, but no idea yet how to do that. any chance you could provide a short example i could play with try to get working? On May 15, 2:56 pm, Scott González [EMAIL PROTECTED] wrote: Generate an array of the $box_id's in the loop. You can check the cookie directly in PHP using the

[jQuery] Re: javascript in php loop, want to take if out of the php while statement?

2008-05-15 Thread thekman
Hi Scott, got to play around with it a little have some if it figured out, thanks. the json_encode() of my php array returns something like: [box1,box2,box3,box4] the cookie returns something like: {box2:closed,box4:closed} so any idea where I go from here? On May 15, 3:06 pm, thekman

[jQuery] Re: Javascript does not work on a page loaded

2007-11-01 Thread Marxy
I tested this example in many browsers. All win32 firefox's are fine. IE7 works fine! Linux Opera does not work. All linux firefox's 2.x.x.x do not work. Linux Konqueror does not work. So... No linux browsers work good. All win32 including firefox work fine. -- View this message in context:

[jQuery] Re: Javascript does not work on a page loaded

2007-10-31 Thread Marxy
Eric Martin-3 wrote: Hmm...I copied your code locally and was able to run it w/o any errors using Firefox and IE 7... Hmm.. It looks so strange. I used firefox 2.0.0.8. Did you get second alert with 'I am test alert'? What is the version of your firefox? -- View this message in

[jQuery] Re: Javascript does not work on a page loaded

2007-10-31 Thread Marxy
No, It produced the same error after removing tags. No changes if itest.html is script src=itest.js/script scriptalert('That\'s inline alert!!!');/script That's my body, duddies! :-) scripttest();/script I use jquery 1.1.3.1, linux, firefox 2.0.0.8 Wizzud wrote: You can't expect

[jQuery] Re: Javascript does not work on a page loaded

2007-10-30 Thread Wizzud
You can't expect things to work correctly when you force the DOM to be invalid by inserting a complete html document into a div. Reduce your itest.html file to ... script src=test.js/script scriptalert('That\'s inline alert!!!');/script That's my body, duddies! :-) scripttest();/script (and

[jQuery] Re: Javascript does not work on a page loaded

2007-10-30 Thread Eric Martin
On Oct 30, 8:22 am, Marxy [EMAIL PROTECTED] wrote: Here is the situation. I made some test files. 1. Main html file. iload.html html head script src=/js/jquery/jquery.js type=text/javascript/script script$(function() { $('#div').load('itest.html');

[jQuery] Re: JavaScript Compressor in Rhino

2007-10-11 Thread Estevão Lucas
Can someone explain me how I can use JavaScript compactor in Rhino like in http://jqueryjs.googlecode.com/svn/trunk/jquery/build/build/ On 10 out, 17:59, Estevão Lucas [EMAIL PROTECTED] wrote: Hi I would like to know how I can use JavaScript Compressor in Rhino like jQuery' snv. Regards

[jQuery] Re: javascript paint like drawing tool

2007-10-01 Thread John Beppu
http://caimansys.com/painter/ ^-- This isn't build on jQuery, but it might give you something to start with. On 9/30/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I'm not able to find a good (preferably open source) paint-like drawing tool thought maybe there is one built on jquery.

[jQuery] Re: Javascript best practices

2007-09-13 Thread Christof Donat
Hi, More more plugins are using CSS to style the layout, this is good, but their didn't aware of if user browser don't know javascript, it is useless to load the CSS, e.g. thickbox script type=text/javascript src=path-to-file/thickbox.js/ script link rel=stylesheet

[jQuery] Re: Javascript best practices

2007-09-13 Thread ricardojrm
script type=text/javascript src=path-to-file/thickbox.js/ script noscriptlink rel=stylesheet href=path-to-file/thickbox.css type=text/css media=screen //noscript It's work? On Sep 13, 7:55 am, Christof Donat [EMAIL PROTECTED] wrote: Hi, More more plugins are using CSS to style the

[jQuery] Re: Javascript best practices

2007-09-13 Thread Joan Piedra
I agree with Christof, and a good practice is to add a hasJS class to the body, so you can filter out the css rules for js-only elements. And bring out a better result without js. On 9/13/07, Christof Donat [EMAIL PROTECTED] wrote: Hi, More more plugins are using CSS to style the layout,

[jQuery] Re: Javascript best practices

2007-09-13 Thread howa
another reason i can think of: sometimes, you don't want to include jquery plugin in the head /, since maybe header.template is shared, then you put the include plugin codes into the templates only want to show the effect, this came to a problem...putting css into body failed the html

[jQuery] Re: Javascript object detection

2007-08-21 Thread Pops
Hi, I may be wrong on understanding your question or need, but it sounds like something I came across as well and wrote a plug-in solution. Background: The bottom line is the jQuery AJAX calls (.get, .load, etc) will use an encoded url request and it issues ampersand () delimited key=value (or

[jQuery] Re: Javascript object detection

2007-08-21 Thread Pops
Important clarification needs to be made here: Solution: I found this non support for passing a natural stirng of nvpairs to be a obstrusive design so I created a override plug-in for the base method $.param() which handles this transformation. (function($) { var _inherit = $.param;

[jQuery] Re: javascript binding event to object method

2007-08-02 Thread ablock
I have an answer to my own question (i'm still reading up on the theory of closures, but i think that this is an example of one)... I saved this into another variable and created an anonymous function which called the bind method using my saved this var this_copy = this; function doBind() {

[jQuery] Re: Javascript: OOP help, accessing parent objects

2007-06-26 Thread Christof Donat
Hi, Thanks, that's really great, I'll have to really play around with that when I've got the time to really get to grips with it. Can you do multiple inheritence with that trick? That is not a trick, but a usuall JavaScript idiom. You can simulate multiple inheritance as well, but then you

[jQuery] Re: Javascript: OOP help, accessing parent objects

2007-06-25 Thread Christof Donat
Hi, function Contained () { var self=this; self.var1=1; self.var2=2; self.method1=function () { }; } function Container () { var self=this; self.varA = 'a'; self.varB = 'b'; self.containedObj = new Contained; } var foo = new Container;

[jQuery] Re: Javascript: OOP help, accessing parent objects

2007-06-25 Thread Christof Donat
Hi, C++ ... (new Container()).containedObj.method1(); //How could method1 ever access varA? OOps, this shopuld of course read (new Container())-containedObj.method1(); Christof

[jQuery] Re: Javascript: OOP help, accessing parent objects

2007-06-25 Thread Gordon
Okay, thanks for the help. I was just trying to figure out how to do inheritence in javascript and instead embedded objects inside other objects. :) One solution I found was something like this: function Contained () { var self=this; self.var1=1; self.var2=2;

[jQuery] Re: Javascript: OOP help, accessing parent objects

2007-06-25 Thread Christof Donat
Hi, Okay, thanks for the help. I was just trying to figure out how to do inheritence in javascript and instead embedded objects inside other objects. :) Ah, what you are looking for is this: function super() { /*...*/ }; super.prototype = { varA: 'a', varB: 'b' } function

[jQuery] Re: Javascript: OOP help, accessing parent objects

2007-06-25 Thread RobG
On Jun 25, 6:42 pm, Gordon [EMAIL PROTECTED] wrote: I am tryign to make more use of OOP techniques in JavaScript, but most of the OOP I have done up to now has been in class-based languages, and I'm struggling a little with the prototype based approach used in javascript. I know this isn't

[jQuery] Re: Javascript: OOP help, accessing parent objects

2007-06-25 Thread Kenneth
On 6/25/07, Christof Donat [EMAIL PROTECTED] wrote: Hi, C++ ... (new Container()).containedObj.method1(); //How could method1 ever access varA? OOps, this shopuld of course read (new Container())-containedObj.method1(); Christof I don't post much, but I must say that's

[jQuery] Re: javascript templates

2007-06-07 Thread Diego A.
Someone posted a very useful template plugin a few days ago... *digs it out* here you are: http://groups.google.com/group/jquery-en/browse_frm/thread/bde06a2e99f31efe/8e63b6928948c4c2?hl=en#8e63b6928948c4c2 Hi, I made a simple port of Ext.Template [1] / Ext.MasterTemplate [2] to be used with

[jQuery] Re: javascript templates

2007-06-07 Thread Karl Rudd
I don't believe there's any jQuery-based JavaScript templates engine/plug-in. There are two plug-ins that I know of that help with the insertion of code and content provided by the server side: Taconite http://www.malsup.com/jquery/taconite/ jXs

[jQuery] Re: javascript templates

2007-06-07 Thread Jack Killpatrick
(I just noticed that Karl Rudd also gave a link to this, so here's my 2c)... It's not jquery-based, but I've used it for some beefy financial reporting templates and it performed really well and provided a lot of flexibility: http://code.google.com/p/trimpath/wiki/JavaScriptTemplates

[jQuery] Re: Javascript question: Get elementid inside an element

2007-06-02 Thread Mark
it`s unlikely but possible for an id to be in the page for more than once.. i will try to avoid it :) And thanx for the reply`s. it has been very helpfull. 2007/6/1, Sean Catchpole [EMAIL PROTECTED]: As stated, the document.getElementById will only work on document, and will only return the

[jQuery] Re: Javascript question: Get elementid inside an element

2007-06-01 Thread Juha Suni
Well id's really should always be unique. But if you really want to do this, try: alert($('#001').children('#0011').html()); - Original Message - From: Mark To: jquery-en@googlegroups.com Sent: Friday, June 01, 2007 5:22 PM Subject: [jQuery] Javascript question: Get

[jQuery] Re: Javascript question: Get elementid inside an element

2007-06-01 Thread Mark
Could you also post the non jquery code? (i just would like to know :)) 2007/6/1, Juha Suni [EMAIL PROTECTED]: Well id's really should always be unique. But if you really want to do this, try: alert($('#001').children('#0011').html()); - Original Message - *From:* Mark [EMAIL

[jQuery] Re: Javascript question: Get elementid inside an element

2007-06-01 Thread March
getElementById() is an Document object method, doesn't belong to Element object, so can not use it as Element.getElementById(); maybe you can do it like this (without jQuery): var children = document.getElementById('001').childNodes; for(var i=0;ichildren.length;i++){

[jQuery] Re: Javascript question: Get elementid inside an element

2007-06-01 Thread Sean Catchpole
As stated, the document.getElementById will only work on document, and will only return the unique id. It is in fact very bad practice to have multiple id's and it is not unreasonable for javascript to fail if there are more than one. Just use a class instead of an id if there needs to be

[jQuery] Re: JavaScript question (don't think it's jQuery related)

2007-05-31 Thread Brian Ronk
I'm positive that finishNote is running. I put in an alert before the parseNote, and even inside parseNote, and those run. I get the alert right before the return in parseNote even. I have tested in FireFox with Firebug, and I haven't seen any errors as of yet. Here is a copy of the data I

[jQuery] Re: Javascript errors on site using jQuery

2007-05-22 Thread Dan G. Switzer, II
Andy, You've got multiple !DOCTYPE / tags in your output. You can only have 1 !DOCTYPE / tag an it must be the first element. I see this problem again and again. Apps are build that generated invalid HTML structures (multiple opening html, body, etc tags) and when they go to specify the

[jQuery] Re: Javascript errors on site using jQuery

2007-05-22 Thread Andy Matthews
Great. Thanks Dan. I'll check that out. _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dan G. Switzer, II Sent: Tuesday, May 22, 2007 8:59 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Javascript errors on site using jQuery Andy, You've got

[jQuery] Re: JavaScript Text nodes

2007-05-09 Thread Scott Sauyet
Rodney Finn wrote: Can I permanently post a JavaScript text node to a wabpage? I'm sorry. I don't understand the question. Can you elaborate (and not just with some JS source code)? -- Scott

[jQuery] Re: JavaScript Text nodes

2007-05-09 Thread Rodney Finn
So, I know how to type text into a javascript box and have it appear on the page. But when I refresh the page, all the text posted to the page vanishes. So, what I was asking was: Can I make the text I paste to the page with javascript STAY there, so that even after I refresh the page, it is

[jQuery] Re: JavaScript in loaded page with .load() init order

2007-05-06 Thread ATom
Simpler question: I load page with .load() function which contains external script with initialisation variable var SmileySupport = ... after it is inlince script which use SmileySupport, but FF show this: SmileySupport is not defined. Why? Here is example:

[jQuery] Re: javascript presentation

2007-05-04 Thread Jake McGraw
But did it have to be in the first 10 seconds? - jake On 5/4/07, Benjamin Sterling [EMAIL PROTECTED] wrote: What do you expect? He is a programmer... I think you are required to turn in your sense of humor and get a certified programmer upgrade. But that is just my theory. -- Benjamin

[jQuery] Re: JavaScript Hijacking - Jquery among the vulnerable ones

2007-04-17 Thread Fila
Hello! Thx for the answers and warnings i'll do my best to be more smarter with my codes. I'm aware about the velocity that the things happens and we have to do the codes fast, security is always put aside of this. If not at the end of the list... security codes are completly ignored.

  1   2   >