I know this would be difficult to understand but please give a try.
Have a look at the screenshot.
The small input box's name is murl.
add() is used to submit the form. if murl is empty the form has to be submitted directly, if its not empty the murl entry has to be checked against the database if it exists. if it doesn't exist add() i...
I have a flash object interacting with a javascript function. The interaction works fine in every browser except in IE (all versions)
I have tried with swfobject and with classic embeding. AllowScriptAccess is set to "always". Is there any cause for this flaw ?
Thanks
...
I'm trying to integrate analytics into my GWT application. To do this, I'm calling a service that returns a String of HTML that needs to be parsed and eval'ed.
I need a regex that looks for and grabs either 1) the body of the tag or 2) the contents of the "src" attribute. I want to eval both of these with JavaScript. I'm happy with as...
I let a user reconfigure the location of a set of rows in a table by giving them ability to move them up and down. The changes are done by swapping nodes in the DOM.
After the user has moved rows around, when I do a view source, I see the HTML in the original state (before the user made any changes).
Can someone explain why that is? ...
I am building a new web based application in asp.net. Our backend has existing WCF/REST services that are returning JSON. I also have a JavaScript library that wraps up calling/consuming these JSON services for me client-side. This enables the app to make client-side AJAX calls and do things like a client-side repeater (Rick Strahl ha...
I have an mvc ajax form that inserts text into an element with InsertionMode. I also want to run a javascript method after that completes but if i use "OnCompleted", the insertion does not occur and the text is put in another browser content page.
How do I run a javascript method after the Ajax InsertionMode has finished?
...
How do I get the number of days between two dates in jQuery? For example, given two dates in input boxes:
<input id="first" value="1/1/2000"/>
<input id="second" value="1/1/2001"/>
<script>
alert(datediff("day", first, second)); // what goes here?
</script>
...
I have the following RadioButtonList:
<asp:RadioButtonList ID="rblCordLevels" runat="server" AutoPostBack="true" OnSelectedIndexChanged="CordLevel_SelectedIndexChanged" RepeatDirection="Horizontal" RepeatLayout="Flow" CssClass="hand">
<asp:ListItem ID="liDraft" Text="Draft  " Value="1" runat="server" Enabled="false" />
<asp:Li...
Hi,
i want to know how gmail implements its add link to mail function - is it a div which changing it's display? is it another layer? is it something else?
Thanks in advance,
oz radiano.
...
I'd like to have a handler fire whenever the user scrolls, but I don't want it to happen when the browser scrolls on behalf of the user. For example, the document below scrolls itself as part of onload. This fires my onscroll handler, but I don't want it to. Even if I remove the onload, there's still a problem: if the user scrolls and th...
I'm using an Infragistics grid on a form and am handling multiple client-side events on the cells (e.g. cell click, before cell edit, before cell update, etc).
On the cell click event, I'm spawning a secondary window (successfully) as follows:
var convChartWindow = window.open("conversioncharts/" + currentCell.getValue() + ".html", "...
I used this code to maintain scroll position and don't have a clue of what it means. If someone has the time, can you provide me with an step by step explanation of what it is doing. Here it is:
<script language="javascript" type="text/javascript">
var xPos, yPos;
var prm = Sys.WebForms.PageRequestManager.getInstance();
...
Hi,
I just made a text animation (fade in; animate(top, opacity)) and at the end, the text went about 5px left then returned to its original position, quite quickly. This happened in IE only; all other major browsers behaved normally.
Any idea about why it happens, and how to fix it? I am interested in fixing IE7 in particular.
Thank...
I am using the jQuery Form plugin to submit AJAX requests. I am trying to do some simple validation (make sure fields are filled out) before submitting. I am not trying to run any AJAX validation prior to submission. Before I added beforeSubmit to the options of the ajaxform() method, the form would submit and my controller code would ru...
Is there another way to get the last child of a div element other than using p:last-child which does not work in IE at least?
...
I have a javascript file that reads another file which may contain javascript fragments that need to be eval()-ed. The script fragments are supposed to conform to a strict subset of javascript that limits what they can do and which variables they can change, but I want to know if there is some way to enforce this by preventing the eval f...
Hey everyone,
I'm making a template that is relying on a lot on a tabbed interface and in order to make it a bit more intuitive, I want to make sure that a user can click anywhere in the tab in order to activate it, instead of having to click the text inside the tab. In order to achive this, I'm currently doing this:
<div class="tab" o...
I have a user control (a user details form) which has a lot of javascript and css attached to it.
i'm struggling to make my control decalre that it needs a certain file so it will be included in the "head" section of the html.
I also wonder what happens if i enter mutiple instances of a control (the is no InamingContainer or anything si...
I'm kinda new to using Rails, and an app I am working on is progressing well - however I'm looking though the generated HTML and noticed things like...
<script type="text/javascript">
//<![CDATA[
Droppables.add(...);
//]]>
</script>
Sprinkled around the HTML, which of course matches up with places where I use:
<%= drop_receiving_elem...
In my web app, I use the onkeydown event to capture key strokes.
For example, I capture the 'j' key to animate a scroll down the page (and do some other stuff meanwhile).
My problem is the user might keep the 'j' key down to scroll further down the page (this is equivalent to fast multiple key strokes).
In my app, this result in a s...