I am looking at allowing users to enter JavaScript to specify some logic in my app. The JavaScript would be entered and displayed in a browser, but it would be saved and validated server-side first.
This opens up obvious security implications.
Ideally, I would want to only allow a subset of the JavaScript language. Intuitively, an op...
I have a multi-select <asp:listbox> and a button. I want to disable the button unless >= 1 item in the listbox is selected. How can I do this client-side? I can't find some sort of OnSelect callback, only OnSelectedIndexChanged which from googling seems complicated to use for this behavior, possibly impossible.
...
Hi, I want users on my website to be able to "move" div tags once they are 'unlocked' and then for a php script to store the positions in mysql database. So once the user re-logs in the div tags are positioned in the correct place.
I know how to postion div tags in css, and am using php varibles within css to pull the data from the data...
I was fine tuning a page that is heavy on jquery and stumbled across this website:
http://www.componenthouse.com/extra/jquery-analysis.html
When I click on the "Run Test" button the first time, the numbers are way higher than subsequent clicks. Is this because JS is cached by the browser? Can someone explain how this works internally? ...
I am trying to do a hover effect as follows:
<div>Some Text</div>
should be substituted by a <select> upon mouseover. as soon as the mouse leaves that select it should display either the value previously displayed or the new selected value.
Unfortunately the mouseleave is called when you open the dropdown to select some options and I...
I have JS function which parses through a table:
// id contains a message id, activeRow is "this" from onClick on tr
function doSomething ( id, activeRow ) {
// AJAX calling using id as parameter
$("#searchResultTable > tbody > tr").each(function(index) {
$(this).removeClass("bold");
});
}
This works perfectly fine...
I use the latest version of textmate for all my Rails development needs and I feel that I'm under-using the possibilities or this software. I only installed the Ruby on Rails bundle and use little to no snippets / shortcuts.
What do I absolutely HAVE to know / do in order to get the most out of my textmate in a web development environm...
Here's my HTML:
<div class="large">
<img src="/images/photos/Interior.jpg" alt="The interior" style="[...]" />
<div class="caption">The interior</div>
</div>
<div class="small">
<img src="/images/photos/Bedroom.jpg" alt="Bedroom" style="[A different ...]" />
<div class="caption">A bedroom</div>
</div>
Upon clicking a d...
HI,
I am looking at this bit of code:
var length = 0;
for (recordId in publicationTableIndexes[sortColumnNumber]){
length++;
}
And I am wondering if there is a way of getting the same result without the loop?
publicationTableIndexes is an array containing 5 arrays. If I try publicationTAbleIndexes[sortColumnNumber].length I get un...
My problem is related to using the JQuery Tools Tooltip Plugin (http://flowplayer.org/tools/tooltip.html) on items with tooltips that are refreshed in asp.net UpdatePanel controls. The problem is that after the tooltips have been added, any partial postback from an UpdatePanel will cause the tooltips to stop working in any of the UpdateP...
Does anyone know if, using one Request.HTML call from MooTools, it is possible to somehow update more than one element in a webpage? The current call I have is:
var req = new Request.HTML({update: $('content')}).get('../latest_events');
This updates the content div in my page with the "../latest_events" page. Is there a way to updat...
I've got my autocomplete plugin working perfectly... except I have certain info that I want displayed in the autocomplete divs, but I don't want to end up when the user makes their selection.
Ie... I have an auto complete for currencies... they can search by either currency code or country... as they search it displays both info along w...
I am working on a Javascript object that contains some YUI objects. The key thing is, my object needs to contain it's own set of YUI tabs so that I can display multiple instances of my object on the same page and have the tabs control their own object instance.
I set it up as follows:
var Scheduler = function(divid,startDate,mode){
...
I'm developing a platform for developing desktop apps with web technologies. In the course of doing so I've been trying to get some document/on-ready functionality working with the browser I will be integrating into the platform. That's why I'd previously asked this this question here on SO: javascript-framework-that-primarily-provides...
So I'm working on a little bit of jQuery for a site I'm working on and for some reason when I put single quotes inside double quotes Firefox, in it's eternal glory, changes them to double quotes thus breaking my code.
I even tried putting it in an external javascript file even though I'm just prototyping at this point. No good. Wouldn't...
I like the Gmail facility of going to the next message using right click and drag mouse to the right.
Can I implement that functionality in someone else's website? For example, can I automatically move to the next question / page on the SO site?
...
Hi,
I was wondering if I could do the following:
load a html page and set the backgroung color of the body element dynamically with javascript, in this case with a jquery script. If the page elements are loaded before the js executes, then the body color will be white for a second, and then it changes the color. If the js would be load...
I'm doing in-line edits on a grid, but can't seem to get any events to fire that would be tied to that edit.
Here I have afterSubmit: and I want it to fire after the user has edited the Quantity field in the grid, but it never fires.
$('#tblLines').jqGrid({
url: createUrl('/CRA/GetLines/'),
editurl: '/CRA/EditModifyLine...
How do I match U1234, but not \U1234 in Javascript?
I can't figure out how to not match the single backslash.
The closest I can get is:
\[\\]{0}U[0-9]{4}\b
But that doesn't work.
Any suggestions?
...
Hi Again Masters Of The Web :)
Now, I have got a new stupid question, and I am asking to forgive me. I read everywhere about this solution, but didn't find the one that works for me.
I have got:
<input name="domain" type="text" id="domain" onKeyUp="javascript:chk_me();">
All I am asking is how to make this not to check after a button...