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() {al
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-enhance
the op wanted to redirect without javascript
On Tue, Nov 10, 2009 at 7:02 PM, Scott Sauyet wrote:
> On Nov 10, 10:53 am, "factoringcompare.com"
> wrote:
> > What’s the best way to redirect when a users browser has JavaScript
> > switched off?
>
> How about going the other way?
>
>document.lo
On Nov 10, 10:53 am, "factoringcompare.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 non-js page
with addition
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:
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
> 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 : functi
give cornerz a go
http://labs.parkerfox.co.uk/cornerz/
On May 19, 5:12 pm, Aaron Lee 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
> $(".class_name").corne
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 jQ
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 wrote:
> Hi,
>
> I got the following error when I render the page us
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 wrote:
> Another option to possible look at
>
> http://bassistance.de/2009/03/03/jquery-snippet-autocomplete-city-bas...
>
>
Do you use this from the client side using Javascript like jquery ?
Thanks for your response.
Vijay
On Mar 19, 7:47 am, ricardobeat wrote:
> 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 da
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 wrote:
> I'm using Maxmind's GeoLite City open-source database.
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 wrote:
> Hi,
>
> Has anyone used a stable
Also, as an aside, I'm not sure the browser handles Javascript last,
just asynchronously. If you have:
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 wrote:
> OK, this did the trick, thanks!
>
> On Mar 16,
OK, this did the trick, thanks!
On Mar 16, 7:15 pm, Karl Swedberg 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-...
>
> --Karl
>
> _
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
ww
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 f
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 wrote:
> 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
> init
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 container for your
tabs hidden initially, and when the
Maybe you can use jQuery's filter method:
$(JSONObject).filter(function(){
return this.cactus = 'green' && !this.water;
});
On Mar 4, 11:00 pm, Khai wrote:
> I have a collection of DIVs (or a JSON array). Is there a javascript
> library that can search through a JSON array and return a co
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 wrote:
> I have a collection of DIVs (or a JS
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 coul
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
}
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: http://docs.jquery.com
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,
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
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
res
Can you post the code?
On Feb 12, 4:55 pm, Alex 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 call these p
Can you post the code?
On Feb 12, 4:55 pm, Alex 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 call these p
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 wrote:
> Hello,
>
> This is my first me
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 wrote:
> i tried searching the web, but couldnt find $ notation for javascript,
> but presumably it is javascript syntax as per the following examp
http://www.letmegooglethatforyou.com/?q=event+delegation
On Jan 13, 2:39 am, "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. Is anyone interes
Thanks!
I knew eval was bad, that's why I'd posted it here. :)
On Dec 17, 2:24 pm, Ariel Flesler wrote:
> 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]
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
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 y
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 jQuer
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();
},
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 helped me to much.
>
> best wishes 2 u :)
>
> sarmad
>
>
>
> On Tue, Sep 9, 2008 at 3:24 PM, mbraybrook <[EMAIL PROTECTED]> wrote:
>
hi, thanks alot. ur answer was quit good :)
the tip about 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, detectin
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 attribute,
this will allow you to provide for those who do not have
> 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!
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
thanks karl
that is really clear
Karl Rudd wrote:
>
>
> 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 with
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 hav
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'
];
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 2
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 pm,
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
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 Flanagan'
uld also
> >> recommend
> >> learning some of the basics of javascript at least in tandem with
> >> learning
> >> jQuery.
>
> >> -- Josh
>
> >> - Original Message -
> >> From: "Klaus Hartl" <[EMAIL PROTECTED
ing
jQuery.
-- Josh
- Original Message -
From: "Klaus Hartl" <[EMAIL PROTECTED]>
To: "jQuery (English)"
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
t; learning some of the basics of javascript at least in tandem with learning
> jQuery.
>
> -- Josh
>
> - Original Message -
> From: "Klaus Hartl" <[EMAIL PROTECTED]>
> To: "jQuery (English)"
> Sent: Sunday, May 18, 2008 12:10 PM
> Subjec
h learning
jQuery.
-- Josh
- Original Message -
From: "Klaus Hartl" <[EMAIL PROTECTED]>
To: "jQuery (English)"
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
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 mak
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
cer
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 f
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 Sonnta
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
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 differently?
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:
$().hide()
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:0
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
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 objec
It has now been approved.
Ariel Flesler
On Dec 8, 9:58 pm, Flesler <[EMAIL PROTECTED]> wrote:
> Hi guys, quite long ago, I made this javascript console for Maxthon
> (http://www.maxthon.com), that has some of the features of Firebug.
> Recently I decided to improve it and released version 2.0.
>
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:
h
No, It produced the same error after removing tags.
No changes if itest.html is
alert('That\'s inline alert!!!');
That's my body, duddies! :-)
test();
I use jquery 1.1.3.1, linux, firefox 2.0.0.8
Wizzud wrote:
>
>
> You can't expect things to work correctly when you force the DOM to be
>
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 c
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
>
>
>
>
> $(function() {
> $('#div').load('itest.html');
> }
> );
>
>
>
>
>
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 ...
alert('That\'s inline alert!!!');
That's my body, duddies! :-)
test();
(and preferably add the type attribute to the script tags).
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.
>
> Reg
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
another reason i can think of:
sometimes, you don't want to include jquery plugin in the ,
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 validation.
On 9
That only loads the CSS file if the user DOESN'T have JS enabled.
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ricardojrm
Sent: Thursday, September 13, 2007 9:46 AM
To: jQuery (English)
Subject: [jQuery] Re: Javascript best prac
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
It's work?
On Sep 13, 7:55 am, Christof Donat <[EMAIL PROTECTED]> wrote:
> 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
>
> >
> > sc
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>
>
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 = $
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
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 doBin
Do you have a live page we can look at, I have a few theories, but need to
see it in action..
On 7/13/07, c19h28o2 <[EMAIL PROTECTED]> wrote:
Hi,
I'm having a bit of trouble getting a function to pass a variable to
an ajax function
This is the function
function display() {
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 y
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
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
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?
On Jun 25, 3:13 pm, Christof Donat <[EMAIL PROTECTED]> wrote:
> Hi,
>
> > Okay, thanks for the help. I was just trying
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'
}
functio
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;
self.method1=funct
Hi,
> C++
>
> ...
> (new Container()).containedObj.method1();
> //How could method1 ever access varA?
>
OOps, this shopuld of course read
(new Container())->containedObj.method1();
Christof
(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
There'
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
http://www.brainknot.com/code/jxs.
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
Anyone?
On 6/7/07, Mandy Singh <[EMAIL PROTECTED]> wrote:
hi,
does jquery offer some kind of javascript templates plugin?
wat do (if they do) ppl use?
since i have a box structure on my page where more or less every box is
similar in markup, i would want to create a template of that with jav
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
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 multip
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;i wrote:
> Could you also post the non jquery code
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 PR
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 elementi
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 got