Basically I have a draggable list which is connected with a sortable list. Works great except I need some sort of Drop event which I can use to change the list item after its dropped into the sortable list.
This works with .draggable -> .droppable but is there a fix for draggable -> .sortable?
...
I know it's not really a question. But this is bothering me like hell. ASP.net adds so many inline scripts to my pages. Postback scripts, Ajax scripts(many of them), Scroll position script, default button/field script, etc etc etc.
Why on earth would they not just include all this mess in several files. All ajax into its file, all postb...
I'd like to embed the V8 JavaScript interpreter that ships with Google Chrome within my Delphi application. I'm aware of the chromium embedded open-source project from Google, but I'd like to know if anyone was aware of any Pascal/Delphi wrappers?
There is an example project included with the zip file on the site I linked, which is writ...
Hoping someone can assist and hoping this is possible in JavaScript. I basically have the following string in the format:
A,B,C:D,E,F
What I am trying to achieve is a means of pairing up left hand side JavaScript variable, to the left of the ":" with the right hand side values to the right of the ":"
I basically would like to have the...
<select>
<option value="0" id="n">n</option>
<option value="1" id="m">m</option>
</select>
In Jquery, how do I make the option 'selected' for id=m?
...
<select>
<option value="0" id="n">n</option>
<option value="1" id="m">m</option>
</select>
In JQuery, how do I say:
When id "n" is selected...do this . (not onclick) I want onSelected.
...
I have an ExtJS store like so:
var dataStore = new Ext.data.JsonStore({...});
I'm using it with a factory to get a GridPanel:
function CreateGrid(config) {
return new Ext.grid.GridPanel({
store: dataStore,
...
})
};
Now, when I run this code:
new Ext.Window({
closable: true,
items: CreateGrid(),
})....
I have been working with web workers in HTML 5 and am looking for ways to debug them. Ideally something like the firebug or chrome debuggers. Does anyone have any good solution to this. with no access to the console or DOM its kind of hard to debug iffy code
...
Hi All,
I have a Flex application which allows the user to edit a cloud-based document. (Think SlideRocket.) When the user tries to navigate away or close the browser window, I'd like to show them an are-you-sure dialog iff they have unsaved changes.
I'm using the following custom class, which I found at http://stackoverflow.com/questi...
I have an Ajax site where I have browser navigation hooked up to ajax page loads in cases where navigation results in a change to the URL hash.
I was wondering what the best way to get navigation history is for ajax loads that don't result in a change to the hash.
So, say I have 'Level 1' links which, on clicking, result in a URL hash...
Long story short I'm working on a Google Chrome Extension. The extensions don't have access to variables in the scope of the page they are operating on by default (you need to communicate through the DOM).
What I'm trying to do is insert a script into the page; this works fine by defining a script tag and a src attribute.
The problem ...
Hi All,
In my application i need to disable the button once it is clicked so that user should not click more than once. APplication is MVC ASP.NET i have done this in normal asp.net application. I tried using javascript and Jquery its not working
button is getting disabled but then form is not getting submitted
<script language="jav...
I'm writing a Chrome extension that launches a script with a keyboard shortcut. It works fine on most pages but I realized that on Gmail it doesn't: it seems that all keyboard events are captured by Gmail and are not bubbled up to my function.
I have a content script (in Chrome extension this is added to any page you want) that has (sim...
Hi,
I know that with ExternalInterface, we can register ActionScript functions that will be callable from JavaScript, But i want to register actionscript function for of one class which has multiple instance created in the Application. So how it will recognize which object action script function will called from java script.
For examp...
Recently I had to convert some Javascript code to JQuery scripts.
In this process I found that using JQuery do not speed up my site as much as I think. actually Javascript was faster in my case.
So I want to know that, Is JQuery Faster than Javascript or not ?
also
Whats the main advantages of JQuery to Javascript ?
...
I am working on java script validaion I am using TinyMCE editor in HTML to enter the description I have made the following validation
function validateAdd(){
var title = document.aboutAddForm.contentTitle.value;
var description = tinyMCE.get('contentDescription').getContent();
if(title ==...
Here is webtoolkit but ...
var t = new SortableTable(document.getElementById('myTable'), 100);
2 parameters
function SortableTable (tableEl) {
and where is height ?
Here is my try to make it work but it doesn't works (only commented code works but for ff and ie only)
function ScrollableTable(tableEl, tableHeight, tableWidth) ...
How do you make an HTML button behave just like a hyperlink where, if you click on it, it will open a browser window showing a page you want?
I understand this much. I think I will use this
but instead of a link to some javascript code inside the quotes for "onclick" I want to put something simple that will launch a new browser window...
A page loads another domain in an iframe. If javascript inside the iframe clicks on a link in the iframe which domain will the referrer be?
...
ok, heres some sample code that demonstrates the problem.
if i click the button in firefox, the first option disappears.
if i click the button in chrome, nothing happens, or rather if i inspect the first option, it does have the attribute "style='display:none'" but the option itself on the html page is not hidden.
<form>
<select>
<optio...