javascript

GUI Component or class-library to visualize many-to-many relationship?

Are there any components or class libraries (.NET, Silverlight, Javascript) which are able to visualize / navigate data in a many-to-many relationship? Similarly as a Treeview is able to visualize / navigate parent-child related data. I'm looking for a way to view some object and N levels of related objects. ...

How to trigger key combo with jQuery

Hi all, I have coded some stuff: http://fincha.com/kunden/schmitt/ I zoom in with .css("zoom") but I need the buttons to simulate CTRL + or CTRL - This code isn't working for me: e = jQuery.Event("keydown"); e.which = 50; $("input").trigger(e); Please help! EDIT I just wont to zoomin and zoomout the hole page ...

CKEditor textarea extending out past box in Chrome and Safari

In FF, Opera, IE the CKEditor is working and looks great. But in Chrome and Safari it is not sizing correctly, and is extending past the container that it is inside. I assume this is because Chrome and Safari are currently the most standards compliant. See the images below. Chrome Opera I tried removing all of my CSS files to see ...

jQuery CSS font-size

Hi folks, How do I auto resize the font-size of a <td> if the content goes into second line? I know how to increase/decrease font size using CSS and jquery but how to automatically make the font-size smaller if a particular or all the td's with a specific class name text gets longer then one line. <div style="overflow: hidden;" id="par...

DOJO: find child

Here is the code: dojo.query(subNav.navClass).forEach(function(node, index, arr){ if(dojo.style(node, 'display') == 'block'){ "NOW HOW WOULD I FIND CHILDREN????" }); } }); By the way I just started working with DOJO, i am primarily working in jQuery. So now that i have found node that has ...

iframe reload issue firefox file upload

My ascx does support postback(dont ask why), I do an ajax call to save all the data on page, but I have to do a file upload as well so I am using an iframe for it. Everything works well expect for in the firefox. In the firefox it all works well for the first time not the 2nd time. i.e. if the form filled and files uploaded and submitte...

Can Wicket have AJAXified drop-down menus?

I need to make a web page with Wicket that lays out the following table: +------------+---------+ | Category | Value | +------------+---------+ | CatA | ValA | +------------+---------+ | CatB | ValB | +------------+---------+ | CatC | ValC | +------------+---------+ | CatD | ValD | +------------+...

.htaccess rewriteRule help

I have a link in my index.html: href="my_page.php?cat=14&p=1"; Now, how can I rewrite this so that it looks like this: /my_page/14/1 I have this so far, but I don't know how to add the ending '/1' to this: RewriteRule ^kategori/([0-9_]+)$ browse_cat.php?cat_gr=$1 [NC] Thanks ...

How remove blank characters from a string in javascript?

How I could remove blank characters from a string in javascript? A trim is very easy, but I don't know how extract a blank "inside" the string. For example "222 334" -> "222334" Thanks in advance ...

send more than one parameter to servlet through anchor tag

i want to send more than one parameter to servlet through anchor tag . but the problem is one parameter is the return value of java script method . For more Explanation ; <% int cnt = 1;%> <c:forEach items="${requestScope.AllUsers}" var="user"> <tr id="<%=cnt%>"> <td >${user.userName}</td> <td>${user.emailAddress}</...

WIth this Code I am getting IE page load error on the Left hand bottom of the screen..

Hello Friens, I have this code in my view.. <div> <input type="button" value="Cancel" id="btnCancel" onclick="window.location.href='../Reviewer'" />&nbsp;<input type="submit" value="Save" id="btnSave" onclick="saveCreateHeader()"/><input type="button" style="margin-left:50px;" id="btnNextStep" value="Next Step" onclick="window.locat...

What are the risks associated with Hosting 3rd party Javascripts?

I'm a new developer at my company and I do mostly front-end web development. Our team is frequently asked by our Sales and Marketing people to incorporate 3rd party javascripts on our site. "Here's a 'little code snippet'. Our vendor asked if you could put this in our home page" This makes me very nervous. I know these scripts can ...

What is the best way to initialize a JavaScript Date to midnight?

What is the simplest way to obtain an instance of new Date() but set the time at midnight? ...

Multiple @ JS Comment bug in IE

I've come across a bug/undocumented feature in IE 7, 6.5 (perhaps others?). This doesn't effect Opera (10.5x) Firefox (3.5.x) or likely any other browser (this is all I've tested so far). It doesn't seem to be a documented ability of Javascript. By including a comment denoted by double slashes, and directly followed by double at signs...

How JavaScript does OOP?

I am learning about creating objects in JavaScript. When I do this ... var Person = { name: "John Doe", sayHi: function() { alert("Hi"); } }; I know that I am creating an instance of a Person class, but I do not know how (or if) I can reuse that class to create another instance. What OOP features does JavaScript has? Does...

What risk or liablities in using eval() in the following manner

I'm working on creating one of those robot games. The user creates a robot and then puts it in a battlefield with other robots. I'd like to let the users use javascript to program their bots. I'll provide a number of functions for them to call, but they also can build thier own. (sorta) To date, the only solution I have come up with is...

Using jQuery to determine an element's class

Hello, Most examples I can find showing how to work with attributes show how to set them and not how to retrieve them. In my case, I am trying to get the class of an and then parse it to determine its parent value. HTML: <select class='parent' name='parent' size='10'> <option value='1'>Category 1 -></option> <option value='2'...

Javascript reference error using default operator

I am trying to use the || operator as the "default" operator as described by Crockford at (http://www.crockford.com/javascript/survey.html): The || operator is commonly called logical or. It can also be called default. If the first operand is false, null, undefined, "" (the empty string), or the number 0, then it returns the second oper...

ExtJS and Zend Framework MVC

Im making a Zend Framework MVC application using the standard Zend MVC structure and I wanted to know where I should be putting my client-side ExtJS javascript, not the library but my js files. ...

Jeditable Problem in castle monorail

Hi, I am trying to use Jeditables (http://www.appelsiini.net/projects/jeditable) in my first castle monorail mvc application I managed to have the textbox appearing and to the the ajax call, my problem is now that after the ajax call the edited text returs is not changes and i can t get the response after the call this is my page <he...