Hello,
I'm looking for a way using jquery/javascript to get a class name when I only know part of it and there are more than one classes applied to that element.
So if I'm looking for a class that I know starts with "charLimit_" I want to know that full class name even when it's not the only class applied to a given element.
Example HTM...
Brainstorming needed. I have a problem with Javascript libraries (jQuery, ExtJS etc.) that don't seem to play well along with Javascript Intellisense built in Visual Studio 2008. They provide certain utility helper functions that intellisense fails to understand.
ie. ExtJS code
// convenience function to create namespace object placeho...
Hi,
I am try to write some validation script using javascript and prototype.
What I want to do is to loop through all the elements of a form and validate each answer. My code works, BUT the array of DOM elements is unsorted. I would like to sort the elements by their ID.
Here is the my code, which works fine if I comment-out elem.s...
I have a simple in-line edit in my grid, and I want to commit the change when the user tabs off the textbox. The default behavior of jqGrid forces the user to press 'Enter' to commit the change, but this is non-intuitive for our users.
onSelectRow: function(id) {
$(gridCoreGroups).editRow(id, true, undefined, function(res...
I need help to write a if statement using jquery. So if results.d.ProductName is empty do not show `$(prdHtml).html(html);
$.ajax({
type: "POST",
url: "Services.asmx/GetProduct",
data: '{ "fieldName": "' + id + '"}',
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(results) {
...
Hi guys, can you help me ? :(
I can get a style of an element just doing this:
alert (document.defaultView.getComputedStyle (document.getElementById ("element"), null).getPropertyValue ("background-color"));
I can get all styles of an element just doing this:
var styles = document.defaultView.getComputedStyle (document.getElementByI...
Hi,
I have a bunch of inputs like this
<input id="someId" type="button" class="SomeClass" onclick="determineClass(this.id, event)" />
From javascript I would like to get the class, it's different for each input.
function determineClass(id, e) {
var elementClass = //Somehow get the class here
}
It can be using jQuery or just pl...
Hi,
I would like to know how much time (in percent) does JavaScript development takes at your work. I work with complex rich-internet applications and i spend most of my time in JavaScript development.
And you: how much time do you you spend in JavaScript development and what do you do to reduce it ?
regards,
...
This javascript works fine in FF v3.5.3, but not in IE 6.02. Can someone who is experienced in IE JS compatiblity please review this code for possible incompatibilities? I didn't include the code for all the functions being called because that would make my code sample huge, but I have tested the functions before in IE and they worked. I...
I have a function that accepts multiple arguments (only one is defined in the function though)
var getSearchFields = function(method) {
console.log(arguments); // this prints them out nicely into the console
var args = arguments;
var argsString = args.join('/'); // I expect 'arg1/arg2/arg3', instead I get 'args.join is no...
I have a website developed in ASP.NET and VB.NET which has a place for a 160 x 600 google ad on the right hand side of the page.
It looks good when it shows on the page but I have discovered that when the google ad is blocked, like it is at my workplace, the page looks incomplete. There is no message that shows to say the ad is blocked...
Can I edit a cookie created by javascript with php and vice versa
is a cookie a cookie basically?
...
Hi all,
I asked a similar sort of question a week ago at link text and that particular issue got solved, but only for IE7. I still have issues with IE6.
Basically I have a left navigation menu that I want to work in an "accordion" fashion. The menu is made up of ULs and LIs and I want to be able to click on an LI to open up the sub men...
I have already tried Google's microformat testing tool, but it's not clear to me that it works the same way as Googlebot -- it seems reasonable that Googlebot would have more features than a simple web-based testing tool.
So, I'm wondering -- does anyone have any real-world experience in successfully getting Googlebot to parse microfor...
I'm creating Content management system in asp.net. But I need open source cascading stylesheet builder like visual studio style builder.
Can anyone know existing css builder?
...
Instead of individually calling $("#item").removeClass() for every single class an element might have, is there a single function which can be called which removes all css classes from the given element? Both Jquery and raw javascript will work.
...
In an attempt to keep my scripts maintainable, I'm going to move each into their own file, organised by controller and action:
// scripts which only apply to /views/posts/add.ctp
/app/webroot/js/page/posts/add.js
// scripts which only apply to /view/users/index.ctp
/app/webroot/js/page/users/index.js
That's all cool, however I'd like...
Are there any inversion of control frameworks for javascript?
The closest answer available on stackoverflow that I could find is here: http://stackoverflow.com/questions/619701/wiring-code-in-javascript . It looks like a great start, but I thought I'd be able to find something with a longer development history.
I've only used Castle W...
I have a situation where I want to create a mapping from a tuple to an integer. In python, I would simply use a tuple (a,b) as the key to a dictionary,
Does Javascript have tuples? I found that (a,b) in javascript as an expression just returns b (the last item). Apparently this is inherited from C.
So, as a workaround, I thought I can...
I have a master page.In that master page i have content place holder.Now i want that my page in that content place holder should be divided into two panes with the left pane displaying the links and when i click those the right pane display the page.I have searched splitter controls but none has helped and most of them are not free.So,ki...