Hi
I am having a problem getting onprogress event for the audio tag working on chrome. it seems to work on fire fox.
http://www.scottandrew.com/pub/html5audioplayer/ works on chrome but there is no progress bar update. When I copy the code and change the src to a .wav file and run it on fire fox it works perfectly.
<style type="text/c...
Hi,
I want to use a javascript framework with MVC for a complex web application (which will be one of a set of related apps and pages) for an intranet in a digital archives. I have been looking at SproutCore and JavascriptMVC. I want to choose one framework and stick with it.
Does anybody know what the distinguishing features are when ...
In my web application I am using ajax and now I'd like the back and forward browser buttons to work. So I went looking for a jquery history plugin and found this one: http://stilbuero.de/jquery/history
In my code I use a function to load a page:
function loadDocument(id, doc) {
$("#DocumentContent").show();
// Clear dynamic me...
I am having trouble with uploading a file when using jquery.
I have the following HTML in a form.
<fieldset>
<ul>
<li>
<div class="field"><input size="35" type="file"
name="formFile" id="formFile"/></div>
</li>
<li>
<div class="field"><input size="35" type="text"
...
Hello everybody!
I have the folowing code:
<script Language="JavaScript">
function load(url) {
var load = window.open(url,'','scrollbars=no,menubar=no,height=600,width=800,resizable=yes,toolbar=no,location=no,status=no');
}
</script>
<h:commandLink value="aaa" onclick="load('<h:outputText value="http://www.google.com" /> '); />
I wan...
At first I would like to point out, that I am not a JQuery person, I am just beginning my work with it forced by the fact that our front-end guy is sick. please be delicate with me:)
In our application we switch to view mode by changing part of the url:
.../view/rest/.... means normal mode,
.../print/rest/... means print mode (site is...
When dealing with websites with large amount of javascript, i see that these are still usually served to the client as one large javascript file.
In the development phase, are the javascript files usually split up (say there are >300 lines of js) to make things abit more manageable, and then merged when the website is 'put live'? Or do ...
Hi,
I have a problem with FullCalendar and Google Calendar. My FullCalendar does not show the Google entries. I need help, please :)
<script type="text/javascript">// <![CDATA[
$(document).ready(function() {
var date = new Date();
var d = date.getDate();
var m = date.getMonth();
var y = date.getFullYear();
$('#calendar').f...
How can I modify jquery highlight such that it doesn't find matches that appear directly before or after an alpha character? In other words, how do I prevent a match mid-word?
/*
highlight v3
Highlights arbitrary terms.
<http://johannburkard.de/blog/programming/javascript/highlight-javascript-text-higlighting-jquery-plugin.html>
...
Im trying to get a div to be movable within the constrains of the browser window, by dragging the titlebar inside the div. My code is as follows:
<div id='container'>
<h3 class='title' id='titlebar'>My Title</h3>
</div>
<script type='text/javascript'>
$(document).ready(function(){
$("#titlebar").draggable({ containment:...
This is my code for making textbox accept number only.
<asp:TextBox ID="txtRotationNo" runat="server" onkeydown="return NumberOnly();" CssClass="textbox"></asp:TextBox>
function NumberOnly () {
if(!(event.keyCode>=48 && event.keyCode<=57) && event.keyCode!=8) {
event.returnValue=null;
}
}
This code is working in Chrom...
I have been writing my own Lightbox script (to learn more about jQuery).
My code for the captions are as follows (the problem is that the captions are the same on every image):
close.click(function(c) {
c.preventDefault();
if (hideScrollbars == "1") {
$('body').css({'overflow' : 'auto'});
}
overlay.add(containe...
I want to run a bit of javascript before the whole page has loaded. Is this possible? Or does the code start to execute on </html>?
...
I have a contenteditable div where I need to insert text at the caret position,
This can be easily done in IE by document.selection.createRange().text = "banana"
Is there a similar way of implementing this in Firefox/Chrome?
(I know a solution exists here , but it can't be used in contenteditable div, and looks clumsy)
Thank you!
...
Hi,
i'm trying to create a watch method for HTML elements, using __define[GS]etter__ when a property is changed. It reacts just fine when i set the value, but if the property listened to, is innerHTML, it somehow fails to render the given string. So basically, when im adding something to innerHTML it doesn't show.
Im using the watch me...
I am tring to display a text box when a element of class numObj is clicked. For some reason I get NaNNaNaNaNNaNNaNaNaN where I expect to the see the result of the searchForm variable in the code below.
I know that NaN stands for Not a Number. What I don't understand is why is Javascript expecting a number? I can't understand why it care...
Hi there
I have a recruitment portal that people can use to advertise and search for jobs.
I would like the recruiters to be able to add a small javascript snippet to their personal websites, that will list jobs on my site.
how can i go about this?
I have webservices set up so the javascript can just call that, but i also need the r...
hi,
i try to find the web page has the html element or not. i use if condition, like;
if([webView stringByEvaluatingJavaScriptFromString:@"return document.getElementById('txtOgR_no');"] != nil)
{...}
how can i check is there a element in page named "txtOgr_No" ?
...
Dear all,
How can i play an mp3 file using jquery in website.I m using servlets or http to play a song.Also how can i calculate total time of song played.
Regards
Angelina
...
Let's say that I upload a file using a basic multipart post. The server then receives the request and starts to execute the server side code. Can I somehow in that state start to output the response and after some data is sent start to receive the file? Finally when the file is uploaded I output the rest of the response.
If this is pos...