Hi, Could anyone please give me an example in this? I have found many but they didn't match my requirement.
The treeview must have expand and collapse, the xml is flexible, which means I should test if a node is exist, and there are many may appear many times and with different contents. Also, I need it works just in client side, nothi...
I am looking for a javascript function that works based around an array of dynamically generated images. At the moment I have a preview window.
When this is clicked I would like it to hide the preview window and load the first image in the array. I would the like to be able to navigate through the remaining images in the array.
If so...
This question is similar to http://stackoverflow.com/questions/546392/forcing-client-ids-in-asp-net but not quite.
ASP.NET generates clientids according to its own internal mechanism. I would like to run a xmlhttprequest query in the background to do an update and selectively reload some of the controls. My plan is to run the query and ...
Is there any method of programmatically determining the current security zone settings for Internet Explorer?
I'd like to know when my site will have the XMLHttpRequest ActiveX control blocked due to IE security policy, but before the site actually tries to create it and thus causes the yellow bar to appear up the top (saying "To help p...
Hello all,
I'm trying to make a "bubble" that can popup when the onmouseover event is fired and will stay open as long as the mouse is over the item that threw the onmouseover event OR if the mouse is moved into the bubble. My bubble will need to have all manners of html and styling including hyperlinks, images, etc.
I've basically acc...
I am calling a COM component in IE. Here is the code
<object align="left" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
id="Winvideo-Silverlight2RTW-Hypervideo-Part1-WMVa.wmv">
<param name="FileName" value="Winvideo-Silverlight2RTW-Hypervideo-Part1-WMVa.wmv">
<param name="AutoRewind" value="true">
<param nam...
String link = "javascript:document.forms[0].submit() onClick=\"return processParams(" + classOid + ")\" "; classbreadCrumbSelect.add("" + className + ""); //Load the link into my arrayList
for (String unitkey : unitbreadCrumbSelect) {
out.print(" | " + unitkey + " | ");
} //outputs to the JSP.
The error states that ) is missing a...
I'm a seasoned desktop developer working in C++/C#/WinForms/etc. Up until this point, I have done very little in terms of web development. I've come to the point in my career where I feel like I should start doing web development - not to replace my desktop experience but to become more well rounded as a developer.
I already know so...
I'm building a recipe-finder for a new food blog. The design I have basically involves the user selecting ingredients, one at a time, from a drop down <select>, the option disappearing from the list (so they can't select it again) and appearing on another HTML list with a link to remove it from the list. Once they're done, they click a b...
var a = [1,4,5];
var e = a.length--;
Here e variable will contain 5. But if I do:
var e = a.length-=1;
Here e will contain 2 the number of elements array.
So the first is a language 'tip' to simulate a pop() array methods?
In the language syntax doing:
a--
or
a-=1
is semantically the same.
...
I have a requirement in the project I am working on for a piece of JavaScript which will allow the user to pan over and zoom in and out of a large image.
Unfortunately, my experience with JavaScript is limited.
Does anybody know of a free script out there which would satisfy my requirements?
...
How would I convert ú into u in javascript. I might possibly need it for other non-english characters too.
...
I'm working on a JavaScript application that has to perform two separate checks via AJAX. Depending on the result of each check, behavior differs. The case I'm interested in here is when both checks are successful. I've identified a few ways to do this, and I want to get some feedback from SO about what they think the best approach is...
In this example, what's the regexp to to extract 'first' from location.href, such as:
http://www.mydomain.com/first/
...
Hi,
On my machine when I test my webapplication (wether in debug or normal) after
a javascript:history.back() triggers a postback in my app.
On the other hand it does not occur when i precompile the application.
Lastly, when I test the same pages on someones elses machine, the postback does not occur at all.
I'm using vs2008, asp.net 2...
Looks like Opera/Mac does not let you override an action when user pressed ⌘S (the default is, of course, save page). I found out my old script doesn’t work in it. It saves the form contents to server via Ajax.
Here’s an onkey* handler:
key = ev.keyCode
if (!key) key = ev.charCode
if (ev.type == 'keypress' && 115 == key && ev.ctrlKey)...
I have a jQuery UI dialog that opens when the user clicks a button, and I want the dialog to appear near the button. This is not so hard, for example:
var pos = $('#mybutton').offset();
$('#mydlg').dialog({
// ...
autoOpen: false,
position: [pos.left, pos.top]
});
The problem is when the button is on the far right side of ...
I am trying to write PHP code to delete all of the user cookies on my domain.
Here is what I got:
<?php
$domain = 'www.example.com';
$deleteExpiration = time() - 60*60*24*365*10; // 10 years ago
foreach (array_keys($_COOKIE) as $cookie) {
setcookie($cookie, 0, $deleteExpiration, '/', $domain);
}
Running this code on http://www.ex...
i want to sort the keys or name of the method.. following is the object http://pastie.org/411854
...
Is there any way to check if a URL scheme is currently registered on the phone... with javascript?
...