|
I understand, but for a starter, this should be okay.
Moreover, by redirecting new users to pre-written frameworks and controls, we're actually discouraging them from learning the language itself.
|
|
|
|
|
Shameel wrote: we're actually discouraging them from learning the language itself.
No.
.NET is a pre-written framework, has it discouraged you from learning? JQuery is a framework, have you stopped learning JavaScript?
Lazy coders may not want to learn any further than how to use an API but true developers will learn and better themselves. Expereinced developers also know to not recreate the wheel, if there is a perfectly good framework or control to do what is needed they will use it and save the time for more complex problems.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Mark Nischalke wrote: Expereinced developers also know to not recreate the wheel, if there is a
perfectly good framework or control to do what is needed they will use it and
save the time for more complex problems.
Correct. But the OP doesn't seem to be an experienced guy. So, let him learn the language first.
|
|
|
|
|
Inexperienced will not take the time for in-depth learning. Most employers don't pay for training or to have their devs learn something, they want results.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hi all
I have a .swf file in a page of my site that has big size.
I want use a javascript code before loading this .swf file, as loading bar.
I don't want this loading bar code be used for all page of my site, I want after my site loaded, and just for this ,swf file, loading bar works.
If javascript can does this for me?
Thanks,
Nima
|
|
|
|
|
Hi,
Flash runs thru flash runtime. Interfcae may be html and Javascript.
http://kb2.adobe.com/cps/415/tn_4150.html
http://www.adobe.com/devnet/flashplayer/articles/swfobject.html
|
|
|
|
|
This function is executed at Ie it will not run in Firefox. Nobody can oblige me in this area
var panel = document.getElementById('Panelbar');
for (var i = 0; i < panel.rows.length; i++) {
if (i % 2 != 0)
panel.rows[i].style.display = 'none';
}
_obj.nextSibling.style.display = "block";
|
|
|
|
|
I can infer from this code that you are trying to hide even rows from a table. A little debugging can help you. Why don't you try putting alerts at various places to find out if the various pieces of code are really executed or not.
|
|
|
|
|
Hi guys
I am creating some radio buttons at run time and also declaring its java script checked function,
and providing it the name parameter coming from my entity's name property , but problem is this name
contains such characters which generates client side error while creating radio button and its event , I cannot correct the data as my client needs these characters in their names , is there any way to solve this problem ?
regards,
Tauseef A Khan
MCP Dotnet framework 2.0.
|
|
|
|
|
What characters are those? Can you show some code? Why don't you strip those characters from the name? And why does your client dictate what names you should give to your UI elements? It is none of his business.
|
|
|
|
|
no ,client does not dictate my control names,for examle
i have a class
{
string id;
string name;
}
so while creating radio button at run time to its radioncheck event i am passing
name as parameter , so if name contains some invalid characters (which i cannot strip out)
so java script fails to create radion button at run time.
Tauseef A Khan
MCP Dotnet framework 2.0.
|
|
|
|
|
|
i want to make a program in java script to show it is leap year or not & shows leap month in year like febuary is day 29 please help me
|
|
|
|
|
If year is divisible by 4 OR
if year is century AND year is divisible by 400
then
it's a leap year
so for example 1900 is NOT a leap year
2000 is a leap year
2011 is NOT
2012 IS
The best things in life are not things.
|
|
|
|
|
Richard has shown you the rules for testing a leap year, but there is another method, try to create the 29th Feb for a given year, then get the date, if it == 29 it is a leap year, and return true, else false;
See this function; http://www.adp-gmbh.ch/web/js/date/is_leap_year.html[^]
|
|
|
|
|
I should have known there's a Date class in JavaScript; something else for me to learn.
The best things in life are not things.
|
|
|
|
|
Hey guys!
I have a div in a page called h-accordion.
After this div, there is a second one. When I pres on the first one, the second one toggles (hidden/shown).
The whole set repeats itself several times in the page - there are multiple "sections" which the user can "open" one by one.
I have the following code to make it work:
$('.h-accordion').click(function(){ <!--on click on this element-->
if($(this).next().is(':hidden')){ <!--if the next element of the title is hidden-->
$(this).next().slideDown(); <!--peform the slide down-->
$(this).attr('rel',"opened"); <!--change the state to openened -->
} else { <!--if the next element of the title is not hidden-->
$(this).next().slideUp(); <!--perform the slide up-->
$(this).attr('rel',"closed"); <!--change the state to closed -->
}
return false;
}).css('cursor', 'pointer').next().hide();
Could you please tell me what the last line does? Can`t figure it out with the jQuery reference...
Many thanks!
Shpid3r
|
|
|
|
|
It sets the h-accordion to have a style attribute "cursor" set to "pointer" (which obviously sets the mouse cursor to a pointer when mousing over h-accordion). Then, it hides the element following h-accordion.
FYI, it may not be clear if you are new to jQuery, so I thought I'd let you know that jQuery can chain statements. So the above basically looks like this:
$('.h-accordion').click().css().next().hide();
So it gets the elements with the "h-accordion" class, applies a click handler to them, applies some CSS to them, moves to the element following each of them, then hides those following elements.
The click handler will hide/show "following" elements. The "last line" (as you call it) will ensure those "following" elements are initially hidden.
Martin Fowler wrote: Any fool can write code that a computer can understand. Good programmers write code that humans can understand.
|
|
|
|
|
Wow, it makes sense and it's so simple!
Indeed I`m new to jQuery.
Now I`m able to play around with this a bit!
Many thanks!
|
|
|
|
|
how to fire multiple textbox when it is null to summaryvalidator
|
|
|
|
|
$("input:text").each(function()
{
alert("You're FIRED!");
});
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
ghantaanil wrote: how to fire multiple textbox
What do you mean by fire textbox?
|
|
|
|
|
I don't know anything about JavaScript or ECMAScript or ...
I just receive error like javascript:void(0) & in online questionnaire,visited in "http://kicsware.ir/hr/mainAction.do" ,I can't get visibleinput
tanks for help
modified on Sunday, July 24, 2011 8:09 AM
|
|
|
|
|
Do you have a technical question?
The best things in life are not things.
|
|
|
|
|
var classname= "active-k active-t active-o active-c active-v active-x";
var sometext="active-k active-k-background Kommentar";
now i want to match that is sometext contains any of the word in classname then it should return.
what is the best way of matching any of the word in classname [active-k or active-t .....] against sometext
|
|
|
|