Hi,
I'm trying to load a combo with an enumerator from Translation API. But, I don't know how to iterate and get both the key and value of each item and show it to the user. Can anyone tell me how to do this???
The object I'm trying to access is google.language.Languages. It is built this way:
google.language.Languages{
'AFRIKAANS' : ...
Please, share your tips and tricks related to JavaScript coding. The ones which make code more elegant and faster.
See also:
http://stackoverflow.com/questions/61088/hidden-features-of-javascript
...
Hello!
Is there a way to find JavaScript variable on the page (get it as an object) by its name? Variable name is available as a string constant.
...
I'm trying to move some elements on the page, and during the time the animation occurs, I want to have "overflow:hidden" applied to an elemnt, and "overflow" back to "auto" once the animation is completed.
I know jQuery has an utility function that determines whether some element is being animated but I can't find it anywhere in the doc...
We have a heavy Ajax dependent application. What are the good ways of making it sure that the request to server side scripts are not coming through standalone programs and are through an actual user sitting on a browser
...
hey well i am working on something that which will basically create a business card online here is a example.
http://weblayoutsrus.com/draggable/example.html
im basically trying to layout the div tags like fullname ect with css, then i want to grab the X & Y co-ordinates of the div tags relative to there container so that it can b pass...
I am getting an error using the MsXml.ServerXmlHttp object from JScript under classic ASP when the call is asynchronous. The error message is "cannot find window class"
The environment is: Windows Server 2003 SP2; IIS v6; Classic ASP; JScript
When ServerXmlHttp.open is called with asynch = true the error occurs on the send method.
Wh...
I want to change the color of a map image dynamically (say from blue to red).
And I can't use canvas as I have to support IE.Any idea how i can manipulate an image on client side using javascript?
...
Here's what I want to do. I want the users to be able to delete their own posts but I want them to confirm this first, so when the user clicks the Delete link, I want to display a confirmation dialog with Yes and No (the standard Javascript confirmation dialog), if the user chooses 'No' nothing happens and the page won't post back but if...
I am looking for a regex for Javascript to search for text ("span" for example) in HTML.
Example:
<div>Lorem span Ipsum dor<a href="blabla">lablala</a> dsad <span>2</span> ... </div>
BUT only the "span" after "Lorem" should be matched, not the <span> tag.
For a second example, if we search for "bla", only the bold text should be ...
I have a link that uses javascript to submit a form, like so:
<a href="javascript:document.some_form.submit()">some link</a>
However, this will point to a vendor-supplied application that of course only works in IE. Is there any way to make this link open up in IE if the user is using a different browser?
...
I would like to know if it is possible to upload a binary file via ajax and php, and have a link to download it. I would like to avoid refreshing the entire page, as with a standard html form. So far I have been using forms to get information, such as radio and text boxes, and using javascript to override the default behavior. Is a simil...
I have the following issue, I have a large tree which has subnodes which can be folded and unfolded on demand (the data within nodes gets fetched with AJAX). However, I use jquery.event.drop/drag to create my drag/drop targets.
However, when I fold/unfold the drop targets change position and I need to recalculate. This is how I wanted t...
I'm trying to format various numbers on my page. These numbers either represent a price, a change in price, or a percentage. I know Javascript has functions to limit the number of decimal places, but is there any support for other types of formatting, such as grouping numbers with commas, controlling whether or not the +/- is shown, et...
Hey all..
I have a weird issue. I am opening a popup window in IE6 with SSL enabled on the server.
When the following executes it seems to lock the browser up. I know this is vague. This is the JScript that appears to be the problem. Gotta love your IE6!
function PopoffWindow(url) {
var features = "height=400,width=550,top=60,left...
Hi,
I have a controller action that effectively simply returns a JsonResult of my model. So, in my method I have something like the following:
return new JsonResult(myModel);
This works well, except for one problem. There is a date property in the model and this appears to be returned in the Json result like so:
"\/Date(1239018869048...
I've tried using the UpdatePanelAnimationExtender that is part of the Ajax Control Toolkit, but the biggest complaint I have with it is that it doesn't wait for your animation to finish before loading in the new content.
I would like to do something like the following:
Start Async request to server
Fade out the content in the UpdatePa...
I have a select box that calls window.open(url) when an item is selected. Firefox will open the page in a new tab by default. However, I would like the page to open in a new window, not a new tab.
How can I accomplish this?
...
Suppose I have 3 completely different layouts for one site.The first is shown by default, but there are hyperlinks at the top of the page. If you click one of them, I want the current stylesheet to be no longer used and the clicked one becomes applied to the HTML document.
I'm thinking this is done with Javascript, but can someone show ...
I have an iframe and I wrote this code
window.parent.document.getElementById('parentPrice').innerHTML
to access parent element. How to get the same result using jquery?
UPDATE: Or how to access iFrame parent page using jquery?
...