The following works fine in Firefox and Chrome, but IE 8 will not call the submit() method when the anchor link is clicked.
<a href="javascript:void(0);" onclick="submit();">Sign In</a>
The submit method is defined on the same page as follows:
<head>
<script type="text/javascript">
function submit()
{
// other code ...
When using MochaUI to open a new floating container (from the demo menu File>Tests>any), a new tab appears in the "Dock" bar, and when one click this tab the floating window minize/restore.
What I'd like to use is to use those tabs but having the containers (maximized) into a panel.
For example, I click File>Open>Something_1111, and a ...
Hi, I'm trying to modify the value of a hidden input in an iframe I have on my page.
I'm using the following javascript function:
function get_to(){
alert(document.getElementById('poza_get').value);
window.frames['frame01'].document.forms['newad'].elements['poza_src2'].value=document.getElementById('poza_get').value;
alert(...
Updated title to better reflect what I'm trying to do.
In short, there are different constructors for different dom elements, and they don't seem to all share a common prototype. I'm looking for a way to add a function property to every DOM element by modifying these prototypes, but I'm not sure how to find them.
For example, I could d...
I have this kind of json string:
{"total":"3","data":[{"id":"4242","title":"Yeah Lets Go!","created":"1274700584","created_formated":"2010-07-24 13:19:24","path":"http:\/\/domain.com\/yeah"}{"id":"4242","title":"Yeah Lets Go!222","created":"1274700584","created_formated":"2010-07-24 13:19:24","path":"http:\/\/domain.com\/yeah222"}{"id":...
Hello,
I've created a .php file that write out js code like that:
<?
//my_js.php
// javascript header
header('Content-type: text/javascript');
// Date in the past
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
// always modified
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
// HTTP/1.1
header('Cache-Control: no-stor...
I'm trying to suppress the normal keyboard events on Firefox's interpretation of the <select multiple="multiple"> box, but the methods I'm used to aren't working. YUI's stopEvent doesn't seem to actually suppress the effects of a keypress or keydown (or both).
keyPressHandler = function (e) {
YUE.stopEvent(e);
};
YAHOO.util.Event....
How to create custom component in dorpdown ? requirment is dropdown with next and previous functionalities.
dropdown have list, we choose the list as well using next and previous button choose list from drop down.
this is jsf dropdown , how to implement the next and previous functions in the dorpdown.
(previous)< (dropdown) >(nex...
I am building an interactive tutorial for a web app (something that teaches the user how to use the site without presenting boring texts and static manuals).
The idea is to guide the user through all the site sections explaining every important feature. I've found the perfect tool to do that: http://amberjack2.org/, however it does not ...
I'm programming a Webpage/-Application for the iPhone. I need to scroll to a specific position after page reload, no matter where I scrolled to while using the page before.
The script I use works fine in firefox but not in mobileSafari. In corntrast to firefox, mobileSafari seems to save the position I scrolled to previously and jumps t...
I'm using javascript to request a image generated by the server in real time.
The parameter is passed in the url and grabbed by MVC, and set in the "id" parameter to the controller. Like this:
Public Function Index(ByVal id As String) As ActionResult
This works fine if i dont use any special characters, like "?" or quotes. To send t...
Hi - I'm pretty new to using jQuery but am working on a Safari Extension at the moment and have run into a bit of a puzzle with appending some text to a page.
Basically, I am creating an extension that will append a specific string of text with another on the page within an element
<td id="name">foo</td>
Using the following jQuery co...
This is my HTML page..
<div>
<form id="signupForm" method="get" action="">
<table>
<tr><td><input type="button" value="New" onclick="clearuserfields()"/></td></tr>
<tr><td>USERID:</td><td><input type="text" id="userID"/></td></tr>
<tr><td>FNAME:</td><td><input type="text" id="fname" name="fname" /></td></tr>
<tr><td>LNAME:</td><td...
Im using multiple ASCX controls on one page, and the javascript clashes obviously if I use two of the same control. So Ive changed it all to proper OOP javascript so they dont interfere, but my problem now is how do I do the HTML side of things. Both ASCX's will make a div called "foo". So whats the usual way around this? Am I meant to a...
The HTML is:
<input type="file" multiple="multiple" name="upload" id="id_upload" />
If I load up three files, document.getElementById("id_upload").value only returns a single file name and not an array of three names or comma separated string of three names. Same story with jQuery val(). Is there a way to get the whole list?
...
I'm not sure why but I haven't really been able to find the right resource for this which helps me understand the best practice here, but say I have an application, that I want to make an Ajax request to another application.
Say app A's domain name is: www.example.com, and I want to make a request to www.someapplication.com
Can I do so...
I'm making a classifieds ads website where users submit ads through a form (like Craigslist). Many users write the title or description of their ads in UPPERCASE to get more attention, but I dont want to affect the overall appearance of the website.
I would like to stop this, but still allow the use of acronyms of less than three upper...
What is the best and easiest-to-use video player for popular video extension in asp.net?
...
While executing the following code IE throws the error -- Object doesn't support this property or method -- referring to the cloneNode() method. 'i' is the loop counter, source and dest are both HTML select elements.
dest.options[dest.options.length] = source.options[i].cloneNode( true );
FF and Chrome behave as expected. Any ideas ...
I use highslide.js (highslide.com) with jQuery library (1.2.6)
hs.Expander.prototype.onAfterGetContent = function(sender) {
//Why $(sender.content).find('#someid') doesn't work here?!?!@?!
}
I only need to find a specific element with specific ID inside sender.content... am I using a wrong function??
Thanks
...